Function at 0x10012e30
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100401cf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov esi, dword [ebx + 0xc]
mov ecx, 0x1005f113
mov dword [ebp - 0x30], esi
call fcn.1003df25
mov ecx, edi
call fcn.1000b150
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
mov ecx, esi
mov dword [ebp - 0x28], 0
call fcn.10013a90
add esp, 4
test al, al
je 0x10012ed5
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
jb 0x10012ec7
push ecx
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.10013b20
add esp, 4
test al, al
je 0x10012ed5
mov eax, dword [ebp - 0x2c]
cmp eax, 0x24687531
je 0x10012ef7
mov ecx, edi
call fcn.1000b150
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
lea eax, [edi + 0xc]
mov ecx, esi
mov edx, eax
call fcn.100138d0
test al, al
je 0x10012ed5
lea edx, [edi + 0x10]
mov ecx, esi
call fcn.100138d0
test al, al
je 0x10012ed5
push dword [edi + 0xc]
mov ecx, edi
call fcn.1000d050
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x10012f9b
mov eax, dword [esi]
test eax, eax
je 0x10012f3e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi], 0
mov edi, dword [ebp - 0x30]
lea eax, [esi + 4]
xor ecx, ecx
mov edx, eax
mov dword [esi + 6], ecx
mov word [esi + 0xa], cx
mov word [eax], cx
push ecx
mov ecx, edi
call fcn.10013bb0
add esp, 4
test al, al
je 0x10012ed5
push edi
push 1
lea eax, [esi + 6]
push 6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10012ed5
movzx eax, word [esi + 4]
push eax
call fcn.1000dfe0
mov dword [esi], eax
add esi, 0xc
mov eax, dword [ebp - 0x34]
mov edi, dword [eax + 4]
cmp esi, edi
jne 0x10012f28
mov esi, dword [eax]
xorps xmm0, xmm0
xor edx, edx
mov dword [ebp - 0x28], edx
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x10012fd0
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
call fcn.1000af30
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
nop dword [eax]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jne 0x10012ff1
cmp edi, ecx
jne 0x10012ff1
cmp esi, ecx
jne 0x10012ff1
cmp esi, edi
je 0x10012fed
test edx, edx
jne 0x10012ff1
mov al, 1
jmp 0x10012ff3
xor al, al
test al, al
jne 0x10013099
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10012ed5
push eax
push 1
push 0x10
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10012ed5
push 0x54
call fcn.1003c737
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.10003ef0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
push 1
push 0x54
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
cmp eax, 1
jne 0x10013089
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
cmp esi, edi
jne 0x10013081
push 0x244
push str.e:_trunk_code_rhinoprotect_share_vendor_sourcelib_sparsehash_src_sparsehash_sparsetable
push str.row_current___row_end
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [ebp - 0x28]
add esp, 0xc
add eax, 0x14
jmp 0x10012fb6
push 0x54
push ecx
call fcn.1003c767
add esp, 8
jmp 0x10012ed5
mov al, 1
jmp 0x10012ed7