Function at 0x4045f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x5e8464]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x404630
lea eax, [ecx - 0x66]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053ed9c
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 0x404658
cmp byte [ecx + 1], 0
je 0x404669
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 0x40465b
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi]
lea edx, [ebp - 0x10]
call fcn.004040f0
test eax, eax
je 0x40466e
or edi, 0xffffffff
jmp 0x40467d
cmp dword [ebp - 0x10], 0x2014b50
mov eax, 0xffffff99
cmovne edi, eax
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x4046b3
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x4046b3
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], eax
jmp 0x4046bd
mov dword [ebp - 0x74], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4046f3
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x4046f3
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
jmp 0x4046fd
mov dword [ebp - 0x70], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404733
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x404733
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
jmp 0x40473d
mov dword [ebp - 0x6c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404773
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x404773
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
jmp 0x40477d
mov dword [ebp - 0x68], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [ebp - 0x64]
call fcn.004040f0
mov edx, dword [ebp - 0x64]
or ecx, 0xffffffff
test eax, eax
cmovne edi, ecx
mov ecx, edx
shr ecx, 0x10
mov eax, ecx
and eax, 0x1f
mov dword [ebp - 0x30], eax
mov eax, ecx
shr eax, 5
and eax, 0xf
shr ecx, 9
dec eax
add ecx, 0x7bc
mov dword [ebp - 0x2c], eax
mov eax, edx
shr eax, 0xb
and eax, 0x1f
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, edx
and edx, 0x1f
shr eax, 5
add edx, edx
and eax, 0x3f
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x38], eax
call fcn.004040f0
mov ecx, dword [esi]
lea edx, [ebp - 0x5c]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.004040f0
mov ecx, dword [esi]
lea edx, [ebp - 0x58]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.004040f0
test eax, eax
lea edx, [ebp - 0x10]
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404847
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x404847
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
jmp 0x404851
mov dword [ebp - 0x54], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404887
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x404887
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x404891
mov dword [ebp - 0x50], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4048c7
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x4048c7
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
jmp 0x4048d1
mov dword [ebp - 0x4c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404907
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x404907
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
jmp 0x404911
mov dword [ebp - 0x48], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00404040
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404947
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00404040
test eax, eax
jne 0x404947
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
jmp 0x404951
mov dword [ebp - 0x44], 0
or edi, 0xffffffff
mov ecx, dword [esi]
lea edx, [ebp - 0x40]
call fcn.004040f0
mov ecx, dword [esi]
lea edx, [ebp - 0x14]
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
call fcn.004040f0
test eax, eax
je 0x404989
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x404a57
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404a20
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp + 0x10]
cmp ecx, edx
jae 0x4049b1
mov byte [eax + ecx], 0
mov eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x4049b6
mov eax, edx
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x404a20
test edx, edx
je 0x404a20
mov ebx, dword [esi]
cmp byte [ebx], 0
je 0x4049e6
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4049e1
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0xc]
jmp 0x404a0f
mov edx, dword [ebx + 0x1c]
add eax, edx
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
sub esi, edx
cmp eax, dword [ebx + 0x18]
mov eax, dword [ebp - 0x18]
cmovbe esi, dword [ebp - 0x10]
add ecx, edx
push esi
push ecx
push eax
call fcn.00542c70
add esp, 0xc
mov eax, esi
add dword [ebx + 0x1c], esi
xor edx, edx
div dword [ebp - 0x10]
cmp eax, 1
jne 0x404973
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404a4b
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebx + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebx + 0x40], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404a57
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053ed9c
mov esp, ebp
pop ebp
ret