Function at 0x407653
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421deb
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x42c648]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov eax, dword [0x42c648]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, ebx
mov dword [esp + 0x1c], ebx
mov edi, edx
mov dword [esp + 0x14], esi
call fcn.00406bbd
xor ecx, ecx
mov byte [esp + 0x13], al
cmp dword [edi + 0x10], ecx
je 0x4076c0
cmp dword [edi + 0x14], 0x10
jb 0x4076be
mov ecx, dword [edi]
jmp 0x4076c0
mov ecx, edi
cmp dword [ebx + 0x14], 0x10
jb 0x4076ca
mov eax, dword [ebx]
jmp 0x4076cc
mov eax, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ecx
push eax
call esi
test eax, eax
jne 0x4077ed
push 0x426370
mov dword [esp + 0x28], 0x426ae0
mov dword [esp + 0x2c], 0x426c3c
mov dword [esp + 0x30], 0x205
lea ebx, [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x48], esp
push edi
call fcn.004021df
and dword [esp + 0x1e8], 0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x5c], esp
push dword [esp + 0x60]
call fcn.004021df
lea eax, [esp + 0x118]
push eax
mov byte [esp + 0x208], 1
call fcn.00402538
lea eax, [esp + 0x118]
push 0x426c6c
push eax
mov byte [esp + 0x20c], 2
call fcn.004038ea
pop ecx
pop ecx
lea esi, [esp + 0x118]
mov byte [esp + 0x204], 3
call fcn.00403822
mov edi, 0x426b48
mov esi, eax
push edi
push esi
call fcn.004038ea
pop ecx
pop ecx
mov byte [esp + 0x1e8], 4
call fcn.00403822
mov esi, eax
push edi
push esi
call fcn.004038ea
pop ecx
pop ecx
push dword [esp + 0x20]
push esi
call fcn.00406959
push 0x426394
push esi
call fcn.004038ea
pop ecx
pop ecx
mov ecx, esi
lea edi, [esp + 0x3c]
call fcn.004068e6
lea ecx, [esp + 0x188]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [esp + 0x1c4], 5
call fcn.00403852
lea eax, [esp + 0x18c]
mov dword [esp], 0x428cb4
push eax
call fcn.00411f8f
mov eax, dword [esp + 0x14]
shr eax, 2
and al, 1
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
mov dword [esp + 0x14], 0x426c78
jne 0x407811
mov dword [esp + 0x14], 0x426c80
lea eax, [esp + 0x3c]
push eax
call fcn.00402538
mov dword [esp + 0x1c0], 6
cmp dword [edi + 0x10], 0
lea eax, [esp + 0x3c]
je 0x4078e0
cmp byte [esp + 0x12], 0
je 0x407842
push 0x426c88
jmp 0x407847
push 0x426c90
push eax
call fcn.004038ea
pop ecx
pop ecx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push edi
call fcn.004021df
sub esp, 0x1c
mov byte [esp + 0x1f8], 7
mov esi, esp
mov dword [esp + 0x58], esp
push ebx
call fcn.004021df
lea eax, [esp + 0x74]
push 0x426c98
push eax
mov byte [esp + 0x200], 8
call fcn.004038ea
pop ecx
pop ecx
lea esi, [esp + 0x74]
mov byte [esp + 0x1f8], 7
call fcn.00403822
mov esi, eax
push 0x426c9c
push esi
call fcn.004038ea
push dword [esp + 0x38]
push esi
call fcn.004038ea
push 0x426ca0
push esi
call fcn.004038ea
add esp, 0x18
mov byte [esp + 0x1dc], 6
call fcn.00403822
push 0x426ca8
push eax
call fcn.004038ea
pop ecx
pop ecx
jmp 0x40794e
cmp byte [esp + 0x12], 0
je 0x4078ee
push 0x426ac4
jmp 0x4078f3
push 0x426cac
push eax
call fcn.004038ea
pop ecx
pop ecx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push ebx
call fcn.004021df
lea eax, [esp + 0x58]
push 0x426c98
push eax
mov byte [esp + 0x1e4], 9
call fcn.004038ea
pop ecx
pop ecx
lea esi, [esp + 0x58]
mov byte [esp + 0x1dc], 6
call fcn.00403822
mov esi, eax
push 0x426c9c
push esi
call fcn.004038ea
push dword [esp + 0x1c]
push esi
call fcn.004038ea
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x407966
lea eax, [esp + 0x3c]
push 0x426cb4
push eax
call fcn.004038ea
pop ecx
pop ecx
xor esi, esi
cmp dword [0x42eb64], esi
jg 0x4079b4
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x40]
call fcn.004015a4
push 0x426c3c
push 0x21f
push 0x426ae0
push esi
mov edx, eax
mov ecx, 0x42eb64
mov byte [esp + 0x1d0], 0xa
call fcn.0040ae5e
push esi
push 1
lea ecx, [esp + 0x174]
call fcn.00402dcc
or dword [esp + 0x1c0], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.004015bb
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0040d37e
mov esp, ebp
pop ebp
ret