Function at 0x100086e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10025008]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1000870d
push eax
call fcn.1000a91d
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi + 0x30], xmm0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x10008724
push eax
call fcn.1000a91d
add esp, 4
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movups xmmword [esi + 0x40], xmm0
cmp byte [esi + 0x24], 0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x34], 0
jne 0x10008777
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x70000
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000881a
mov ax, word [esp + 0x34]
mov word [esi + 8], ax
movzx eax, word [esi + 8]
push eax
mov byte [esp + 0x13], 0
call fcn.1000a914
add esp, 4
mov dword [esp + 0x20], 0
mov ebx, eax
xorps xmm0, xmm0
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebx
movups xmmword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0
push eax
movzx eax, word [esi + 8]
push eax
push ebx
push dword [esi + 0x18]
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008988
movzx eax, byte [ebx + 0xd]
movzx edi, word [esi + 8]
mov word [esi + 0xa], ax
imul eax, edi
mov dword [esi + 0x50], eax
movzx eax, byte [ebx + 0xd]
cdq
push edx
push eax
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call fcn.1001b7e0
mov dword [esi + 0x14], edx
mov edx, 1
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x40]
cmp eax, 0x80
jae 0x1000882e
movzx edx, word [ebx + 0xb]
movzx eax, byte [ebx + 0xd]
imul edx, eax
imul edx, dword [ebx + 0x40]
jmp 0x10008837
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1000a56e
mov esp, ebp
pop ebp
ret
mov ecx, 0x100
sub ecx, eax
shl edx, cl
cmp edx, edi
mov dword [esi + 0x54], edx
cmova edi, edx
cmp dword [esi + 0x514], 0
jne 0x10008857
push edi
call fcn.1000a914
add esp, 4
mov dword [esi + 0x514], eax
movzx ecx, word [esi + 8]
xor edx, edx
mov eax, dword [esi + 0x54]
mov ebx, ecx
div ebx
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
mov edi, eax
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
movups xmmword [esp + 0x2c], xmm0
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.1001af80
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0xa]
cdq
push edx
push eax
push ecx
push esi
call fcn.1001af80
mov dword [esp + 0x28], eax
test edi, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], edx
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, 1
cmove edi, eax
imul edi, ebx
mov ebx, dword [esp + 0x1c]
push edi
push dword [ebx + 0x514]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008984
push dword [ebx + 0x514]
mov ecx, ebx
call fcn.10007ee0
test eax, eax
je 0x10008984
push 0
push dword [ebx + 0x514]
lea esi, [ebx + 0x60]
push 0
push 0
mov ecx, esi
call fcn.10006e10
cmp dword [ebx + 0x2b4], 0
je 0x10008984
cmp dword [ebx + 0x510], 0
jne 0x10008922
push 0
call fcn.1000a91d
add esp, 4
mov eax, dword [ebx + 0x2b4]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1000a914
mov ecx, eax
add esp, 4
mov eax, dword [ebx + 0x2b4]
mov dword [ebx + 0x510], ecx
push dword [eax + 0x10]
push ecx
push eax
push esi
mov ecx, ebx
call fcn.100083e0
cmp dword [esi + 0x248], 0
jle 0x10008984
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0
je 0x10008984
push 0
push dword [ebx + 0x54]
push dword [ebx + 0x8c]
push dword [ebx + 0x88]
call fcn.1001b7e0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
mov byte [esp + 0xf], 1
mov ebx, dword [esp + 0x10]
push ebx
call fcn.1000a91d
mov ecx, dword [esp + 0x40]
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000a56e
mov esp, ebp
pop ebp
ret