Function at 0x1012dc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bf6db
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x1024bdac]
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.1012dbf0
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.10045a30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x88], 0
jg 0x1012dd0a
push 0x15c
push 0x1021b9d8
mov ecx, dword [ebp - 0x84]
add ecx, 0x20
call fcn.10045c30
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.10045f80
lea eax, [ebp - 0x54]
push eax
call fcn.1004f3b0
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.10045c30
push eax
push 0x1021bc28
call fcn.100a8090
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.10045ea0
cmp dword [ebp - 0x88], 0
jle 0x1012dec8
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.10053da0
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.10053060
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.1012e640
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x100]
call fcn.10053090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.10053090
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.100953c0
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.1012ed40
test eax, eax
jne 0x1012de36
mov eax, 1
test eax, eax
je 0x1012de0f
push 0x164
push 0x1021bbb8
push str.cant_make_offset_table
push 0x1021bc3c
call fcn.100a8090
add esp, 0x10
mov dword [ebp - 0xac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10053ee0
mov eax, dword [ebp - 0xac]
jmp 0x1012e04b
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.100953c0
mov edx, dword [eax]
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 0x28
jne 0x1012de6e
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.100953c0
cmp dword [eax], 6
je 0x1012dec8
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.100bbcc0
mov eax, 1
test eax, eax
je 0x1012dea1
push 0x16d
push 0x1021bad8
push str.DataType_is_mismatch_or_DataSize_is_incorrect__
push 0x1021b9c4
call fcn.100a8090
add esp, 0x10
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10053ee0
mov eax, dword [ebp - 0xb4]
jmp 0x1012e04b
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.1012e440
mov byte [ebp - 4], 2
mov dword [ebp - 0x90], 0
jmp 0x1012df0b
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0xb8]
jge 0x1012e01d
mov dword [ebp - 0x8c], 0
jmp 0x1012df38
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [ebp - 0x88]
jge 0x1012df88
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0xd8]
call fcn.100953c0
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.100953c0
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.1012eb80
jmp 0x1012df29
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.1012efe0
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.1012f010
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.100859c0
movzx eax, byte [ebp - 0xe8]
test eax, eax
jne 0x1012e00d
push 0x17e
push 0x1021bb48
push str.CN3TableBase_Type__:_Key.
push 0x1021bdc0
call fcn.100a8090
add esp, 0x10
lea ecx, [ebp - 0xf4]
call fcn.100859e0
jmp 0x1012defc
mov dword [ebp - 0xc8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10085900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10053ee0
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.10154eb0
mov esp, ebp
pop ebp
ret 4