Function at 0x402870
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push esi
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00402ef0
add esp, 0xc
test al, al
je 0x402c57
push 0x4013a4
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402c57
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x402280
push 0x40144c
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [ebp - 8], esi
call ebx
test eax, eax
je 0x402c4e
push 0x104
push dword [ebp + 0x14]
call fcn.00402f40
add esp, 8
test eax, eax
je 0x402c4e
push 0x104
push esi
call fcn.00402f40
add esp, 8
test eax, eax
je 0x402b1b
mov edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x42c], ax
mov bl, 1
mov word [ebp - 0xc4c], ax
mov word [ebp - 0x220], ax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x428]
push 0x104
push eax
push edi
call fcn.00402140
add esp, 0xc
test al, al
je 0x402a9f
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x401348
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x4013f4
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x401350
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push esi
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x401358
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x401418
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x401350
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
je 0x402a9f
push 0x401364
lea eax, [ebp - 0xc4c]
push 0x410
push eax
call fcn.00402ea0
add esp, 0xc
test al, al
jne 0x402aa1
xor bl, bl
lea eax, [ebp - 0xc4c]
push eax
push edi
call fcn.00401d50
add esp, 8
mov dword [ebp - 4], 0
test bl, bl
je 0x402ae2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc4c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004025f0
add esp, 0xc
test al, al
je 0x402ae0
cmp dword [ebp - 4], 0
je 0x402aed
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x402b12
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.00402ef0
add esp, 0xc
test al, al
je 0x402b12
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x402280
push 0x401444
push edi
call ebx
test eax, eax
jne 0x402b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x402c4e
push 0x104
push esi
call fcn.00402f40
add esp, 8
test eax, eax
je 0x402b9f
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.004017c0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
mov bl, al
push esi
call edi
test bl, bl
je 0x402b96
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.00402ef0
add esp, 0xc
test al, al
jne 0x402b96
lea eax, [ebp - 0x21c]
push eax
call edi
xor bl, bl
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x402280
push 0x40143c
push edi
call ebx
test eax, eax
jne 0x402bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x402c4e
push 0x104
push esi
call fcn.00402f40
add esp, 8
test eax, eax
je 0x402c31
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402c31
push 3
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x402c0b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
jmp 0x402c31
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.00402ef0
add esp, 0xc
test al, al
jne 0x402c31
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
push esi
call fcn.00402f40
add esp, 8
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
pop edi
pop ebx
neg eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret