Function at 0x10012ba0
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 0x1004018f
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 0x10012c45
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
jb 0x10012c37
push ecx
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.10013b20
add esp, 4
test al, al
je 0x10012c45
mov eax, dword [ebp - 0x2c]
cmp eax, 0x24687531
je 0x10012c67
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 0x10012c45
lea edx, [edi + 0x10]
mov ecx, esi
call fcn.100138d0
test al, al
je 0x10012c45
push dword [edi + 0xc]
mov ecx, edi
call fcn.1000d050
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x10012d0b
mov eax, dword [esi]
test eax, eax
je 0x10012cae
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 0x10012c45
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 0x10012c45
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 0x10012c98
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 0x10012d40
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 0x10012d61
cmp edi, ecx
jne 0x10012d61
cmp esi, ecx
jne 0x10012d61
cmp esi, edi
je 0x10012d5d
test edx, edx
jne 0x10012d61
mov al, 1
jmp 0x10012d63
xor al, al
test al, al
jne 0x10012e13
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10012c45
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 0x10012c45
push 0xc
call fcn.1003c737
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
push 1
push 0xc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp - 0x2c]
jne 0x10012e03
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x10], eax
cmp esi, edi
jne 0x10012df8
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]
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0x14
jmp 0x10012d26
push 0xc
push eax
call fcn.1003c767
add esp, 8
jmp 0x10012c45
mov al, 1
jmp 0x10012c47