Function at 0x100fa140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015a5ae
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x101ac034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xcc]
call fcn.10002bf0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf4], esp
push eax
call fcn.10003d50
mov dword [ebp - 0x100], eax
call fcn.1007dbc0
add esp, 0x18
mov byte [ebp - 0xbd], al
movzx eax, byte [ebp - 0xbd]
test eax, eax
je 0x100fa1cc
lea ecx, [ebp + 0xc]
call fcn.10001f20
movzx ecx, al
test ecx, ecx
je 0x100fa1ff
push 0x10162c8b
mov ecx, dword [ebp + 8]
call fcn.100029e0
mov edx, dword [ebp - 0xbc]
or edx, 1
mov dword [ebp - 0xbc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10001f50
mov eax, dword [ebp + 8]
jmp 0x100fa5ed
mov ecx, dword [ebp - 0xcc]
call fcn.100faba0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x110], esp
push 0x1017d444
call fcn.10003d50
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xcc]
call fcn.10002bf0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xfc], esp
push eax
call fcn.10003d50
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0
call fcn.100f9680
add esp, 0x30
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xc8], ecx
cmp dword [ebp - 0xc8], 0
jne 0x100fa2b9
mov ecx, dword [ebp - 0xcc]
call fcn.100fabc0
push 0
mov ecx, dword [ebp + 8]
call fcn.100029e0
mov edx, dword [ebp - 0xbc]
or edx, 1
mov dword [ebp - 0xbc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10001f50
mov eax, dword [ebp + 8]
jmp 0x100fa5ed
push 2
push 0
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 4
mov eax, dword [ebp - 0xd0]
add eax, 1
push eax
call fcn.1014578c
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0
jne 0x100fa350
push 0
mov ecx, dword [ebp + 8]
call fcn.100029e0
mov edx, dword [ebp - 0xbc]
or edx, 1
mov dword [ebp - 0xbc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10001f50
mov eax, dword [ebp + 8]
jmp 0x100fa5ed
mov eax, dword [ebp - 0xd0]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0xc4]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc8]
push edx
push 1
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0x88]
call fcn.1000ac60
mov byte [ebp - 4], 2
cmp dword [ebp - 0xc4], 0
je 0x100fa3e7
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0xc4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10c], esp
lea edx, [ebp - 0x88]
push edx
call fcn.1000d6d0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xcc]
call fcn.100fa630
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xcc]
call fcn.100fabc0
push 0x10162c8f
lea ecx, [ebp - 0x58]
call fcn.100029e0
mov byte [ebp - 4], 4
mov ecx, 1
test ecx, ecx
je 0x100fa599
lea ecx, [ebp - 0x28]
call fcn.10001f20
movzx edx, al
test edx, edx
je 0x100fa45a
jmp 0x100fa599
push 0
push 0x1017d44c
lea ecx, [ebp - 0x28]
call fcn.1000ad90
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x100fa47d
jmp 0x100fa599
mov eax, dword [ebp - 0xd4]
push eax
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000adc0
mov byte [ebp - 4], 5
push 0
push 0x1017d458
lea ecx, [ebp - 0x40]
call fcn.1000ad90
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000adc0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xc]
call fcn.10002000
push eax
lea ecx, [ebp + 0xc]
call fcn.10001f00
push eax
lea ecx, [ebp - 0x70]
call fcn.10001f00
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100fa541
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xd8]
add ecx, 1
push ecx
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x40]
call fcn.1000adc0
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000aca0
lea ecx, [ebp - 0xb8]
call fcn.10001f50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10001f50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10001f50
jmp 0x100fa599
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xd4]
add ecx, 2
push ecx
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x28]
call fcn.1000adc0
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000aca0
lea ecx, [ebp - 0xa0]
call fcn.10001f50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10001f50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10001f50
jmp 0x100fa439
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000d730
mov edx, dword [ebp - 0xbc]
or edx, 1
mov dword [ebp - 0xbc], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10001f50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10001f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.10001f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10001f50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret 0x1c