Function at 0x689004
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x68900c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6892ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0040a85c
lea eax, [ebp - 0x14]
call fcn.0040a85c
lea ecx, [ebp - 0xc]
mov edx, 0x6892e8
mov eax, dword [ebp - 4]
call fcn.00688e18
lea eax, [ebp - 0x28]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040b680
mov eax, dword [ebp - 0x28]
mov edx, 0x689360
call fcn.0040b648
jne 0x6892a0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x7fffffff
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.0040b680
lea edx, [ebp - 0xc]
mov eax, 0x689370
call fcn.00688458
lea edx, [ebp - 0x18]
mov eax, 0x689394
call fcn.00688458
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x6890b6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x20]
sub edx, 1
jno 0x6890c7
call fcn.00408698
mov ecx, 2
mov eax, dword [ebp - 0x18]
call fcn.0040b680
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 0x6893b8
call fcn.0040b510
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x6893dc
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
call fcn.006885c4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00688734
test al, al
je 0x689294
xor eax, eax
push ebp
push 0x68926f
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x6893f4
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x34]
push eax
push 0x68940c
push dword [ebp - 0x18]
push 0x6893f4
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040b598
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00688f08
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x6893f4
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x3c]
mov dl, 1
call fcn.0042806c
test al, al
je 0x6891ab
lea eax, [ebp - 0x40]
mov ecx, 0x6893f4
mov edx, dword [ebp - 0x18]
call fcn.0040b510
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.006888ec
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x68946c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x44]
mov dl, 1
call fcn.0042806c
test al, al
je 0x689265
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x6893dc
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x48]
call fcn.0042862c
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x6893dc
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x4c]
call fcn.0040b2c0
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x68946c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x50]
call fcn.0040b2c0
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x6893f4
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.0040b598
mov eax, dword [ebp - 0x54]
call fcn.0042862c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x689294
mov eax, dword [0x69e92c]
mov eax, dword [eax]
call fcn.005f2f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6892d1
lea eax, [ebp - 0x54]
mov edx, 0xc
call fcn.0040a8bc
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040a8bc
pop eax
jmp eax