Function at 0x40dec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x14], ebx
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
test esi, esi
jne 0x40def4
lea eax, [ecx - 0x66]
pop edi
pop esi
pop ebx
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 0x40df1c
cmp byte [ecx + 1], 0
je 0x40df2d
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 0x40df1f
mov dword [ecx + 0x18], edx
mov ecx, dword [esi]
lea edx, [ebp - 8]
call fcn.0040d9c0
test eax, eax
je 0x40df32
or edi, 0xffffffff
jmp 0x40df41
cmp dword [ebp - 8], 0x2014b50
mov eax, 0xffffff99
cmovne edi, eax
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x40df77
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40df77
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
jmp 0x40df81
mov dword [ebp - 0x64], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40dfb7
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40dfb7
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
jmp 0x40dfc1
mov dword [ebp - 0x60], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40dff7
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40dff7
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
jmp 0x40e001
mov dword [ebp - 0x5c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40e037
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40e037
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
jmp 0x40e041
mov dword [ebp - 0x58], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [ebp - 0x54]
call fcn.0040d9c0
mov edx, dword [ebp - 0x54]
or ecx, 0xffffffff
test eax, eax
cmovne edi, ecx
mov ecx, edx
shr ecx, 0x10
mov eax, ecx
and eax, 0x1f
mov dword [ebp - 0x20], eax
mov eax, ecx
shr eax, 5
and eax, 0xf
shr ecx, 9
dec eax
add ecx, 0x7bc
mov dword [ebp - 0x1c], eax
mov eax, edx
shr eax, 0xb
and eax, 0x1f
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, edx
and edx, 0x1f
shr eax, 5
add edx, edx
and eax, 0x3f
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x28], eax
call fcn.0040d9c0
mov ecx, dword [esi]
lea edx, [ebp - 0x4c]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.0040d9c0
mov ecx, dword [esi]
lea edx, [ebp - 0x48]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.0040d9c0
test eax, eax
lea edx, [ebp - 8]
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40e10b
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40e10b
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
jmp 0x40e115
mov dword [ebp - 0x44], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40e14b
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40e14b
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
jmp 0x40e155
mov dword [ebp - 0x40], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40e18b
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40e18b
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
jmp 0x40e195
mov dword [ebp - 0x3c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40e1cb
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40e1cb
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
jmp 0x40e1d5
mov dword [ebp - 0x38], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040d920
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x40e20b
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040d920
test eax, eax
jne 0x40e20b
mov eax, dword [ebp - 8]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
jmp 0x40e215
mov dword [ebp - 0x34], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [ebp - 0x30]
call fcn.0040d9c0
mov ecx, dword [esi]
lea edx, [ebp - 0xc]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.0040d9c0
test eax, eax
je 0x40e243
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40e30d
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40e2d6
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jae 0x40e26b
mov byte [ecx + edx], 0
mov eax, ecx
mov dword [ebp - 8], ecx
jmp 0x40e26e
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40e2d6
cmp dword [ebp + 0x10], 0
jbe 0x40e2d6
mov ebx, dword [esi]
cmp byte [ebx], 0
je 0x40e29d
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push edx
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e298
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x40e2c5
mov edx, dword [ebx + 0x18]
add eax, edx
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
sub esi, edx
cmp eax, dword [ebx + 0x14]
cmovbe esi, dword [ebp - 8]
add ecx, edx
push esi
push ecx
push dword [ebp + 0xc]
call fcn.004d0350
add esp, 0xc
mov eax, esi
add dword [ebx + 0x18], esi
xor edx, edx
div dword [ebp - 8]
cmp eax, 1
jne 0x40e237
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e301
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebx + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [ebx + 0x40], xmm0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e30d
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret