Function at 0x403910
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, eax
push esi
lea ecx, [ebp - 0x224]
mov word [ebp - 0x1c], ax
mov word [ebp - 0x224], ax
call fcn.0040319c
test al, al
je 0x403c40
push 0x401430
mov ebx, 0x104
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403c40
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x40381b
push edi
push 0x401534
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
call esi
test eax, eax
je 0x403c40
push ebx
push dword [ebp + 0x14]
call fcn.004043f6
pop ecx
pop ecx
test eax, eax
je 0x403c40
push ebx
push dword [ebp + 0x1c]
call fcn.004043f6
pop ecx
pop ecx
test eax, eax
jbe 0x403b30
xor eax, eax
mov word [ebp - 0x228], ax
mov word [ebp - 0xa48], ax
mov esi, 0x410
push esi
lea eax, [ebp - 0xa48]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
call fcn.004036ac
add esp, 0xc
test al, al
je 0x403ab8
push 0x4014a8
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403ab8
mov ebx, 0x401670
push ebx
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403ab8
push dword [ebp + 0x1c]
lea ecx, [ebp - 0xa48]
call fcn.004031e9
test al, al
je 0x403ab8
mov edi, 0x40166c
push edi
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403ab8
push 0x4014d0
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403ab8
push ebx
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403ab8
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403ab8
push edi
lea eax, [ebp - 0xa48]
push esi
push eax
call fcn.00404456
add esp, 0xc
test al, al
jne 0x403abc
mov byte [ebp - 1], 0
lea eax, [ebp - 0xa48]
push eax
push dword [ebp + 8]
call fcn.00403781
xor esi, esi
cmp byte [ebp - 1], 0
pop ecx
pop ecx
mov dword [ebp - 8], esi
je 0x403aff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa48]
push eax
push esi
call fcn.00402ff9
add esp, 0xc
test al, al
je 0x403af5
cmp dword [ebp - 8], esi
je 0x403af9
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
jne 0x403b0e
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 1], 0
je 0x403b29
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x224]
push eax
call fcn.0040319c
test al, al
je 0x403b29
xor eax, eax
inc eax
jmp 0x403c42
xor eax, eax
jmp 0x403c42
lea eax, [ebp - 0x18]
push eax
push edi
push 0x40152c
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x403b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x403c40
push ebx
push dword [ebp + 0x1c]
call fcn.004043f6
pop ecx
pop ecx
test eax, eax
jbe 0x403baa
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0x1c]
call fcn.00402e28
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
push dword [ebp + 0x1c]
mov bl, al
call esi
test bl, bl
je 0x403ba3
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x224]
push eax
call fcn.0040319c
test al, al
jne 0x403ba3
lea eax, [ebp - 0x224]
push eax
call esi
xor bl, bl
mov al, bl
jmp 0x403c42
lea eax, [ebp - 0x18]
push eax
push edi
push 0x401524
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x403bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x403c40
mov esi, dword [ebp + 0x1c]
push ebx
push esi
call fcn.004043f6
pop ecx
pop ecx
test eax, eax
jbe 0x403c2d
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403c2d
push 3
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x403c0e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
jmp 0x403c2d
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
call fcn.0040319c
test al, al
jne 0x403c2d
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.004043f6
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x403c42
xor al, al
pop edi
pop esi
pop ebx
leave
ret