Function at 0x409570
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ac55
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x618190]
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 + 8]
mov ebx, dword [ebp + 0xc]
push 5
push ecx
push str..log.
mov ecx, esi
call fcn.00416500
mov edi, eax
cmp edi, 0xffffffff
je 0x409825
xor eax, eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xb8], al
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], eax
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x88], al
push eax
push 0x5ed1d8
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.0041f200
push edi
push 0
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00414700
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x409660
push 0xffffffffffffffff
push 0
push eax
call fcn.0041ee90
cmp dword [ebp - 0xd4], 8
jb 0x409677
push dword [ebp - 0xe8]
call fcn.0043b833
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push eax
push 0x5ed1d8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.0041f200
sub esp, 0xc
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x70]
push eax
push ecx
push esi
call fcn.004045e0
cmp dword [ebp - 0x60], 0
je 0x409812
push ecx
push 0
push 0x5e9914
lea ecx, [ebp - 0x70]
call fcn.00402af0
push ecx
push 0
push 0x5e9918
lea ecx, [ebp - 0x70]
call fcn.00402af0
push ecx
push 0
push 0x5e97a4
lea ecx, [ebp - 0x70]
call fcn.00402af0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push str.__s.log
lea eax, [ebp - 0x148]
push eax
push 0x6279dc
call fcn.004134e0
add esp, 0x10
mov edx, eax
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x14], 8
jb 0x409744
mov edx, dword [edx]
cmp word [edx], 0
jne 0x40974e
xor ecx, ecx
jmp 0x409762
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409753
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.004145d0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0xa
call fcn.00402150
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0xd0]
cmovae ecx, dword [ebp - 0xd0]
cmp dword [esi + 0x14], 8
jb 0x40979c
mov eax, dword [esi]
jmp 0x40979e
mov eax, esi
push ecx
push eax
call fcn.00551514
add esp, 8
test eax, eax
jne 0x4097bc
lea eax, [ebp - 0xd0]
mov ecx, ebx
push eax
call fcn.00402400
jmp 0x409812
mov dword [ebp - 0xe0], 0x5e9b50
mov dword [ebp - 0xdc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0xd0]
call fcn.004024f0
push eax
push ecx
mov ecx, esi
call fcn.004024f0
movq xmm0, qword [ebp - 0xe0]
push eax
push str._t_trename__s___s_failed_err_lu.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404820
add esp, 0x1c
lea ecx, [ebp - 0x70]
call fcn.00402150
lea ecx, [ebp - 0xd0]
call fcn.00402150
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.00550cb3
mov esp, ebp
pop ebp
ret 8