Function at 0x562cf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1014
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x1010], eax
mov eax, dword [esp + 0x1020]
push ebx
mov ebx, dword [esp + 0x1020]
xor ecx, ecx
push ebp
xor ebp, ebp
cmp ebx, 0xffffffff
setne cl
push esi
mov esi, dword [esp + 0x1024]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
cmp ebx, ebp
jne 0x562d67
cmp ecx, ebp
je 0x562d67
cmp eax, ebp
je 0x562d4d
cmp byte [esi], 0x73
je 0x562d4d
mov dword [eax], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00586584
add esp, 0x1014
ret
cmp byte [esi], 0x73
push edi
jne 0x562ee1
cmp eax, ebp
je 0x562d99
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x562d99
mov edi, 0xffa
cmp eax, edi
jae 0x562d8f
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x562db5
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
jmp 0x562db5
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], 0xffa
mov edi, 0xffa
jmp 0x562db5
mov edi, 0xffa
mov eax, dword [esi + 6]
cmp dword [eax + 0x1c], 0
jne 0x562e47
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x2c]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jne 0x562e47
add dword [esp + 0x10], edi
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], edi
call fcn.005616d0
mov edi, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x562e11
test edi, edi
je 0x562e11
mov eax, edi
lea ecx, [esp + 0x24]
mov edx, esi
call fcn.00561670
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xa], edi
mov ebp, eax
test ecx, ecx
je 0x562e3d
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x562e3d
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
cmp ecx, 0xffa
jb 0x562e3d
mov dword [esp + 0x14], 0xffa
test eax, eax
je 0x562db0
jmp 0x562ea3
test ebp, ebp
jne 0x562ea3
test ebx, ebx
je 0x562e6f
mov edx, dword [esi + 6]
cmp dword [edx + 0x1c], ebp
jne 0x562e6f
add dword [esp + 0x10], ebx
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00561830
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x562ea3
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0
call fcn.005616d0
mov edi, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x562e9e
test edi, edi
je 0x562e9e
mov eax, edi
lea ecx, [esp + 0x24]
mov edx, esi
call fcn.00561670
mov dword [esi + 0xa], edi
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x562fac
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x562fac
cmp dword [esp + 0x10], eax
je 0x562fac
push 0xffffffffffffffff
push 0x5a8a1a
push eax
push 0xf4d
call fcn.004073f0
add esp, 0x10
mov dword [esi + 0xe], eax
jmp 0x562fac
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], 0
call fcn.005616d0
mov edi, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x562f10
test edi, edi
je 0x562f10
mov eax, edi
lea ecx, [esp + 0x24]
mov edx, esi
call fcn.00561670
mov dword [esi + 0xa], edi
mov ebp, eax
test eax, eax
jne 0x562f72
test edi, edi
je 0x562f72
add dword [esp + 0x10], edi
cmp dword [esi + 0xe], eax
jne 0x562ee1
mov eax, dword [esi + 6]
cmp dword [eax + 0x1c], ebp
jne 0x562ee1
test ebx, ebx
je 0x562ee1
cmp dword [esp + 0x14], ebp
je 0x562ee1
mov ecx, dword [esi + 0xa]
push ebx
push 1
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x562ee1
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
je 0x562f38
push 0x715
call fcn.004073f0
add esp, 4
mov dword [esi + 0xe], eax
jmp 0x562ee1
cmp dword [esp + 0x14], 0
je 0x562f9e
push ebx
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 4
cmp eax, 0xffffffff
jne 0x562f9e
cmp dword [esi + 0xe], 0
jne 0x562f9e
push 0x715
call fcn.004073f0
add esp, 4
mov dword [esi + 0xe], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x562fac
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
cmp byte [esi], 0x72
pop edi
jne 0x562fdf
mov edx, dword [0x5b46b0]
cmp dword [edx], 0
je 0x562fc1
push 1
jmp 0x562fd4
mov eax, dword [0x5b46ac]
cmp dword [eax + 0xd33], 0
je 0x562fdf
push 0x139b
call fcn.004073f0
mov dword [esi + 0xe], eax
add esp, 4
mov ecx, dword [esp + 0x101c]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x1014
ret