Function at 0x100165e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
push edi
mov ecx, 0x1006ba42
call fcn.10038b15
xor edi, edi
test esi, esi
jne 0x1001660a
lea eax, [edi - 0x66]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
add edx, dword [esi + 0xc]
cmp byte [ecx], 0
je 0x10016632
cmp byte [ecx + 1], 0
je 0x10016644
mov eax, dword [ecx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10016635
mov dword [ecx + 0x18], edx
mov ecx, dword [esi]
lea edx, [esp + 0x10]
call fcn.10015e70
test eax, eax
je 0x10016649
or edi, 0xffffffff
jmp 0x10016659
cmp dword [esp + 0x10], 0x2014b50
mov eax, 0xffffff99
cmovne edi, eax
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x10016698
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x10016698
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x100166a3
mov dword [esp + 0x20], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x100166e2
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x100166e2
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
jmp 0x100166ed
mov dword [esp + 0x24], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x1001672c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x1001672c
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x10016737
mov dword [esp + 0x28], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x10016776
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x10016776
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x10016781
mov dword [esp + 0x2c], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10015e70
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
test eax, eax
cmovne edi, ecx
mov ecx, edx
shr ecx, 0x10
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x64], eax
mov eax, ecx
shr eax, 5
and eax, 0xf
shr ecx, 9
dec eax
add ecx, 0x7bc
mov dword [esp + 0x68], eax
mov eax, edx
shr eax, 0xb
and eax, 0x1f
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi]
mov dword [esp + 0x60], eax
mov eax, edx
and edx, 0x1f
shr eax, 5
add edx, edx
and eax, 0x3f
mov dword [esp + 0x58], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x5c], eax
call fcn.10015e70
mov ecx, dword [esi]
lea edx, [esp + 0x38]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.10015e70
mov ecx, dword [esi]
lea edx, [esp + 0x3c]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.10015e70
test eax, eax
lea edx, [esp + 0xc]
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [esi]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x1001685f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x1001685f
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
jmp 0x1001686a
mov dword [esp + 0x40], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x100168a9
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x100168a9
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
jmp 0x100168b4
mov dword [esp + 0x44], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x100168f3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x100168f3
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
jmp 0x100168fe
mov dword [esp + 0x48], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x1001693d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x1001693d
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
jmp 0x10016948
mov dword [esp + 0x4c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.10015d70
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x10016987
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
call fcn.10015d70
test eax, eax
jne 0x10016987
mov eax, dword [esp + 0xc]
shl eax, 8
add eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
jmp 0x10016992
mov dword [esp + 0x50], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [esp + 0x54]
call fcn.10015e70
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.10015e70
test eax, eax
jne 0x10016a64
mov ecx, edi
test edi, edi
jne 0x10016ab0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10016a6f
mov edx, dword [esp + 0x40]
mov ecx, dword [ebp + 0x10]
cmp edx, ecx
jae 0x100169e6
mov byte [edx + eax], 0
mov eax, edx
mov dword [esp + 0xc], eax
jmp 0x100169ec
mov eax, ecx
mov dword [esp + 0xc], ecx
mov ecx, edi
test edx, edx
je 0x10016a6f
cmp dword [ebp + 0x10], 0
jbe 0x10016a6f
mov esi, dword [esi]
mov dword [esp + 0x10], esi
cmp byte [esi], 0
je 0x10016a25
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10016a1f
mov byte [esi + 8], 1
mov eax, dword [esp + 0x14]
jmp 0x10016a57
mov edx, dword [esi + 0x18]
add eax, edx
mov ecx, dword [esi + 0x14]
mov esi, ecx
sub esi, edx
cmp eax, ecx
mov ecx, dword [esp + 0x10]
cmovbe esi, dword [esp + 0xc]
push esi
mov ecx, dword [ecx + 0x10]
add ecx, edx
push ecx
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
add dword [eax + 0x18], esi
mov eax, esi
xor edx, edx
mov ecx, edi
div dword [esp + 0xc]
cmp eax, 1
je 0x10016a6f
or ecx, 0xffffffff
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10016aa3
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [eax + 0x40], xmm0
mov edx, dword [ebp + 8]
test edx, edx
je 0x10016ab0
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret