Function at 0x5a5420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x656954
lea ecx, [ebp + 8]
call fcn.00586800
push eax
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x5a5495
cmp dword [ebp + 0x10], 0
je 0x5a548e
lea eax, [ebp - 0x10c]
push eax
call fcn.005a6a20
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00433dd0
lea ecx, [ebp - 0x10c]
call fcn.004148d0
xor al, al
jmp 0x5a56a1
cmp dword [ebp + 0x14], 0
je 0x5a54a8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x124], eax
jmp 0x5a54b2
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.00414910
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 0x5a5642
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.005c4f06
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.005a61f0
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.005c4f06
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.005a61f0
add esp, 0xc
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00415c10
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 0x5a567e
lea edx, [ebp - 0xf4]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00418f80
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x5a569f
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.006116d0
mov esp, ebp
pop ebp
ret