Function at 0x421ec0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e178
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.0041c260
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
jne 0x4220a9
push esi
lea ecx, [ebp - 0x70]
call fcn.004075c0
mov dword [ebp - 4], 0
push str..old.tmp
call fcn.00407910
add esp, 4
lea ecx, [ebp - 0x70]
mov ebx, eax
call fcn.00407700
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [edi + 0x10]
sub ecx, eax
cmp ebx, ecx
ja 0x421f7e
lea ecx, [eax + ebx]
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x421f50
mov edi, dword [edi]
push ebx
lea eax, [edi + eax*2]
push str..old.tmp
push eax
call fcn.00407ac0
add esp, 0xc
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x78]
lea eax, [edi + eax*2]
push eax
call fcn.00407ab0
add esp, 8
jmp 0x421f94
push ebx
push str..old.tmp
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x70]
push dword [ebp - 0x78]
push ebx
call fcn.00407ee0
push 0xb
lea ecx, [ebp - 0x70]
call fcn.00407400
push eax
mov ecx, esi
call fcn.00407400
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
jne 0x422097
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x71], al
call fcn.004075a0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.0041ca30
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.004075a0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.0041ca30
test al, al
jne 0x422001
cmp byte [ebp - 0x78], al
je 0x42201b
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00407400
push eax
lea ecx, [ebp - 0x58]
call fcn.00407400
push eax
call ebx
test eax, eax
jne 0x42207f
lea ecx, [ebp - 0x70]
call fcn.0041bfb0
cmp eax, 0xffffffff
je 0x42207f
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.004075c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0041c680
test al, al
je 0x422073
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.0041c050
test al, al
je 0x422073
lea edx, [ebp - 0x70]
mov ecx, esi
call fcn.0041c050
lea ecx, [ebp - 0x28]
test al, al
je 0x42206b
call fcn.0041c260
jmp 0x422073
lea edx, [ebp - 0x70]
call fcn.0041c050
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004074c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004074c0
mov edi, dword [ebp - 0x7c]
push 0xb
mov ecx, esi
call fcn.00407400
push eax
mov ecx, edi
call fcn.00407400
push eax
call ebx
test eax, eax
jne 0x42219a
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x71], al
call fcn.004075a0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0041ca30
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.004075a0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.0041ca30
test al, al
jne 0x422111
cmp byte [ebp - 0x7c], al
je 0x42212b
push 0xb
lea ecx, [ebp - 0x58]
call fcn.00407400
push eax
lea ecx, [ebp - 0x40]
call fcn.00407400
push eax
call ebx
test eax, eax
jne 0x42217f
mov ecx, esi
call fcn.0041bfb0
cmp eax, 0xffffffff
je 0x4221b1
push esi
lea ecx, [ebp - 0x28]
call fcn.004075c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0041c680
test al, al
je 0x4221a5
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041c050
test al, al
je 0x4221a5
mov edx, esi
mov ecx, edi
call fcn.0041c050
lea ecx, [ebp - 0x28]
test al, al
je 0x42219e
call fcn.0041c260
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004074c0
mov al, 1
jmp 0x4221ce
mov edx, esi
call fcn.0041c050
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004074c0
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.00477254
mov esp, ebp
pop ebp
ret 8