Function at 0x440f3d
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.004a3284
push dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.004a3284
xor edi, edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
xor ebx, ebx
inc edi
call fcn.0048ea50
mov ecx, eax
call fcn.00472429
test al, al
jne 0x440fd9
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
call fcn.004a3284
push eax
lea ecx, [ebp - 4]
call fcn.0048e768
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00403916
test al, al
jne 0x440fc1
lea ecx, [ebp - 4]
call fcn.0048ea50
mov ecx, eax
call fcn.00472429
test al, al
jne 0x440fd9
lea ecx, [ebp - 8]
call fcn.0048e75f
lea ecx, [ebp - 4]
call fcn.0048e75f
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.0048ea50
push eax
lea eax, [ebp - 0x18]
push str._s._d
push eax
call fcn.0048e075
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.0048e055
mov ecx, eax
call fcn.00472429
test al, al
jne 0x441039
lea ecx, [ebp - 0x18]
call fcn.0048e055
mov ecx, eax
call fcn.004a21a0
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.004a21a0
push esi
push eax
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x441044
lea ecx, [ebp - 0x18]
call fcn.0048e6b4
inc edi
jmp 0x440fda
lea ecx, [ebp - 0x18]
call fcn.0048e055
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea2a
lea ecx, [ebp - 0x18]
call fcn.0048e6b4
lea ecx, [ebp - 0xc]
call fcn.0048ea50
push eax
lea ecx, [ebp - 4]
call fcn.0048ea50
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
push eax
call edi
test eax, eax
jne 0x44109d
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.0048e75f
lea ecx, [ebp - 8]
call fcn.0048e75f
lea ecx, [ebp - 4]
call fcn.0048e75f
mov eax, esi
pop esi
jmp 0x440fd3
cmp byte [ebp + 0x1c], bl
je 0x4410e6
lea ecx, [ebp - 8]
call fcn.0048ea50
mov ecx, eax
call fcn.00472429
test al, al
je 0x4410e6
lea ecx, [ebp - 8]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4410e6
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea50
push eax
call edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x44107d
lea ecx, [ebp - 8]
call fcn.0048ea50
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0048ea50
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x441120
test dx, dx
je 0x44111c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x441120
add eax, 4
add ecx, 4
test dx, dx
jne 0x4410fa
xor eax, eax
jmp 0x441125
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x441185
lea ecx, [ebp - 8]
call fcn.0048ea50
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea50
push eax
call edi
test eax, eax
jne 0x441199
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ebx, eax
cmp ebx, 3
jne 0x441181
lea ecx, [ebp - 8]
xor ebx, ebx
call fcn.0048ea50
mov ecx, eax
call fcn.004a4bf3
test al, al
je 0x44117d
lea ecx, [ebp - 8]
call fcn.0048ea50
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea50
push eax
call edi
test eax, eax
jne 0x441199
call esi
mov ebx, eax
test ebx, ebx
je 0x441199
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea50
push eax
call edi
mov esi, ebx
jmp 0x44107d