Function at 0x100982b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3358
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x103ad010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1c0], ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
vpxor xmm0, xmm0, xmm0
vmovq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov ecx, ebx
mov dword [eax], 0
cmp dword [ebx + 0x14], 0x10
jb 0x1009833a
mov ecx, dword [ebx]
call fcn.10090aa0
mov edi, eax
test edi, edi
jns 0x1009834f
mov edi, 0x4e
jmp 0x100984df
mov ecx, dword [ebp - 0x18]
mov edx, ecx
mov esi, dword [ebp - 0x1c]
sub edx, esi
cmp edi, edx
jae 0x10098362
lea ecx, [esi + edi]
jmp 0x10098397
jbe 0x1009839a
mov eax, dword [ebp - 0x14]
sub eax, esi
cmp edi, eax
jbe 0x1009837f
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.10098700
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
jmp 0x1009839a
mov eax, edi
sub eax, edx
push eax
push 0
push ecx
lea esi, [ecx + eax]
call sub.VCRUNTIME140.dll_memset
mov ecx, esi
add esp, 0xc
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x100983ee
cmp dword [ebx + 0x14], 0x10
jb 0x100983a6
mov ebx, dword [ebx]
push 0x1039b4a0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100983c3
lea edi, [eax + 0x4e]
jmp 0x100984df
push ebx
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
cmp esi, edi
je 0x100983e8
mov edi, 0x4e
jmp 0x100984df
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov eax, ecx
xor edx, edx
sub eax, esi
mov dword [ebp - 0x1b4], edx
cmp esi, ecx
lea ecx, [ebp - 0x1b4]
cmove esi, edx
sub esp, 8
push eax
push esi
push dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1bc]
mov edx, esi
call fcn.10097c30
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, eax
mov eax, dword [ebp - 0x1b4]
add esp, 0x14
test eax, eax
je 0x100984d9
test edi, edi
jne 0x100984d9
lea ecx, [ebp - 0x1b0]
call fcn.10097ce0
mov byte [ebp - 4], 1
lea ecx, [edi + 6]
mov dword [ebp - 0x138], 6
mov dword [ebp - 0x134], 8
call fcn.10092370
mov ecx, dword [ebp - 0x1b8]
mov esi, dword [esi]
shl eax, 3
imul esi, dword [ecx]
mov edx, esi
shr esi, 3
and edx, 7
imul esi, eax
imul edx, eax
mov eax, dword [ebp - 0x1c0]
mov ecx, eax
add edx, 7
shr edx, 3
add edx, esi
push edx
push dword [ebp - 0x1b4]
push dword [eax + 4]
call fcn.10098540
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x100984b4
push eax
call ebx
add esp, 4
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
call fcn.10092a40
mov eax, dword [ebp - 0x1b4]
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10098515
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1009850b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009850b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100bb7e0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bb27a
mov esp, ebp
pop ebp
ret