Function at 0x403d9a
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.00404806
add esp, 0xc
test al, al
je 0x4040ee
push 0x401470
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x4040ee
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov edi, 0x403ca1
push edi
push 0x401548
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 0x4040ee
push 0x104
push ebx
call fcn.004047df
pop ecx
pop ecx
test eax, eax
je 0x4040ee
push 0x104
push dword [ebp + 0x18]
call fcn.004047df
pop ecx
pop ecx
test eax, eax
je 0x403fcc
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.00403b77
add esp, 0xc
test al, al
je 0x403f4c
push 0x4014c8
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
mov ebx, 0x401688
push ebx
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
push dword [ebp + 0x18]
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
mov edi, 0x401684
push edi
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
push 0x4014f0
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
push ebx
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
je 0x403f4c
push edi
lea eax, [ebp - 0xa44]
push esi
push eax
call fcn.00404841
add esp, 0xc
test al, al
jne 0x403f50
mov byte [ebp - 1], 0
lea eax, [ebp - 0xa44]
push eax
push dword [ebp + 8]
call fcn.00403bff
xor esi, esi
cmp byte [ebp - 1], 0
pop ecx
pop ecx
mov dword [ebp - 8], esi
je 0x403f93
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa44]
push eax
push esi
call fcn.0040350d
add esp, 0xc
test al, al
je 0x403f89
cmp dword [ebp - 8], esi
je 0x403f8d
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
jne 0x403fa2
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 1], 0
je 0x403fc5
lea eax, [ebp - 0x220]
push eax
push 0x104
push dword [ebp + 0x18]
call fcn.00404806
add esp, 0xc
test al, al
je 0x403fc5
xor eax, eax
inc eax
jmp 0x4040f0
xor eax, eax
jmp 0x4040f0
lea eax, [ebp - 0x14]
push eax
push edi
push 0x401540
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403ff2
call ebx
cmp eax, 0x715
jne 0x4040ee
push 0x104
push dword [ebp + 0x18]
call fcn.004047df
pop ecx
pop ecx
test eax, eax
je 0x404054
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x18]
call fcn.0040333a
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 0x40404d
lea eax, [ebp - 0x220]
push eax
push 0x104
push dword [ebp + 0x18]
call fcn.00404806
add esp, 0xc
test al, al
jne 0x40404d
lea eax, [ebp - 0x220]
push eax
call esi
xor bl, bl
mov al, bl
jmp 0x4040f0
lea eax, [ebp - 0x14]
push eax
push edi
push 0x401538
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x404070
call ebx
cmp eax, 0x715
jne 0x4040ee
mov edi, dword [ebp + 0x18]
mov esi, 0x104
push esi
push edi
call fcn.004047df
pop ecx
pop ecx
test eax, eax
je 0x4040db
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4040db
push 3
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4040b9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [edi], ax
jmp 0x4040db
lea eax, [ebp - 0x220]
push eax
push esi
push edi
call fcn.00404806
add esp, 0xc
test al, al
jne 0x4040db
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
call fcn.004047df
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x4040f0
xor al, al
pop edi
pop esi
pop ebx
leave
ret