Function at 0x418440
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e278
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 0x418626
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 0x4184fb
lea ecx, [eax + ebx]
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x10], ecx
cmp edx, 8
jb 0x4184d0
mov edi, dword [edi]
push ebx
lea eax, [edi + eax*2]
push str..old.tmp
push eax
call fcn.00407ac0
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.00407ab0
add esp, 0x14
jmp 0x418511
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 0x418614
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 0x41857e
cmp byte [ebp - 0x78], al
je 0x418598
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 0x4185fc
lea ecx, [ebp - 0x70]
call fcn.0041bfb0
cmp eax, 0xffffffff
je 0x4185fc
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 0x4185f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.0041c050
test al, al
je 0x4185f0
lea edx, [ebp - 0x70]
mov ecx, esi
call fcn.0041c050
lea ecx, [ebp - 0x28]
test al, al
je 0x4185e8
call fcn.0041c260
jmp 0x4185f0
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 0x418717
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 0x41868e
cmp byte [ebp - 0x7c], al
je 0x4186a8
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 0x4186fc
mov ecx, esi
call fcn.0041bfb0
cmp eax, 0xffffffff
je 0x41872e
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 0x418722
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041c050
test al, al
je 0x418722
mov edx, esi
mov ecx, edi
call fcn.0041c050
lea ecx, [ebp - 0x28]
test al, al
je 0x41871b
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 0x41874b
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.00477374
mov esp, ebp
pop ebp
ret 8