Function at 0x100cf660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10112091
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x10152034]
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.100d0600
push 0x10118d7a
lea ecx, [ebp - 0x28]
call fcn.10007fa0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xdc]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push eax
call fcn.10002200
mov dword [ebp - 0x118], eax
call fcn.10041490
add esp, 0x18
mov byte [ebp - 0xd4], al
movzx eax, byte [ebp - 0xd4]
test eax, eax
je 0x100cf90a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x1012da60
call fcn.10002200
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.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call fcn.10002200
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 2
call fcn.100bcf70
add esp, 0x30
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xe4], edx
cmp dword [ebp - 0xe4], 0
jne 0x100cf7ab
mov ecx, dword [ebp - 0xdc]
call fcn.100d0620
mov byte [ebp - 0xd2], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10008000
mov al, byte [ebp - 0xd2]
jmp 0x100cfb89
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.100ff1d0
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.10006c60
mov byte [ebp - 4], 4
cmp dword [ebp - 0xe0], 0
je 0x100cf8a0
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.10007d30
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0xdc]
call fcn.100d0060
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.10006c90
lea ecx, [ebp - 0xb8]
call fcn.10008000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.10008000
mov byte [ebp - 0xd1], 0
lea ecx, [ebp - 0x40]
call fcn.10007e50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10002c30
movzx ecx, al
test ecx, ecx
jne 0x100cfab7
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.10007d30
mov byte [ebp - 4], 6
mov eax, 1
test eax, eax
je 0x100cfaab
lea ecx, [ebp - 0x58]
call fcn.10002c30
movzx ecx, al
test ecx, ecx
je 0x100cf961
jmp 0x100cfaab
push 0
push 0x1012da5c
lea ecx, [ebp - 0x58]
call fcn.10006d20
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0xffffffff
jne 0x100cf984
jmp 0x100cfaab
mov edx, dword [ebp - 0xec]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.10006d60
mov byte [ebp - 4], 7
push 0
push 0x1012da6c
lea ecx, [ebp - 0x70]
call fcn.10006d20
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.10006d60
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
call fcn.10001ca0
push eax
lea ecx, [ebp + 8]
call fcn.10006d10
push eax
lea ecx, [ebp - 0x88]
call fcn.10006d10
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100cfa37
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.100080f0
push 0x1012da68
lea ecx, [ebp - 0x40]
call fcn.10007f60
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x40]
call fcn.100080f0
push 0x1012da74
lea ecx, [ebp - 0x40]
call fcn.10007f60
mov byte [ebp - 0xd1], 1
jmp 0x100cfa50
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x40]
call fcn.100080f0
push 0x1012da70
lea ecx, [ebp - 0x40]
call fcn.10007f60
push 0xffffffffffffffff
mov eax, dword [ebp - 0xec]
add eax, 2
push eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10006d60
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x58]
call fcn.10006c90
lea ecx, [ebp - 0xd0]
call fcn.10008000
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10008000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.10008000
jmp 0x100cf940
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.10008000
movzx eax, byte [ebp - 0xd1]
test eax, eax
jne 0x100cfaf6
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100080f0
push 0x1012da7c
lea ecx, [ebp - 0x28]
call fcn.10007f60
lea edx, [ebp + 0x20]
push edx
lea ecx, [ebp - 0x28]
call fcn.100080f0
push 0x1012da78
lea ecx, [ebp - 0x28]
call fcn.10007f60
jmp 0x100cfb02
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007dd0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.10007d30
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0xdc]
call fcn.100d0640
mov byte [ebp - 0xd6], al
mov al, byte [ebp - 0xd6]
mov byte [ebp - 0xd3], al
mov ecx, dword [ebp - 0xdc]
call fcn.100d0620
mov cl, byte [ebp - 0xd3]
mov byte [ebp - 0xd5], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10008000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10008000
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.1010a06b
mov esp, ebp
pop ebp
ret 0x30