Function at 0x440d36
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sete al
push ebx
movzx eax, al
push edi
push eax
call fcn.004a3089
push dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.004a3089
xor edi, edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
xor ebx, ebx
inc edi
call fcn.0048e806
mov ecx, eax
call fcn.00472219
test al, al
jne 0x440dd2
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
call fcn.004a3089
push eax
lea ecx, [ebp - 4]
call fcn.0048e513
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.0040389f
test al, al
jne 0x440dba
lea ecx, [ebp - 4]
call fcn.0048e806
mov ecx, eax
call fcn.00472219
test al, al
jne 0x440dd2
lea ecx, [ebp - 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
xor eax, eax
pop edi
pop ebx
leave
ret 0x18
push esi
xor eax, eax
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.0048e806
push eax
lea eax, [ebp - 0x18]
push str._s._d
push eax
call fcn.0048de20
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.0048de00
mov ecx, eax
call fcn.00472219
test al, al
jne 0x440e32
lea ecx, [ebp - 0x18]
call fcn.0048de00
mov ecx, eax
call fcn.004a1fa5
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.004a1fa5
push esi
push eax
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x440e3d
lea ecx, [ebp - 0x18]
call fcn.0048e45f
inc edi
jmp 0x440dd3
lea ecx, [ebp - 0x18]
call fcn.0048de00
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e7e6
lea ecx, [ebp - 0x18]
call fcn.0048e45f
lea ecx, [ebp - 0xc]
call fcn.0048e806
push eax
lea ecx, [ebp - 4]
call fcn.0048e806
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
push eax
call edi
test eax, eax
jne 0x440e96
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.0048e50a
lea ecx, [ebp - 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
mov eax, esi
pop esi
jmp 0x440dcc
cmp byte [ebp + 0x1c], bl
je 0x440edf
lea ecx, [ebp - 8]
call fcn.0048e806
mov ecx, eax
call fcn.00472219
test al, al
je 0x440edf
lea ecx, [ebp - 8]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x440edf
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e806
push eax
call edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x440e76
lea ecx, [ebp - 8]
call fcn.0048e806
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0048e806
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x440f19
test dx, dx
je 0x440f15
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x440f19
add eax, 4
add ecx, 4
test dx, dx
jne 0x440ef3
xor eax, eax
jmp 0x440f1e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x440f7e
lea ecx, [ebp - 8]
call fcn.0048e806
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e806
push eax
call edi
test eax, eax
jne 0x440f92
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ebx, eax
cmp ebx, 3
jne 0x440f7a
lea ecx, [ebp - 8]
xor ebx, ebx
call fcn.0048e806
mov ecx, eax
call fcn.004a49fb
test al, al
je 0x440f76
lea ecx, [ebp - 8]
call fcn.0048e806
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e806
push eax
call edi
test eax, eax
jne 0x440f92
call esi
mov ebx, eax
test ebx, ebx
je 0x440f92
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e806
push eax
call edi
mov esi, ebx
jmp 0x440e76