Function at 0x5863d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x634658
lea ecx, [ebp + 8]
call fcn.0056e5f0
push eax
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x586445
cmp dword [ebp + 0x10], 0
je 0x58643e
lea eax, [ebp - 0x10c]
push eax
call fcn.005879d0
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00430160
lea ecx, [ebp - 0x10c]
call fcn.00413150
xor al, al
jmp 0x586651
cmp dword [ebp + 0x14], 0
je 0x586458
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x124], eax
jmp 0x586462
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x138], ecx
xor edx, edx
mov word [ebp - 0x2c], dx
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00413180
push 2
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0x114], eax
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x114], 0
je 0x5865f2
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.005a5d06
add esp, 4
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x110]
push eax
push 1
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push 0
call fcn.005871a0
add esp, 0xc
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005a5d06
add esp, 4
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.005871a0
add esp, 0xc
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00413650
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x2c]
push eax
push str._s_d_bytes_to__d_wide_chars
lea ecx, [ebp - 0xf4]
push ecx
call dword [sym.imp.MSVCR120.dll__swprintf]
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x58662e
lea edx, [ebp - 0xf4]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00415f50
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x58664f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x138]
mov dword [ecx], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret