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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.100bfd30
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x9c], edi
lea edi, [esp + 0xd4]
push edi
lea edi, [esp + 0xcc]
movzx eax, dx
mov edx, dword [ebp + 8]
push edi
lea edi, [esp + 0xe8]
mov dword [esp + 0x9c], esi
mov esi, dword [ebp + 0x18]
push edi
lea edi, [esp + 0x74]
shl edx, 4
add edx, dword [ecx + 0x58]
push edi
lea edi, [esp + 0x28]
mov dword [esp + 0xa8], esi
mov esi, dword [ebp + 0x1c]
push edi
push eax
mov dword [esp + 0x30], 0xffffffff
movups xmmword [esp + 0x88], xmm0
movlpd qword [esp + 0xc0], xmm0
call fcn.100ac080
mov edi, dword [esp + 0x30]
mov edx, eax
add esp, 0x18
mov dword [esp + 0x38], edx
test edx, edx
je 0x100ad8e6
movzx ecx, word [edx]
and ecx, 0x20
mov dword [esi], ecx
movzx eax, word [edx]
mov ecx, dword [esp + 0x68]
and eax, 0x10
mov dword [esp + 0x6c], eax
movzx eax, word [edx + 8]
mov dword [esp + 0x84], eax
mov eax, ecx
sub eax, 0
je 0x100ad894
sub eax, 1
je 0x100ad73d
mov esi, dword [esp + 0x7c]
xor eax, eax
mov edx, dword [esp + 0x70]
test ecx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
jle 0x100ad5b5
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], 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 dword [eax]
mov ecx, dword [esp + eax*4 + 0xe0]
mov eax, dword [esp + 0x38]
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 + 0x28]
lea ecx, [esp + 0xf8]
add esp, 0xc
lea eax, [ecx + eax*4]
push 4
push eax
push edi
mov dword [esp + 0x70], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0x70]
add esp, 0xc
mov ecx, dword [ecx]
test ecx, ecx
je 0x100ad8e6
cmp dword [esp + 0x6c], 0
jne 0x100ad596
mov eax, dword [esp + 0x38]
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 + 0xa0]
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 0x100ad499
movsx eax, word [esp + 0xa0]
movsx edx, word [esp + 0xa2]
mov dword [esp + 0x20], eax
movsx eax, word [esp + 0xa4]
mov dword [esp + 0xb8], eax
movsx eax, word [esp + 0xa6]
mov dword [esp + 0xbc], eax
jmp 0x100ad49d
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xbc]
mov eax, dword [esp + ecx*4 + 0xc8]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + ecx*4 + 0xd4]
sub eax, edi
add edx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0xb4], edx
test ecx, ecx
jne 0x100ad502
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x70], xmm0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jmp 0x100ad587
mov ecx, dword [esp + 0x40]
test ecx, ecx
jle 0x100ad562
test esi, esi
jle 0x100ad562
mov edx, dword [esp + 0x50]
mov eax, edx
sub eax, dword [esp + 0x20]
test eax, eax
jle 0x100ad526
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 + 0x3c]
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 0x100ad554
mov ecx, edx
add esi, eax
mov dword [esp + 0x4c], ecx
mov eax, edx
sub eax, ecx
add eax, edi
cmp esi, eax
jge 0x100ad58b
mov esi, eax
jmp 0x100ad58b
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x70], xmm0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x18]
add dword [eax], 8
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x68]
jl 0x100ad3e0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x6c], 0
je 0x100ad5dc
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0xa]
mov dword [esp + 0x88], eax
mov eax, dword [edx + 0xe]
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x100ad614
add eax, esi
mov word [esp + 0x88], dx
mov edx, dword [esp + 0x38]
mov word [esp + 0x8a], ax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov word [esp + 0x8c], cx
mov word [esp + 0x8e], si
mov dword [esp + 0x3c], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x68], eax
jle 0x100ad896
nop word [eax + eax]
mov eax, dword [esp + eax*4 + 0xec]
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 0x100ad8e6
movzx eax, ax
push eax
lea eax, [esp + 0xfc]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0xa8]
add esp, 0xc
test ecx, ecx
je 0x100ad6a7
movzx eax, word [esp + 0x14]
push eax
lea eax, [esp + 0xfc]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100ad8e6
cmp dword [esp + 0x6c], 0
jne 0x100ad6ca
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + eax*4 + 0xc8]
mov eax, dword [esp + eax*4 + 0xd4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], eax
jmp 0x100ad6d2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xf8]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x94]
push eax
push ecx
lea ecx, [esp + 0x8c]
test edx, edx
je 0x100ad704
mov eax, dword [esp + 0xa0]
add eax, esi
push eax
lea eax, [edx + esi*8]
push eax
jmp 0x100ad708
push 0
push 0
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.10029c50
add esp, 0x14
cmp eax, 0xffffffff
je 0x100ad8e6
mov edx, dword [esp + 0x38]
add esi, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x68]
jl 0x100ad630
jmp 0x100ad896
mov ecx, dword [edx + 0x14]
mov eax, dword [esp + 0xe0]
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 + 0xd0]
add esp, 0xc
push 4
push eax
push edi
call esi
mov ecx, dword [esp + 0xd0]
add esp, 0xc
test ecx, ecx
je 0x100ad8e6
mov eax, dword [esp + 0x38]
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 + 0x6c], 0
je 0x100ad7c9
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xa]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0xe]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x18], eax
jmp 0x100ad7ff
push 8
lea eax, [esp + 0x8c]
push eax
push edi
call esi
mov eax, dword [esp + 0xd4]
add esp, 0xc
add word [esp + 0x88], ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xd4]
add word [esp + 0x8a], 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 0x100ad8e6
movzx eax, ax
push eax
lea eax, [esp + 0xfc]
push eax
push edi
call esi
mov ecx, dword [esp + 0xa8]
add esp, 0xc
test ecx, ecx
je 0x100ad857
movzx eax, word [esp + 0x14]
push eax
lea eax, [esp + 0xfc]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100ad8e6
push dword [esp + 0x64]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0xfc]
push dword [esp + 0x1c]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x98], eax
push dword [esp + 0xa0]
push dword [esp + 0xa0]
push dword [ebp + 0x10]
call fcn.10029c50
add esp, 0x14
mov esi, eax
jmp 0x100ad896
xor esi, esi
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x100ad8c0
cmp esi, 0xffffffff
je 0x100ad8c0
mov eax, dword [esp + 0x98]
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 0x100ad8cf
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 + 0x20f4]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x100ad8f5
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov ecx, dword [esp + 0x20fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret