Function at 0x405350
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x838
mov ecx, dword [esp + 0x848]
mov eax, dword [esp + 0x840]
mov edx, dword [esp + 0x84c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push ebp
push esi
mov esi, dword [esp + 0x850]
push edi
mov edi, dword [esp + 0x84c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
push ecx
push 0x404870
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x868]
push 0x401440
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call ebx
test eax, eax
je 0x405401
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebp
test eax, eax
jle 0x405401
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.004043e0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
add esp, 0xc
xor ecx, ecx
sub edx, eax
mov si, word [eax]
mov word [edx + eax], si
xor esi, esi
cmp si, word [eax]
je 0x40540e
inc ecx
add eax, 2
cmp ecx, 0x104
jb 0x4053e7
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x838
ret
lea ecx, [esp + 0x28]
push ecx
call ebp
mov edx, 0x104
sub edx, eax
push 0x401350
push edx
lea eax, [esp + eax*2 + 0x30]
push eax
call fcn.00404600
add esp, 0xc
test al, al
je 0x405401
mov esi, dword [esp + 0x85c]
push esi
call ebp
test eax, eax
jle 0x4055df
xor ecx, ecx
push 0x616
push ecx
lea edx, [esp + 0x23a]
push edx
mov word [esp + 0x23c], cx
call fcn.004043e0
lea eax, [esp + 0x23c]
push 0x30c
push eax
call fcn.004052e0
add esp, 0x14
test al, al
je 0x405401
push 0x4013a8
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x401724
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push esi
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x401720
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x4013d0
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x401724
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x401720
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x234]
push edx
push 0
mov dword [esp + 0x1c], 0
call fcn.004047c0
add esp, 0xc
test al, al
je 0x405401
cmp dword [esp + 0x10], 0
jne 0x405401
mov ecx, dword [esp + 0x860]
lea eax, [esp + 0x28]
push eax
push ecx
push esi
call fcn.00404600
add esp, 0xc
pop edi
pop esi
test al, al
pop ebp
setne al
pop ebx
add esp, 0x838
ret
lea edx, [esp + 0x14]
push edx
push 0x404870
push 0x401438
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405608
call esi
cmp eax, 0x715
jne 0x405401
mov eax, dword [esp + 0x85c]
push eax
call ebp
test eax, eax
jle 0x40577b
xor ecx, ecx
push 0x616
push ecx
lea edx, [esp + 0x23a]
push edx
mov word [esp + 0x23c], cx
call fcn.004043e0
add esp, 0xc
xor ecx, ecx
xor eax, eax
mov edi, edi
movzx edx, word [eax + 0x401708]
xor esi, esi
mov word [esp + eax + 0x230], dx
cmp si, dx
je 0x40566f
inc ecx
add eax, 2
cmp ecx, 0x30c
jb 0x405640
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x838
ret
push 0x401720
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
mov esi, dword [esp + 0x85c]
push esi
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x401700
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
push 0x401720
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00404640
add esp, 0xc
test al, al
je 0x405401
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x234]
push ecx
push 0
mov dword [esp + 0x1c], 0
call fcn.004047c0
add esp, 0xc
test al, al
je 0x405401
cmp dword [esp + 0x10], 0
jne 0x405401
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x860]
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.00404600
add esp, 0xc
pop edi
pop esi
test al, al
pop ebp
setne al
pop ebx
add esp, 0x838
ret
lea ecx, [esp + 0x14]
push ecx
push 0x404870
push 0x401430
push edi
call ebx
test eax, eax
jne 0x40579e
call esi
cmp eax, 0x715
jne 0x405401
mov esi, dword [esp + 0x85c]
push esi
call ebp
test eax, eax
jle 0x4057e7
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4057e7
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x860]
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
call fcn.00404600
add esp, 0xc
test al, al
je 0x405401
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x838
ret