Function at 0x421bd0
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 0x421db9
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 0x421c8e
lea ecx, [eax + ebx]
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x421c60
mov edi, dword [edi]
push ebx
lea eax, [edi + eax*2]
push str..old.tmp
push eax
call fcn.004077e0
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.004077d0
add esp, 8
jmp 0x421ca4
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 0x421da7
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 0x421d11
cmp byte [ebp - 0x78], al
je 0x421d2b
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 0x421d8f
lea ecx, [ebp - 0x70]
call fcn.0041bcc0
cmp eax, 0xffffffff
je 0x421d8f
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 0x421d83
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.0041bd60
test al, al
je 0x421d83
lea edx, [ebp - 0x70]
mov ecx, esi
call fcn.0041bd60
lea ecx, [ebp - 0x28]
test al, al
je 0x421d7b
call fcn.0041bf70
jmp 0x421d83
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 0x421eaa
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 0x421e21
cmp byte [ebp - 0x7c], al
je 0x421e3b
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 0x421e8f
mov ecx, esi
call fcn.0041bcc0
cmp eax, 0xffffffff
je 0x421ec1
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 0x421eb5
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041bd60
test al, al
je 0x421eb5
mov edx, esi
mov ecx, edi
call fcn.0041bd60
lea ecx, [ebp - 0x28]
test al, al
je 0x421eae
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 0x421ede
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