Function at 0x418130
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], edi
call fcn.0041bf70
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
jne 0x418316
push esi
lea ecx, [ebp - 0x70]
call fcn.00407280
mov dword [ebp - 4], 0
push str..old.tmp
call fcn.004075d0
add esp, 4
lea ecx, [ebp - 0x70]
mov ebx, eax
call fcn.004073c0
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [edi + 0x10]
sub ecx, eax
cmp ebx, ecx
ja 0x4181eb
lea ecx, [eax + ebx]
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x4181c0
mov edi, dword [edi]
push ebx
lea eax, [edi + eax*2]
push str..old.tmp
push eax
call fcn.004077e0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
mov eax, dword [ebp - 0x78]
lea eax, [edi + eax*2]
push eax
call fcn.004077d0
add esp, 0x14
jmp 0x418201
push ebx
push str..old.tmp
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x70]
push dword [ebp - 0x78]
push ebx
call fcn.00407c00
push 0xb
lea ecx, [ebp - 0x70]
call fcn.004070c0
push eax
mov ecx, esi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
jne 0x418304
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x71], al
call fcn.00407260
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.0041c740
movzx ecx, byte [ebp - 0x71]
test al, al
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.0041c740
test al, al
jne 0x41826e
cmp byte [ebp - 0x78], al
je 0x418288
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004070c0
push eax
call ebx
test eax, eax
jne 0x4182ec
lea ecx, [ebp - 0x70]
call fcn.0041bcc0
cmp eax, 0xffffffff
je 0x4182ec
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407280
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0041c390
test al, al
je 0x4182e0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.0041bd60
test al, al
je 0x4182e0
lea edx, [ebp - 0x70]
mov ecx, esi
call fcn.0041bd60
lea ecx, [ebp - 0x28]
test al, al
je 0x4182d8
call fcn.0041bf70
jmp 0x4182e0
lea edx, [ebp - 0x70]
call fcn.0041bd60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00407180
mov edi, dword [ebp - 0x7c]
push 0xb
mov ecx, esi
call fcn.004070c0
push eax
mov ecx, edi
call fcn.004070c0
push eax
call ebx
test eax, eax
jne 0x418407
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x71], al
call fcn.00407260
mov dword [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0041c740
movzx ecx, byte [ebp - 0x71]
test al, al
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x58]
call fcn.00407260
mov byte [ebp - 4], 5
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.0041c740
test al, al
jne 0x41837e
cmp byte [ebp - 0x7c], al
je 0x418398
push 0xb
lea ecx, [ebp - 0x58]
call fcn.004070c0
push eax
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call ebx
test eax, eax
jne 0x4183ec
mov ecx, esi
call fcn.0041bcc0
cmp eax, 0xffffffff
je 0x41841e
push esi
lea ecx, [ebp - 0x28]
call fcn.00407280
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0041c390
test al, al
je 0x418412
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041bd60
test al, al
je 0x418412
mov edx, esi
mov ecx, edi
call fcn.0041bd60
lea ecx, [ebp - 0x28]
test al, al
je 0x41840b
call fcn.0041bf70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00407180
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407180
mov al, 1
jmp 0x41843b
mov edx, esi
call fcn.0041bd60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00407180
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407180
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477737
mov esp, ebp
pop ebp
ret 8