Function at 0x50f500
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ad05
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5f88c0]
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.00503240
xor esi, esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
lea ecx, [edi + 0xa8]
mov dword [ebp - 4], esi
call fcn.0050cc40
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 0x50f7c7
cmp byte [edi + 0x34], dl
je 0x50f63c
cmp byte [ebp + 8], dl
jne 0x50f59c
push dword [edi + 0x30]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0050c430
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.005255c0
add esp, 8
cmp eax, 0xffffffff
je 0x50f5ce
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x1b0]
jge 0x50f642
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 0x50f613
push ebx
lea eax, [ebp - 0x5c]
push str.Failed_to_open_file
push eax
call fcn.0046e130
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push 0
push eax
mov byte [ebp - 4], 4
call fcn.0051ab80
lea ecx, [ebp - 0x5c]
call fcn.00403120
mov dword [ebp - 4], 5
jmp 0x50f79e
lea ebx, [edi + 0x158]
mov eax, dword [edi + 0x1b4]
test eax, eax
jle 0x50f727
push eax
push ebx
call fcn.0050fa70
push 0x5bbe30
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0044f380
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.0056e316
add esp, 0x18
test eax, eax
je 0x50f687
call fcn.0055fbef
push ebx
lea eax, [ebp - 0x44]
push str.Renaming_file
push eax
call fcn.0046e130
push str._to
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
call fcn.00415170
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00430d00
add esp, 0x24
mov ecx, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 9
call fcn.0051ab40
lea ecx, [ebp - 0x5c]
call fcn.00403120
lea ecx, [ebp - 0x74]
call fcn.00403120
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00403120
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov eax, ebx
cmova ecx, dword [ebp - 0x2c]
cmp dword [ebx + 0x14], 7
jbe 0x50f6fc
mov eax, dword [ebx]
push ecx
push eax
call fcn.0056e33e
add esp, 8
test eax, eax
je 0x50f711
call fcn.0055fbef
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x7c]
call fcn.0050ddf0
add esp, 0x10
lea ecx, [ebp - 0x2c]
jmp 0x50f749
push str._has_no_backups_specified
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0044f380
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0051ab40
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00403120
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 0x50f797
push ebx
lea eax, [ebp - 0x44]
push str.Failed_to_open_file
push eax
call fcn.0046e130
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
push 0
push eax
mov byte [ebp - 4], 0xb
call fcn.0051ab80
lea ecx, [ebp - 0x44]
call fcn.00403120
mov dword [ebp - 4], 0xc
test esi, esi
je 0x50f7a9
mov ecx, esi
call fcn.00524fe0
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.0054b289
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x80]
push 1
push eax
call fcn.00462200
add esp, 8
lea ecx, [ebp - 0x94]
push eax
push str.ios_base::badbit_set
call fcn.00460020
push 0x5ea274
lea eax, [ebp - 0x94]
push eax
call fcn.0054d049
int3