Function at 0x100f9bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015a541
mov eax, dword fs:[0]
push eax
sub esp, 0x128
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 - 0xdc], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xdc]
call fcn.100faba0
push 0x10162c8a
lea ecx, [ebp - 0x28]
call fcn.100029e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xdc]
call fcn.10002bf0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push eax
call fcn.10003d50
mov dword [ebp - 0x118], eax
call fcn.1007dbc0
add esp, 0x18
mov byte [ebp - 0xd4], al
movzx eax, byte [ebp - 0xd4]
test eax, eax
je 0x100f9e9a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x1017d424
call fcn.10003d50
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xdc]
call fcn.10002bf0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call fcn.10003d50
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 2
call fcn.100f9680
add esp, 0x30
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xe4], edx
cmp dword [ebp - 0xe4], 0
jne 0x100f9d3b
mov ecx, dword [ebp - 0xdc]
call fcn.100fabc0
mov byte [ebp - 0xd2], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10001f50
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10001f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10001f50
mov al, byte [ebp - 0xd2]
jmp 0x100fa119
push 2
push 0
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 4
mov eax, dword [ebp - 0xe8]
add eax, 1
push eax
call fcn.1014578c
add esp, 4
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe8]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xe0]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
push 1
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xa0]
call fcn.1000ac60
mov byte [ebp - 4], 4
cmp dword [ebp - 0xe0], 0
je 0x100f9e30
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0xe0], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x11c], esp
lea eax, [ebp - 0xa0]
push eax
call fcn.1000d6d0
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0xdc]
call fcn.100fa630
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000aca0
lea ecx, [ebp - 0xb8]
call fcn.10001f50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10001f50
mov byte [ebp - 0xd1], 0
lea ecx, [ebp - 0x40]
call fcn.1000d8b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10001f20
movzx ecx, al
test ecx, ecx
jne 0x100fa047
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.1000d6d0
mov byte [ebp - 4], 6
mov eax, 1
test eax, eax
je 0x100fa03b
lea ecx, [ebp - 0x58]
call fcn.10001f20
movzx ecx, al
test ecx, ecx
je 0x100f9ef1
jmp 0x100fa03b
push 0
push 0x1017d420
lea ecx, [ebp - 0x58]
call fcn.1000ad90
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0xffffffff
jne 0x100f9f14
jmp 0x100fa03b
mov edx, dword [ebp - 0xec]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000adc0
mov byte [ebp - 4], 7
push 0
push 0x1017d430
lea ecx, [ebp - 0x70]
call fcn.1000ad90
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x70]
call fcn.1000adc0
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
call fcn.10002000
push eax
lea ecx, [ebp + 8]
call fcn.10001f00
push eax
lea ecx, [ebp - 0x88]
call fcn.10001f00
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100f9fc7
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.10035620
push 0x1017d42c
lea ecx, [ebp - 0x40]
call fcn.100355b0
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10035620
push 0x1017d438
lea ecx, [ebp - 0x40]
call fcn.100355b0
mov byte [ebp - 0xd1], 1
jmp 0x100f9fe0
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x40]
call fcn.10035620
push 0x1017d434
lea ecx, [ebp - 0x40]
call fcn.100355b0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xec]
add eax, 2
push eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x58]
call fcn.1000adc0
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x58]
call fcn.1000aca0
lea ecx, [ebp - 0xd0]
call fcn.10001f50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10001f50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.10001f50
jmp 0x100f9ed0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.10001f50
movzx eax, byte [ebp - 0xd1]
test eax, eax
jne 0x100fa086
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10035620
push 0x1017d440
lea ecx, [ebp - 0x28]
call fcn.100355b0
lea edx, [ebp + 0x20]
push edx
lea ecx, [ebp - 0x28]
call fcn.10035620
push 0x1017d43c
lea ecx, [ebp - 0x28]
call fcn.100355b0
jmp 0x100fa092
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d7b0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.1000d6d0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0xdc]
call fcn.100fabe0
mov byte [ebp - 0xd6], al
mov al, byte [ebp - 0xd6]
mov byte [ebp - 0xd3], al
mov ecx, dword [ebp - 0xdc]
call fcn.100fabc0
mov cl, byte [ebp - 0xd3]
mov byte [ebp - 0xd5], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10001f50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10001f50
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10001f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10001f50
mov al, byte [ebp - 0xd5]
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 0x30