Function at 0x100b0e20
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2108
call fcn.100bfd30
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0x2104], eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x24]
push eax
lea eax, [esp + 0xe8]
movzx esi, dx
mov edx, dword [ebp + 8]
push eax
lea eax, [esp + 0xe0]
shl edx, 4
add edx, dword [ecx + 0x58]
push eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x24], 0xffffffff
push eax
lea eax, [esp + 0x84]
movaps xmmword [esp + 0x90], xmm0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x84], 0
push eax
push esi
mov dword [esp + 0x88], 0
call fcn.100afb60
mov edi, dword [esp + 0x34]
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x1c], esi
test esi, esi
je 0x100b146c
movzx ecx, word [esi]
mov edx, dword [esp + 0x7c]
and ecx, 0x20
mov dword [edx], ecx
movzx eax, word [esi]
mov ecx, dword [esp + 0x74]
and eax, 0x10
mov dword [esp + 0x78], eax
movzx eax, word [esi + 8]
mov dword [esp + 0x94], eax
mov eax, ecx
sub eax, 0
je 0x100b141a
sub eax, 1
je 0x100b12db
mov esi, dword [esp + 0x8c]
test ecx, ecx
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x3c], 0
jle 0x100b1167
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], edx
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xf0]
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x14]
lea eax, [eax + ecx*4]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x108]
add esp, 0xc
lea eax, [ecx + eax*4]
push 4
push eax
push edi
mov dword [esp + 0x88], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0x88]
add esp, 0xc
mov ecx, dword [ecx]
test ecx, ecx
je 0x100b146c
cmp dword [esp + 0x78], 0
jne 0x100b1148
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
lea eax, [esp + 0xcc]
push 8
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 8
jne 0x100b102b
movsx eax, word [esp + 0xd0]
movsx ecx, word [esp + 0xcc]
movsx edx, word [esp + 0xce]
mov dword [esp + 0xb8], eax
movsx eax, word [esp + 0xd2]
mov dword [esp + 0xbc], eax
jmp 0x100b1033
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + eax*4 + 0xd8]
add ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + ecx*4 + 0xe4]
sub eax, dword [esp + 0xbc]
add edx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xb4], edx
test ecx, ecx
jne 0x100b10a4
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jmp 0x100b113a
mov ecx, dword [esp + 0x40]
test ecx, ecx
jle 0x100b1109
test esi, esi
jle 0x100b1109
mov edx, dword [esp + 0x50]
mov eax, edx
sub eax, dword [esp + 0x20]
test eax, eax
jle 0x100b10c8
mov edx, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x18]
add eax, dword [esp + 0xb8]
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
mov eax, ecx
sub eax, edx
test eax, eax
jle 0x100b10f6
mov ecx, edx
add esi, eax
mov dword [esp + 0x4c], ecx
mov eax, edx
sub eax, ecx
add eax, dword [esp + 0xbc]
cmp esi, eax
jge 0x100b1141
mov esi, eax
jmp 0x100b1141
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x7c]
add dword [eax], 8
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x74]
jl 0x100b0f70
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x78], 0
je 0x100b1198
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov eax, dword [edx + 0xa]
mov dword [esp + 0x98], eax
mov eax, dword [edx + 0xe]
mov dword [esp + 0x9c], eax
jmp 0x100b11be
add eax, esi
mov word [esp + 0x98], dx
mov edx, dword [esp + 0x1c]
mov word [esp + 0x9a], ax
mov word [esp + 0x9c], cx
mov word [esp + 0x9e], si
xor eax, eax
xor esi, esi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x74], eax
jle 0x100b141c
mov eax, dword [esp + eax*4 + 0xfc]
add eax, dword [edx + 0x14]
push 0
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
lea eax, [esp + 0x14]
push 2
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ax, word [esp + 0x20]
mov ecx, 0x2000
add esp, 0xc
cmp ax, cx
ja 0x100b146c
movzx eax, ax
push eax
lea eax, [esp + 0x10c]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0xb8]
add esp, 0xc
test ecx, ecx
je 0x100b1247
movzx eax, word [esp + 0x14]
push eax
lea eax, [esp + 0x10c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100b146c
cmp dword [esp + 0x78], 0
jne 0x100b126a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0xd8]
mov eax, dword [esp + eax*4 + 0xe4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
jmp 0x100b1272
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x108]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
test edx, edx
je 0x100b129d
mov eax, dword [esp + 0xb0]
add eax, esi
push eax
lea eax, [edx + esi*8]
push eax
jmp 0x100b12a1
push 0
push 0
push dword [ebp + 0x10]
lea eax, [esp + 0xa8]
push dword [ebp + 0xc]
push eax
call fcn.100b79f0
cmp eax, 0xffffffff
je 0x100b146c
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x74]
jl 0x100b11d0
jmp 0x100b141c
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0xf0]
push 0
lea eax, [ecx + eax*4]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
lea eax, [esp + 0xe0]
add esp, 0xc
push 4
push eax
push edi
call esi
mov ecx, dword [esp + 0xe0]
add esp, 0xc
test ecx, ecx
je 0x100b146c
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
cmp dword [esp + 0x78], 0
je 0x100b1351
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xa]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0xe]
mov dword [esp + 0x9c], eax
jmp 0x100b1387
push 8
lea eax, [esp + 0x9c]
push eax
push edi
call esi
mov eax, dword [esp + 0xe4]
add esp, 0xc
add word [esp + 0x98], ax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xe4]
add word [esp + 0x9a], ax
mov dword [esp + 0x6c], eax
push 2
lea eax, [esp + 0x18]
push eax
push edi
call esi
mov ax, word [esp + 0x20]
mov ecx, 0x2000
add esp, 0xc
cmp ax, cx
ja 0x100b146c
movzx eax, ax
push eax
lea eax, [esp + 0x10c]
push eax
push edi
call esi
mov ecx, dword [esp + 0xb8]
add esp, 0xc
test ecx, ecx
je 0x100b13df
movzx eax, word [esp + 0x14]
push eax
lea eax, [esp + 0x10c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100b146c
push dword [esp + 0x6c]
lea eax, [esp + 0x10c]
push dword [esp + 0x74]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x9c]
push dword [esp + 0xb0]
push dword [esp + 0xb0]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.100b79f0
mov esi, eax
jmp 0x100b141c
xor esi, esi
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x100b1446
cmp esi, 0xffffffff
je 0x100b1446
mov eax, dword [esp + 0xa8]
mov byte [eax + esi], 0
mov eax, dword [ecx + esi*8 - 8]
mov dword [ecx + esi*8], eax
mov eax, dword [ecx + esi*8 - 4]
mov dword [ecx + esi*8 + 4], eax
cmp edi, 0xffffffff
je 0x100b1455
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x2104]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x100b147b
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov ecx, dword [esp + 0x210c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret