Function at 0x1012fc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bb28b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10247db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x84]
call fcn.1012fbf0
mov dword [ebp - 0x88], 0
push 0
lea eax, [ebp - 0x94]
push eax
push 4
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0xd8]
call fcn.10044c50
mov dword [ebp - 4], 0
cmp dword [ebp - 0x88], 0
jg 0x1012fd0a
push 0x15c
push 0x10217818
mov ecx, dword [ebp - 0x84]
add ecx, 0x20
call fcn.10044e70
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xdc], esp
push str.Data_Type_is_0_or_less:__s_n
call fcn.100451a0
lea eax, [ebp - 0x54]
push eax
call fcn.1004d5a0
add esp, 0x24
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp - 0x9c]
call fcn.10044e70
push eax
push 0x102178e8
call fcn.100a4d50
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.100450b0
cmp dword [ebp - 0x88], 0
jle 0x1012fec8
mov dword [ebp - 0xa0], 0
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.10051f80
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 1
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0xe0], esp
mov eax, dword [ebp - 0xa8]
push eax
call fcn.100524c0
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.10130660
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x100]
call fcn.10051250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.10051250
push 0
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x88]
shl eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.10095ad0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0xd8]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.10130d80
test eax, eax
jne 0x1012fe36
mov eax, 1
test eax, eax
je 0x1012fe0f
push 0x164
push 0x10217880
push str.cant_make_offset_table
push 0x10217738
call fcn.100a4d50
add esp, 0x10
mov dword [ebp - 0xac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10052290
mov eax, dword [ebp - 0xac]
jmp 0x1013004b
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.10095ad0
mov edx, dword [eax]
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 0x28
jne 0x1012fe6e
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.10095ad0
cmp dword [eax], 6
je 0x1012fec8
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.100b8870
mov eax, 1
test eax, eax
je 0x1012fea1
push 0x16d
push 0x102177b0
push str.DataType_is_mismatch_or_DataSize_is_incorrect__
push 0x10217914
call fcn.100a4d50
add esp, 0x10
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10052290
mov eax, dword [ebp - 0xb4]
jmp 0x1013004b
push 0
lea ecx, [ebp - 0x94]
push ecx
push 4
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x38]
call fcn.10130460
mov byte [ebp - 4], 2
mov dword [ebp - 0x90], 0
jmp 0x1012ff0b
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0xb8]
jge 0x1013001d
mov dword [ebp - 0x8c], 0
jmp 0x1012ff38
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [ebp - 0x88]
jge 0x1012ff88
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0xd8]
call fcn.10095ad0
mov eax, dword [eax]
lea ecx, [ebp + eax - 0x38]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.10095ad0
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.10130bc0
jmp 0x1012ff29
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xbc], edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.10131030
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xc4]
push ecx
lea edx, [ebp - 0xf4]
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 0x14
call fcn.10131070
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.10085c60
movzx eax, byte [ebp - 0xe8]
test eax, eax
jne 0x1013000d
push 0x17e
push 0x10217a60
push str.CN3TableBase_Type__:_Key.
push 0x10217ac8
call fcn.100a4d50
add esp, 0x10
lea ecx, [ebp - 0xf4]
call fcn.10085c80
jmp 0x1012fefc
mov dword [ebp - 0xc8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10085bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10052290
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10159b70
mov esp, ebp
pop ebp
ret 4