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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
push eax
lea eax, [esp + 0x88]
movzx esi, dx
mov edx, dword [ebp + 8]
push eax
lea eax, [esp + 0x80]
mov dword [esp + 0x2c], edi
mov edi, dword [edi + 0x1d4]
push eax
lea eax, [esp + 0x78]
shl edx, 4
push eax
lea eax, [esp + 0x24]
mov dword [ebx + 0x10], 0
add edx, dword [ecx + 0x5c]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], ebx
push eax
push esi
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0xbc], 0
movups xmmword [esp + 0xc0], xmm0
mov dword [esp + 0xd8], 0
movq qword [esp + 0xd0], xmm0
mov dword [esp + 0x3c], 0xffffffff
call fcn.100afb60
mov esi, dword [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
je 0x100b05f5
movzx ecx, word [eax]
mov edx, dword [esp + 0x10]
and ecx, 0x20
mov dword [edx], ecx
movsx ecx, word [eax + 0xe]
movsx edx, word [eax + 0x10]
lea eax, [ecx + 0xf]
sar eax, 3
lea ebx, [ecx + 7]
mov ecx, dword [esp + 0x18]
and eax, 0xfffffffe
imul eax, edx
sar ebx, 3
imul ebx, edx
movzx edx, word [ecx]
and edx, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], edx
je 0x100b0175
mov edx, dword [esp + 0x1c]
movsx eax, word [ecx + 0xa]
push ebx
mov dword [edx], eax
movsx eax, word [ecx + 0xc]
mov dword [edx + 4], eax
movsx eax, word [ecx + 0xe]
mov dword [edx + 8], eax
movsx eax, word [ecx + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [edx + 0xc], eax
call fcn.100b47a0
mov edi, eax
test edi, edi
jne 0x100b05f5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
cmp dword [ecx + 0x1c], eax
je 0x100b0175
mov eax, dword [esp + 0x10]
or dword [eax], 0x40
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x100b061f
sub eax, 1
je 0x100b051d
test edx, edx
je 0x100b02b8
mov eax, dword [esp + 0x6c]
mov edx, dword [ecx + 0x1c]
imul eax, ebx
test edx, edx
je 0x100b0203
push ebx
add eax, edx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 1
add esp, 0xc
mov dword [esp + 0xc], eax
cmp dword [esp + 0x14], eax
jle 0x100b062b
cmp eax, 3
jae 0x100b062b
mov ecx, dword [esp + eax*4 + 0x6c]
mov esi, ebx
mov eax, dword [esp + 0x18]
mov edx, edi
imul ecx, ebx
add ecx, dword [eax + 0x1c]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
or byte [edx], al
lea edx, [edx + 1]
sub esi, 1
jne 0x100b01e0
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x14]
jl 0x100b01c1
jmp 0x100b062b
add eax, dword [ecx + 0x14]
push 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
test edi, edi
je 0x100b0608
push ebx
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ebx
call fcn.100b4830
mov dword [esp + 0x10], eax
test eax, eax
je 0x100b05f5
mov ecx, 1
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x14], ecx
jle 0x100b062b
sub eax, edi
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov eax, dword [esp + ecx*4 + 0x6c]
mov ecx, dword [esp + 0x18]
imul eax, ebx
push 0
add eax, dword [ecx + 0x14]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
push ebx
push dword [esp + 0x14]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, dword [esp + 0x34]
add esp, 0xc
mov edx, ebx
mov ecx, edi
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
or byte [ecx - 1], al
sub edx, 1
jne 0x100b0292
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x14]
jl 0x100b0260
jmp 0x100b062b
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test ebx, ebx
jle 0x100b0382
mov eax, dword [esp + 0x6c]
lea edi, [esp + 0x90]
lea edx, [eax*4]
mov dword [esp + 0xc], edx
jmp 0x100b02e8
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
push 0
add eax, edx
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0xcc]
add esp, 0xc
shl eax, 2
add esi, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push 4
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x100b05f5
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.100aead0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + ecx + 0x78]
add dword [edi], eax
mov eax, dword [esp + ecx + 0x84]
add dword [edi + 4], eax
add edi, 0x10
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x100b02e4
movups xmm0, xmmword [esp + 0x90]
jmp 0x100b0385
xorps xmm0, xmm0
mov ecx, dword [esp + 0x1c]
movups xmmword [ecx], xmm0
cmp ebx, 1
jle 0x100b03ad
lea edx, [esp + 0xa0]
dec ebx
nop dword [eax]
call fcn.100adaf0
add edx, 0x10
sub ebx, 1
jne 0x100b03a0
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov ebx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], 0
lea eax, [edx + 0xf]
mov dword [esp + 0x54], 0
sar eax, 3
and eax, 0xfffffffe
mov dword [esp + 0x58], edx
imul eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x64], 1
mov dword [esp + 0x2c], eax
lea eax, [edx + 7]
sar eax, 3
imul ebx, eax
mov dword [esp + 0x60], eax
push ebx
mov dword [esp + 0x38], ebx
call fcn.100b47a0
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x5c]
mov dword [esp + 0x30], edi
push eax
call fcn.100b4830
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], edi
test edi, edi
je 0x100b05f5
mov dword [esp + 0x50], eax
test eax, eax
je 0x100b05f5
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 8]
mov dword [0x100e7d18], ecx
mov eax, dword [edx + 0xc]
xor edx, edx
mov dword [0x100e7d1c], eax
mov dword [esp + 0xc], edx
cmp dword [esp + 0x14], edx
jle 0x100b062b
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x9c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 4]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
lea eax, [ecx + 7]
sar eax, 3
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x14]
add eax, 8
add eax, dword [esp + edx*4 + 0xc0]
push 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov eax, dword [esp + 0x54]
add esp, 0xc
imul eax, dword [esp + 0x44]
push eax
push dword [esp + 0x2c]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edi + 4]
push dword [esp + 0x44]
sub eax, dword [ecx - 8]
push dword [esp + 0x44]
push 0
push 0
push eax
mov eax, dword [ecx - 0xc]
sub eax, dword [edi]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x70]
push eax
push 0x100e7d08
call fcn.100bbbd2
mov edx, dword [esp + 0x30]
add esp, 0x24
mov eax, dword [esp + 0x10]
inc edx
add eax, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
cmp edx, dword [esp + 0x14]
jl 0x100b0475
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
jmp 0x100b062b
mov eax, dword [esp + 0x6c]
test edx, edx
je 0x100b057d
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x100b0554
imul eax, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x10], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
imul eax, ebx
push 0
add eax, dword [ecx + 0x14]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
test edi, edi
je 0x100b0608
push ebx
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
jmp 0x100b0628
mov ecx, dword [ecx + 0x14]
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 esi
call edi
add esp, 0xc
lea eax, [esp + 0x38]
push 4
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0x44]
add esp, 0xc
test ecx, ecx
je 0x100b05f5
mov eax, dword [esp + 0x18]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push esi
call edi
mov ebx, dword [esp + 0x28]
add esp, 0xc
mov edx, ebx
mov ecx, esi
call fcn.100aead0
mov eax, dword [esp + 0x78]
add dword [ebx], eax
mov eax, dword [esp + 0x84]
add dword [ebx + 4], eax
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x24]
add eax, 7
sar eax, 3
imul eax, dword [ebx + 0xc]
push eax
call fcn.100b47a0
test eax, eax
je 0x100b0608
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x100b0608
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], edi
cmp eax, 0xffffffff
je 0x100b0645
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov ecx, dword [esp + 0x2c]
cmp ebx, ecx
je 0x100b06c2
push ecx
mov ecx, dword [esp + 0x28]
call fcn.100b4830
mov dword [esp + 0x30], eax
test eax, eax
je 0x100b06c2
mov ecx, dword [esi + 8]
mov edx, eax
lea ebx, [ecx + 0xf]
lea eax, [ecx + 7]
sar ebx, 3
xor ecx, ecx
sar eax, 3
and ebx, 0xfffffffe
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], ecx
cmp dword [esi + 0xc], ecx
jle 0x100b06bb
xor eax, eax
test ebx, ebx
jle 0x100b06b1
nop dword [eax + eax]
lea esi, [edx + 1]
cmp eax, dword [esp + 0x34]
jge 0x100b069e
mov cl, byte [edi]
inc edi
jmp 0x100b06a0
xor cl, cl
inc eax
mov byte [edx], cl
mov edx, esi
cmp eax, ebx
jl 0x100b0690
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi + 0xc]
jl 0x100b0682
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0xcc]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret