Function at 0x100b06e0
Capabilities:
Read file on windows

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 + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x24]
push esi
push edi
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x28]
push eax
mov dword [esp + 0x80], ecx
lea eax, [esp + 0xe8]
mov ecx, dword [esp + 0x74]
push eax
lea eax, [esp + 0xe0]
movzx esi, dx
mov edx, dword [ebp + 8]
mov edi, dword [ecx + 0x1d4]
push eax
mov dword [esp + 0x78], edi
lea eax, [esp + 0xfc]
mov edi, ecx
shl edx, 4
mov ecx, dword [esp + 0x88]
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x20], 0xffffffff
mov edi, dword [edi + 0x1d8]
push eax
mov dword [esp + 0xbc], edi
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x88]
push eax
push esi
movaps xmmword [esp + 0x9c], xmm0
mov dword [edi + 0x10], 0
add edx, dword [ecx + 0x58]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
call fcn.100afb60
mov edx, dword [esp + 0x2c]
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x1c], esi
mov edi, 0
test esi, esi
je 0x100b0dfa
movzx eax, word [esi]
mov ecx, dword [esp + 0x18]
and eax, 0x20
mov dword [ecx], eax
movzx eax, word [esi]
mov ecx, dword [esp + 0x60]
and eax, 0x10
mov dword [esp + 0x78], eax
movzx eax, word [esi + 8]
mov dword [esp + 0x98], eax
mov eax, ecx
sub eax, edi
je 0x100b0db4
sub eax, 1
je 0x100b0c6a
mov esi, dword [esp + 0x8c]
test ecx, ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x4c], edi
jle 0x100b0a61
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x50], ecx
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 edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x108]
add esp, 0xc
lea eax, [ecx + eax*4]
push 4
push eax
push dword [esp + 0x18]
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 0x100b0df6
cmp dword [esp + 0x78], edi
jne 0x100b0a40
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push dword [esp + 0x18]
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 dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 8
jne 0x100b0923
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 0x100b092b
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov eax, dword [esp + eax*4 + 0xd8]
add ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x4c]
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 0x100b099c
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 + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], edx
jmp 0x100b0a32
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x100b0a01
test esi, esi
jle 0x100b0a01
mov edx, dword [esp + 0x20]
mov eax, edx
sub eax, dword [esp + 0x30]
test eax, eax
jle 0x100b09c0
mov edx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x18]
add eax, dword [esp + 0xb8]
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x5c]
mov eax, ecx
sub eax, edx
test eax, eax
jle 0x100b09ee
mov ecx, edx
add esi, eax
mov dword [esp + 0x5c], ecx
mov eax, edx
sub eax, ecx
add eax, dword [esp + 0xbc]
cmp esi, eax
jge 0x100b0a39
mov esi, eax
jmp 0x100b0a39
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x7c]
add dword [eax], 8
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x60]
jl 0x100b0860
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
jmp 0x100b0a6e
mov edi, dword [esp + 0x80]
mov dword [esp + 0x20], edi
xor edi, edi
cmp dword [esp + 0x78], 0
je 0x100b0a9f
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [ecx + 0xa]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0xe]
mov dword [esp + 0xa0], eax
jmp 0x100b0acb
mov edi, dword [esp + 0x20]
add eax, esi
mov word [esp + 0x9c], di
xor edi, edi
mov word [esp + 0xa0], cx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x9e], ax
mov word [esp + 0xa2], si
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x60], esi
jle 0x100b0dca
jmp 0x100b0ae4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + esi*4 + 0xfc]
add eax, dword [ecx + 0x14]
push 0
push eax
push edx
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 dword [esp + 0x18]
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 0x100b0df6
movzx eax, ax
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0xb8]
lea eax, [esp + 0x114]
add esp, 0xc
mov dword [esp + 0xa4], eax
test ecx, ecx
je 0x100b0b6f
movzx eax, word [esp + 0x14]
push eax
lea eax, [esp + 0x10c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100b0df6
cmp dword [esp + 0x78], 0
jne 0x100b0b8e
mov eax, dword [esp + esi*4 + 0xd8]
mov ecx, dword [esp + esi*4 + 0xe4]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
jmp 0x100b0b96
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push ecx
push eax
push dword [esp + 0x74]
lea eax, [esp + 0xa4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x90]
push dword [esp + 0x90]
call fcn.100b7550
mov eax, dword [esp + 0x74]
cmp dword [eax + 0x10], 0
je 0x100b0df6
test esi, esi
jne 0x100b0c09
mov edi, dword [eax + 8]
mov ecx, dword [esp + 0x70]
add edi, 0xf
sar edi, 3
and edi, 0xfffffffe
imul edi, dword [eax + 0xc]
push edi
call fcn.100b4830
mov dword [esp + 0xa8], eax
test eax, eax
je 0x100b0df6
push edi
push dword [esp + 0x70]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100b0c52
mov eax, dword [esp + 0x60]
mov edx, edi
dec eax
cmp esi, eax
je 0x100b0c31
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0xa8]
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
or byte [ecx - 1], al
sub edx, 1
jne 0x100b0c21
jmp 0x100b0c4e
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x6c]
sub esi, eax
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
or byte [eax - 1], cl
sub edx, 1
jne 0x100b0c40
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x60]
jl 0x100b0ae0
jmp 0x100b0dca
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0xf0]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
push 0
lea eax, [ecx + eax*4]
push eax
push edx
call edi
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 dword [esp + 0x18]
call esi
mov ecx, dword [esp + 0xe0]
add esp, 0xc
test ecx, ecx
je 0x100b0df6
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push dword [esp + 0x18]
call edi
mov edi, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x78], 0
je 0x100b0ce8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xa]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0xe]
mov dword [esp + 0xa0], eax
jmp 0x100b0d1e
push 8
lea eax, [esp + 0xa0]
push eax
push edi
call esi
mov eax, dword [esp + 0xe4]
add esp, 0xc
add word [esp + 0x9c], ax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xe4]
add word [esp + 0x9e], ax
mov dword [esp + 0x64], 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 0x100b0df6
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 0x100b0d76
movzx eax, word [esp + 0x14]
push eax
lea eax, [esp + 0x10c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100b0df6
push dword [esp + 0x64]
lea eax, [esp + 0x10c]
push dword [esp + 0x6c]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa0]
push dword [esp + 0x74]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x90]
push dword [esp + 0x90]
call fcn.100b7550
jmp 0x100b0dca
mov ecx, dword [esp + 0x74]
movups xmm0, xmmword [0x100c8250]
mov eax, dword [0x100c8260]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x100b0ddd
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x2104]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
cmp edx, 0xffffffff
je 0x100b0e09
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov ecx, dword [esp + 0x210c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret