Function at 0x4037b5
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, eax
push esi
mov word [ebp - 0x18], ax
mov word [ebp - 0x220], ax
mov edi, 0x104
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0040420b
add esp, 0xc
test al, al
je 0x403b09
push 0x401430
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403b09
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov edi, 0x4036bc
push edi
push 0x401508
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
je 0x403b09
push 0x104
push ebx
call fcn.004041e6
pop ecx
pop ecx
test eax, eax
je 0x403b09
push 0x104
push dword [ebp + 0x18]
call fcn.004041e6
pop ecx
pop ecx
test eax, eax
jbe 0x4039e7
xor eax, eax
mov word [ebp - 0x224], ax
mov word [ebp - 0xa44], ax
mov esi, 0x410
push esi
lea eax, [ebp - 0xa44]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
call fcn.0040354d
add esp, 0xc
test al, al
je 0x403967
push 0x401488
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
mov ebx, 0x401648
push ebx
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
push dword [ebp + 0x18]
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
mov edi, 0x401644
push edi
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
push 0x4014b0
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
push ebx
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
je 0x403967
push edi
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404243
add esp, 0xc
test al, al
jne 0x40396b
mov byte [ebp - 1], 0
lea eax, [ebp - 0xa44]
push eax
push dword [ebp + 8]
call fcn.00403622
xor esi, esi
cmp byte [ebp - 1], 0
pop ecx
pop ecx
mov dword [ebp - 8], esi
je 0x4039ae
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa44]
push eax
push esi
call fcn.00402ef5
add esp, 0xc
test al, al
je 0x4039a4
cmp dword [ebp - 8], esi
je 0x4039a8
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
jne 0x4039bd
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 1], 0
je 0x4039e0
lea eax, [ebp - 0x220]
push eax
push 0x104
push dword [ebp + 0x18]
call fcn.0040420b
add esp, 0xc
test al, al
je 0x4039e0
xor eax, eax
inc eax
jmp 0x403b0b
xor eax, eax
jmp 0x403b0b
lea eax, [ebp - 0x14]
push eax
push edi
push 0x401500
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403a0d
call ebx
cmp eax, 0x715
jne 0x403b09
push 0x104
push dword [ebp + 0x18]
call fcn.004041e6
pop ecx
pop ecx
test eax, eax
jbe 0x403a6f
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x18]
call fcn.00402d25
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
push dword [ebp + 0x18]
mov bl, al
call esi
test bl, bl
je 0x403a68
lea eax, [ebp - 0x220]
push eax
push 0x104
push dword [ebp + 0x18]
call fcn.0040420b
add esp, 0xc
test al, al
jne 0x403a68
lea eax, [ebp - 0x220]
push eax
call esi
xor bl, bl
mov al, bl
jmp 0x403b0b
lea eax, [ebp - 0x14]
push eax
push edi
push 0x4014f8
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x403a8b
call ebx
cmp eax, 0x715
jne 0x403b09
mov edi, dword [ebp + 0x18]
mov esi, 0x104
push esi
push edi
call fcn.004041e6
pop ecx
pop ecx
test eax, eax
jbe 0x403af6
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403af6
push 3
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x403ad4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [edi], ax
jmp 0x403af6
lea eax, [ebp - 0x220]
push eax
push esi
push edi
call fcn.0040420b
add esp, 0xc
test al, al
jne 0x403af6
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
call fcn.004041e6
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x403b0b
xor al, al
pop edi
pop esi
pop ebx
leave
ret