Function at 0x4177e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 4], 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]
xor edi, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x41781e
lea eax, [ecx - 0x66]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004192ef
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 0x41784a
cmp byte [ecx + 1], 0
je 0x4178c1
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 0x41784d
mov dword [ecx + 0x1c], edx
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov ebx, ecx
test edx, edx
jne 0x417877
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov eax, ecx
shl eax, 8
add ebx, eax
test edx, edx
jne 0x417892
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
shl ecx, 0x10
add ebx, ecx
test edx, edx
jne 0x4178c1
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x4178c1
mov eax, dword [ebp - 0x10]
mov ecx, 0xffffff99
shl eax, 0x18
add eax, ebx
cmp eax, 0x2014b50
cmovne edi, ecx
jmp 0x4178c4
or edi, 0xffffffff
mov ebx, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x4178f6
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
test eax, eax
jne 0x4178f6
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
jmp 0x417900
mov dword [ebp - 0x70], 0
or edi, 0xffffffff
mov ebx, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x417932
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
test eax, eax
jne 0x417932
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
jmp 0x41793c
mov dword [ebp - 0x6c], 0
or edi, 0xffffffff
mov ebx, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x41796e
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
test eax, eax
jne 0x41796e
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
jmp 0x417978
mov dword [ebp - 0x68], 0
or edi, 0xffffffff
mov ebx, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x4179aa
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
test eax, eax
jne 0x4179aa
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
jmp 0x4179b4
mov dword [ebp - 0x64], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov ebx, ecx
test edx, edx
jne 0x4179de
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov eax, ecx
shl eax, 8
add ebx, eax
test edx, edx
jne 0x4179f9
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
shl ecx, 0x10
add ebx, ecx
test edx, edx
jne 0x417a1b
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x417a1b
mov edx, dword [ebp - 0x10]
shl edx, 0x18
add edx, ebx
jmp 0x417a20
xor edx, edx
or edi, 0xffffffff
mov ecx, edx
mov dword [ebp - 0x60], edx
shr ecx, 0x10
mov eax, ecx
and eax, 0x1f
mov dword [ebp - 0x2c], eax
mov eax, ecx
shr eax, 5
and eax, 0xf
shr ecx, 9
dec eax
add ecx, 0x7bc
mov dword [ebp - 0x28], eax
mov eax, edx
shr eax, 0xb
and eax, 0x1f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov ebx, ecx
test edx, edx
jne 0x417a90
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov eax, ecx
shl eax, 8
add ebx, eax
test edx, edx
jne 0x417aab
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
shl ecx, 0x10
add ebx, ecx
test edx, edx
jne 0x417ad0
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x417ad0
mov eax, dword [ebp - 0x10]
shl eax, 0x18
add eax, ebx
mov dword [ebp - 0x5c], eax
jmp 0x417ada
mov dword [ebp - 0x5c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov ebx, ecx
test edx, edx
jne 0x417b04
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov eax, ecx
shl eax, 8
add ebx, eax
test edx, edx
jne 0x417b1f
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
shl ecx, 0x10
add ebx, ecx
test edx, edx
jne 0x417b44
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x417b44
mov eax, dword [ebp - 0x10]
shl eax, 0x18
add eax, ebx
mov dword [ebp - 0x58], eax
jmp 0x417b4e
mov dword [ebp - 0x58], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov ebx, ecx
test edx, edx
jne 0x417b78
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
mov eax, ecx
shl eax, 8
add ebx, eax
test edx, edx
jne 0x417b93
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, eax
shl ecx, 0x10
add ebx, ecx
test edx, edx
jne 0x417bb8
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x417bb8
mov eax, dword [ebp - 0x10]
shl eax, 0x18
add eax, ebx
mov dword [ebp - 0x54], eax
jmp 0x417bc2
mov dword [ebp - 0x54], 0
or edi, 0xffffffff
mov ebx, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x417bf1
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00417220
test eax, eax
jne 0x417bf1
mov ebx, dword [ebp - 0xc]
shl ebx, 8
add ebx, dword [ebp - 8]
jmp 0x417bf6
xor ebx, ebx
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 8], eax
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x417c2f
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
call fcn.00417220
test eax, eax
jne 0x417c2f
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
jmp 0x417c39
mov dword [ebp - 0x4c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x417c6f
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
call fcn.00417220
test eax, eax
jne 0x417c6f
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
jmp 0x417c79
mov dword [ebp - 0x48], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x417caf
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
call fcn.00417220
test eax, eax
jne 0x417caf
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
jmp 0x417cb9
mov dword [ebp - 0x44], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00417220
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x417cef
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
call fcn.00417220
test eax, eax
jne 0x417cef
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
jmp 0x417cf9
mov dword [ebp - 0x40], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x417d2b
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, ecx
shl eax, 8
add edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x417d4d
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shl ecx, 0x10
add edx, ecx
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x417d76
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x417d76
mov eax, dword [ebp - 0x10]
shl eax, 0x18
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
jmp 0x417d80
mov dword [ebp - 0x3c], 0
or edi, 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x417db2
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, ecx
shl eax, 8
add edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x417dd4
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417220
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shl ecx, 0x10
add edx, ecx
mov dword [ebp - 0xc], edx
test eax, eax
jne 0x417eda
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417220
test eax, eax
jne 0x417eda
mov eax, dword [ebp - 0x10]
shl eax, 0x18
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x417edd
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x417e90
mov edx, dword [ebp + 0x10]
cmp ebx, edx
jae 0x417e24
mov byte [ecx + ebx], 0
mov ecx, ebx
mov dword [ebp - 0xc], ecx
jmp 0x417e29
mov ecx, edx
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x417e90
test edx, edx
je 0x417e90
mov ebx, dword [esi]
cmp byte [ebx], 0
je 0x417e58
push 0
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x18]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417e53
mov byte [ebx + 8], 1
mov eax, dword [ebp - 8]
jmp 0x417e83
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebx + 0x18]
add eax, edx
sub esi, edx
cmp eax, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
cmovbe esi, dword [ebp - 0xc]
add eax, edx
push esi
push eax
push dword [ebp - 0x18]
call fcn.0041c3b0
add esp, 0xc
mov eax, esi
add dword [ebx + 0x1c], esi
xor edx, edx
div dword [ebp - 0xc]
cmp eax, 1
jne 0x417eda
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x417ebe
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ecx + 0x40], xmm0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x417edd
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004192ef
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192ef
mov esp, ebp
pop ebp
ret