Function at 0x100cfbb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101120fe
mov eax, dword fs:[0]
push eax
sub esp, 0x108
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 - 0xcc], ecx
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xcc]
call fcn.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf4], esp
push eax
call fcn.10002200
mov dword [ebp - 0x100], eax
call fcn.10041490
add esp, 0x18
mov byte [ebp - 0xb9], al
movzx eax, byte [ebp - 0xb9]
test eax, eax
je 0x100cfc3c
lea ecx, [ebp + 0xc]
call fcn.10002c30
movzx ecx, al
test ecx, ecx
je 0x100cfc6f
push 0x10118d7b
mov ecx, dword [ebp + 8]
call fcn.10007fa0
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008000
mov eax, dword [ebp + 8]
jmp 0x100d0024
mov ecx, dword [ebp - 0xcc]
call fcn.100d0600
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x110], esp
push 0x1012da80
call fcn.10002200
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.10001710
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xfc], esp
push eax
call fcn.10002200
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0
call fcn.100bcf70
add esp, 0x30
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0
jne 0x100cfd29
mov ecx, dword [ebp - 0xcc]
call fcn.100d0620
push 0
mov ecx, dword [ebp + 8]
call fcn.10007fa0
mov edx, dword [ebp - 0xc8]
or edx, 1
mov dword [ebp - 0xc8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008000
mov eax, dword [ebp + 8]
jmp 0x100d0024
push 2
push 0
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 4
mov eax, dword [ebp - 0xd0]
add eax, 1
push eax
call fcn.100ff1d0
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xd0]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0xc0]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
push ecx
push 1
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
call fcn.10006c60
mov byte [ebp - 4], 2
cmp dword [ebp - 0xc0], 0
je 0x100cfe1e
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0xc0], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10c], esp
lea eax, [ebp - 0x88]
push eax
call fcn.10007d30
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xcc]
call fcn.100d0060
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xcc]
call fcn.100d0620
push 0x10118d7e
lea ecx, [ebp - 0x58]
call fcn.10007fa0
mov byte [ebp - 4], 4
mov edx, 1
test edx, edx
je 0x100cffd0
lea ecx, [ebp - 0x28]
call fcn.10002c30
movzx eax, al
test eax, eax
je 0x100cfe91
jmp 0x100cffd0
push 0
push 0x1012da88
lea ecx, [ebp - 0x28]
call fcn.10006d20
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x100cfeb4
jmp 0x100cffd0
mov ecx, dword [ebp - 0xd4]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.10006d60
mov byte [ebp - 4], 5
push 0
push 0x1012da94
lea ecx, [ebp - 0x40]
call fcn.10006d20
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
push eax
push 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10006d60
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xc]
call fcn.10001ca0
push eax
lea ecx, [ebp + 0xc]
call fcn.10006d10
push eax
lea ecx, [ebp - 0x70]
call fcn.10006d10
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100cff78
push 0xffffffffffffffff
mov edx, dword [ebp - 0xd8]
add edx, 1
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x40]
call fcn.10006d60
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10006c90
lea ecx, [ebp - 0xb8]
call fcn.10008000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10008000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10008000
jmp 0x100cffd0
push 0xffffffffffffffff
mov edx, dword [ebp - 0xd4]
add edx, 2
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006d60
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10006c90
lea ecx, [ebp - 0xa0]
call fcn.10008000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.10008000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.10008000
jmp 0x100cfe70
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.10007d60
mov eax, dword [ebp - 0xc8]
or eax, 1
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10008000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10008000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.10008000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008000
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.1010a06b
mov esp, ebp
pop ebp
ret 0x1c