Function at 0x534520
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0fa5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6218c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
call fcn.00528240
xor esi, esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
lea ecx, [edi + 0xa8]
mov dword [ebp - 4], esi
call fcn.00531c50
mov ecx, dword [edi + 0xa8]
xor edx, edx
mov eax, 4
mov ecx, dword [ecx + 4]
cmp dword [ecx + edi + 0xe0], edx
cmovne eax, edx
mov dword [ecx + edi + 0xb4], eax
test dword [ecx + edi + 0xb8], eax
jne 0x5347e7
cmp byte [edi + 0x34], dl
je 0x53465c
cmp byte [ebp + 8], dl
jne 0x5345bc
push dword [edi + 0x30]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00531440
mov esi, dword [ebp - 0x78]
lea ebx, [edi + 0x158]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.0054a5f0
add esp, 8
cmp eax, 0xffffffff
je 0x5345ee
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x1b0]
jge 0x534662
mov eax, dword [edi]
mov ecx, edi
push 0xe
call dword [eax + 0x28]
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0xb4], 6
je 0x534633
push ebx
lea eax, [ebp - 0x5c]
push str.Failed_to_open_file
push eax
call fcn.004935f0
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push 0
push eax
mov byte [ebp - 4], 4
call fcn.0053fba0
lea ecx, [ebp - 0x5c]
call fcn.00406c10
mov dword [ebp - 4], 5
jmp 0x5347be
lea ebx, [edi + 0x158]
mov eax, dword [edi + 0x1b4]
test eax, eax
jle 0x534747
push eax
push ebx
call fcn.00534a90
push 0x5e1e60
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.004726c0
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.00593336
add esp, 0x18
test eax, eax
je 0x5346a7
call fcn.00584c0f
push ebx
lea eax, [ebp - 0x44]
push str.Renaming_file
push eax
call fcn.004935f0
push str._to
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
call fcn.0041f5c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00443e00
add esp, 0x24
mov ecx, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 9
call fcn.0053fb60
lea ecx, [ebp - 0x5c]
call fcn.00406c10
lea ecx, [ebp - 0x74]
call fcn.00406c10
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00406c10
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov eax, ebx
cmova ecx, dword [ebp - 0x2c]
cmp dword [ebx + 0x14], 7
jbe 0x53471c
mov eax, dword [ebx]
push ecx
push eax
call fcn.0059335e
add esp, 8
test eax, eax
je 0x534731
call fcn.00584c0f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x7c]
call fcn.00532e10
add esp, 0x10
lea ecx, [ebp - 0x2c]
jmp 0x534769
push str._has_no_backups_specified
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004726c0
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0053fb60
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00406c10
mov eax, dword [edi]
mov ecx, edi
push 0x12
call dword [eax + 0x28]
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0xb4], 6
je 0x5347b7
push ebx
lea eax, [ebp - 0x44]
push str.Failed_to_open_file
push eax
call fcn.004935f0
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push 0
push eax
mov byte [ebp - 4], 0xb
call fcn.0053fba0
lea ecx, [ebp - 0x44]
call fcn.00406c10
mov dword [ebp - 4], 0xc
test esi, esi
je 0x5347c9
mov ecx, esi
call fcn.0054a010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057029b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x80]
push 1
push eax
call fcn.00487b80
add esp, 8
lea ecx, [ebp - 0x94]
push eax
push str.ios_base::badbit_set
call fcn.004859c0
push 0x612bd4
lea eax, [ebp - 0x94]
push eax
call fcn.00572059
int3