Function at 0x401a70
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 0x401910
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x868]
push 0x401268
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call ebx
test eax, eax
je 0x401b21
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebp
test eax, eax
jle 0x401b21
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.00401430
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 0x401b2e
inc ecx
add eax, 2
cmp ecx, 0x104
jb 0x401b07
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 0x4011a0
push edx
lea eax, [esp + eax*2 + 0x30]
push eax
call fcn.004015d0
add esp, 0xc
test al, al
je 0x401b21
mov esi, dword [esp + 0x85c]
push esi
call ebp
test eax, eax
jle 0x401cff
xor ecx, ecx
push 0x616
push ecx
lea edx, [esp + 0x23a]
push edx
mov word [esp + 0x23c], cx
call fcn.00401430
lea eax, [esp + 0x23c]
push 0x30c
push eax
call fcn.00401790
add esp, 0x14
test al, al
je 0x401b21
push 0x4011f8
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x4013bc
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push esi
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x4013b8
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x401220
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x4013bc
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x4013b8
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x234]
push edx
push 0
mov dword [esp + 0x1c], 0
call fcn.00401860
add esp, 0xc
test al, al
je 0x401b21
cmp dword [esp + 0x10], 0
jne 0x401b21
mov ecx, dword [esp + 0x860]
lea eax, [esp + 0x28]
push eax
push ecx
push esi
call fcn.004015d0
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 0x401910
push 0x401260
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401d28
call esi
cmp eax, 0x715
jne 0x401b21
mov eax, dword [esp + 0x85c]
push eax
call ebp
test eax, eax
jle 0x401e9b
xor ecx, ecx
push 0x616
push ecx
lea edx, [esp + 0x23a]
push edx
mov word [esp + 0x23c], cx
call fcn.00401430
add esp, 0xc
xor ecx, ecx
xor eax, eax
mov edi, edi
movzx edx, word [eax + 0x4013a0]
xor esi, esi
mov word [esp + eax + 0x230], dx
cmp si, dx
je 0x401d8f
inc ecx
add eax, 2
cmp ecx, 0x30c
jb 0x401d60
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x838
ret
push 0x4013b8
lea eax, [esp + 0x234]
push 0x30c
push eax
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
mov esi, dword [esp + 0x85c]
push esi
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x401398
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x30c
push ecx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
push 0x4013b8
lea edx, [esp + 0x234]
push 0x30c
push edx
call fcn.00401610
add esp, 0xc
test al, al
je 0x401b21
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x234]
push ecx
push 0
mov dword [esp + 0x1c], 0
call fcn.00401860
add esp, 0xc
test al, al
je 0x401b21
cmp dword [esp + 0x10], 0
jne 0x401b21
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.004015d0
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 0x401910
push 0x401258
push edi
call ebx
test eax, eax
jne 0x401ebe
call esi
cmp eax, 0x715
jne 0x401b21
mov esi, dword [esp + 0x85c]
push esi
call ebp
test eax, eax
jle 0x401f07
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401f07
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.004015d0
add esp, 0xc
test al, al
je 0x401b21
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x838
ret