Function at 0x1012a440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b429b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10245db0]
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.1012a410
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.10044b60
mov dword [ebp - 4], 0
cmp dword [ebp - 0x88], 0
jg 0x1012a52a
push 0x15c
push 0x102110b0
mov ecx, dword [ebp - 0x84]
add ecx, 0x20
call fcn.10044d80
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.100450b0
lea eax, [ebp - 0x54]
push eax
call fcn.1004c7c0
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.10044d80
push eax
push 0x1021109c
call fcn.100a3500
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.10044fc0
cmp dword [ebp - 0x88], 0
jle 0x1012a6e8
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.10051240
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.10051780
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.1012adf0
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x100]
call fcn.10050510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.10050510
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.10093590
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.1012b510
test eax, eax
jne 0x1012a656
mov eax, 1
test eax, eax
je 0x1012a62f
push 0x164
push 0x10211188
push str.cant_make_offset_table
push 0x10211308
call fcn.100a3500
add esp, 0x10
mov dword [ebp - 0xac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10051550
mov eax, dword [ebp - 0xac]
jmp 0x1012a86b
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.10093590
mov edx, dword [eax]
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 0x28
jne 0x1012a68e
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.10093590
cmp dword [eax], 6
je 0x1012a6e8
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.100b7050
mov eax, 1
test eax, eax
je 0x1012a6c1
push 0x16d
push 0x10211368
push str.DataType_is_mismatch_or_DataSize_is_incorrect__
push 0x10211174
call fcn.100a3500
add esp, 0x10
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10051550
mov eax, dword [ebp - 0xb4]
jmp 0x1012a86b
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.1012ac20
mov byte [ebp - 4], 2
mov dword [ebp - 0x90], 0
jmp 0x1012a72b
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0xb8]
jge 0x1012a83d
mov dword [ebp - 0x8c], 0
jmp 0x1012a758
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [ebp - 0x88]
jge 0x1012a7a8
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0xd8]
call fcn.10093590
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.10093590
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.1012b350
jmp 0x1012a749
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.1012b7c0
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.1012b800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.100838e0
movzx eax, byte [ebp - 0xe8]
test eax, eax
jne 0x1012a82d
push 0x17e
push 0x10211248
push str.CN3TableBase_Type__:_Key.
push 0x10211234
call fcn.100a3500
add esp, 0x10
lea ecx, [ebp - 0xf4]
call fcn.10083900
jmp 0x1012a71c
mov dword [ebp - 0xc8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10083870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10051550
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.10154220
mov esp, ebp
pop ebp
ret 4