Function at 0x40fd30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x4bc8c0]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
test esi, esi
jne 0x40fd74
lea eax, [ecx - 0x66]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0046977a
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 0x40fd9c
cmp byte [ecx + 1], 0
je 0x40fdae
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 0x40fd9f
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi]
lea edx, [esp + 0xc]
call fcn.0040f830
test eax, eax
je 0x40fdb3
or edi, 0xffffffff
jmp 0x40fdc3
cmp dword [esp + 0xc], 0x2014b50
mov eax, 0xffffff99
cmovne edi, eax
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0x78], ecx
test eax, eax
jne 0x40fe02
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x40fe02
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
jmp 0x40fe0d
mov dword [esp + 0x20], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x40fe4c
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x40fe4c
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
jmp 0x40fe57
mov dword [esp + 0x24], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x40fe96
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x40fe96
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
jmp 0x40fea1
mov dword [esp + 0x28], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x40fee0
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x40fee0
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
jmp 0x40feeb
mov dword [esp + 0x2c], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.0040f830
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.0040f830
mov ecx, dword [esi]
lea edx, [esp + 0x38]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.0040f830
mov ecx, dword [esi]
lea edx, [esp + 0x3c]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.0040f830
test eax, eax
lea edx, [esp + 8]
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [esi]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x40ffc9
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x40ffc9
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
jmp 0x40ffd4
mov dword [esp + 0x40], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x410013
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x410013
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
jmp 0x41001e
mov dword [esp + 0x44], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x41005d
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x41005d
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
jmp 0x410068
mov dword [esp + 0x48], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x4100a7
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x4100a7
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
jmp 0x4100b2
mov dword [esp + 0x4c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [esp + 8]
mov ecx, eax
mov dword [esp + 0x78], eax
call fcn.0040f780
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
test eax, eax
jne 0x4100f1
mov ecx, dword [esp + 0x78]
lea edx, [esp + 8]
call fcn.0040f780
test eax, eax
jne 0x4100f1
mov eax, dword [esp + 8]
shl eax, 8
add eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
jmp 0x4100fc
mov dword [esp + 0x50], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [esp + 0x54]
call fcn.0040f830
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.0040f830
test eax, eax
jne 0x4101d9
mov ecx, edi
test edi, edi
jne 0x410231
cmp dword [esp + 0x10], edi
je 0x4101ef
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x10]
cmp edx, eax
jae 0x410153
mov eax, dword [esp + 0x10]
mov dword [esp + 8], edx
mov byte [eax + edx], 0
mov eax, edx
jmp 0x410157
mov dword [esp + 8], eax
mov ecx, edi
test edx, edx
je 0x4101ef
cmp dword [ebp + 0x10], 0
jbe 0x4101ef
mov esi, dword [esi]
mov dword [esp + 0xc], esi
cmp byte [esi], 0
je 0x410199
push 0
lea ecx, [esp + 0x7c]
push ecx
push eax
push dword [esp + 0x1c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410193
mov byte [esi + 8], 1
mov eax, dword [esp + 0x78]
jmp 0x4101cc
mov edx, dword [esi + 0x1c]
add eax, edx
mov ecx, dword [esi + 0x18]
mov esi, ecx
sub esi, edx
cmp eax, ecx
mov ecx, dword [esp + 0xc]
cmovbe esi, dword [esp + 8]
push esi
mov ecx, dword [ecx + 0x14]
add ecx, edx
push ecx
push dword [esp + 0x18]
call fcn.0046b2f0
mov eax, dword [esp + 0x18]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, esi
xor edx, edx
mov ecx, edi
div dword [esp + 8]
cmp eax, 1
je 0x4101ef
or ecx, 0xffffffff
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0046977a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x410223
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 [esp + 0x18]
test edx, edx
je 0x410231
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0046977a
mov esp, ebp
pop ebp
ret