Function at 0x4078a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x4078de
lea eax, [ecx - 0x66]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov edx, dword [edi + 0x14]
add edx, dword [edi + 0xc]
cmp byte [ecx], bl
je 0x407908
cmp byte [ecx + 1], bl
je 0x40797f
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 0x40790b
mov dword [ecx + 0x1c], edx
mov eax, dword [edi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407935
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407950
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
test edx, edx
jne 0x40797f
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x40797f
mov eax, dword [ebp - 0xc]
mov ecx, 0xffffff99
shl eax, 0x18
add eax, esi
cmp eax, 0x2014b50
cmovne ebx, ecx
jmp 0x407982
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4079b4
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x4079b4
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
jmp 0x4079be
mov dword [ebp - 0x70], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x4079f0
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x4079f0
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
jmp 0x4079fa
mov dword [ebp - 0x6c], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x407a2c
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407a2c
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
jmp 0x407a36
mov dword [ebp - 0x68], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x407a68
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407a68
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
jmp 0x407a72
mov dword [ebp - 0x64], 0
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407a9c
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407ab7
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
test edx, edx
jne 0x407ad9
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x407ad9
mov edx, dword [ebp - 0xc]
shl edx, 0x18
add edx, esi
jmp 0x407ade
xor edx, edx
or ebx, 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 [edi]
mov ecx, eax
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407b4e
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407b69
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
test edx, edx
jne 0x407b8e
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x407b8e
mov eax, dword [ebp - 0xc]
shl eax, 0x18
add eax, esi
mov dword [ebp - 0x5c], eax
jmp 0x407b98
mov dword [ebp - 0x5c], 0
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407bc2
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407bdd
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
test edx, edx
jne 0x407c02
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x407c02
mov eax, dword [ebp - 0xc]
shl eax, 0x18
add eax, esi
mov dword [ebp - 0x58], eax
jmp 0x407c0c
mov dword [ebp - 0x58], 0
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407c36
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407c51
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
test edx, edx
jne 0x407c76
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x407c76
mov eax, dword [ebp - 0xc]
shl eax, 0x18
add eax, esi
mov dword [ebp - 0x54], eax
jmp 0x407c80
mov dword [ebp - 0x54], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x407cb5
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407cb5
mov esi, dword [ebp - 0x10]
shl esi, 8
add esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x50], esi
jmp 0x407cc0
xor eax, eax
or ebx, 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], eax
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x407cf2
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407cf2
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
jmp 0x407cfc
mov dword [ebp - 0x4c], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x407d2e
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407d2e
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
jmp 0x407d38
mov dword [ebp - 0x48], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x407d6a
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407d6a
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
jmp 0x407d74
mov dword [ebp - 0x44], 0
or ebx, 0xffffffff
mov esi, dword [edi]
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x407da6
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x407da6
mov eax, dword [ebp - 0x10]
shl eax, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
jmp 0x407db0
mov dword [ebp - 0x40], 0
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407dda
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407df5
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
test edx, edx
jne 0x407e1a
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x407e1a
mov eax, dword [ebp - 0xc]
shl eax, 0x18
add eax, esi
mov dword [ebp - 0x3c], eax
jmp 0x407e24
mov dword [ebp - 0x3c], 0
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov esi, ecx
test edx, edx
jne 0x407e4e
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, ecx
shl eax, 8
add esi, eax
test edx, edx
jne 0x407e69
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
mov ecx, dword [ebp - 0xc]
mov edx, eax
shl ecx, 0x10
add esi, ecx
mov dword [ebp - 8], esi
test edx, edx
jne 0x407f8d
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004072c0
test eax, eax
jne 0x407f8d
mov esi, dword [ebp - 0xc]
mov ecx, ebx
shl esi, 0x18
add esi, dword [ebp - 8]
mov eax, esi
test ebx, ebx
jne 0x407f3f
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x407f43
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x407ec0
mov byte [edx + eax], bl
mov edx, eax
mov dword [ebp - 0xc], edx
jmp 0x407ec5
mov edx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
test eax, eax
je 0x407f3d
cmp dword [ebp + 0x10], 0
jbe 0x407f3d
mov edi, dword [edi]
mov dword [ebp - 0x14], edi
cmp byte [edi], 0
je 0x407efb
push 0
lea eax, [ebp - 8]
push eax
push edx
push dword [ebp - 0x18]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407ef6
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x407f2d
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov edi, ecx
mov eax, dword [ebp - 0xc]
sub edi, edx
add eax, edx
cmp eax, ecx
mov ecx, dword [ebp - 0x14]
cmovbe edi, dword [ebp - 0xc]
push edi
mov ecx, dword [ecx + 0x14]
add ecx, edx
push ecx
push dword [ebp - 0x18]
call fcn.004376f0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, edi
xor edx, edx
mov ecx, ebx
div dword [ebp - 0xc]
or edx, 0xffffffff
cmp eax, 1
cmovne ecx, edx
mov eax, esi
test ecx, ecx
jne 0x407f90
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x407f71
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [edx + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [edx + 0x40], xmm0
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x407f90
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret
or ecx, 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043435c
mov esp, ebp
pop ebp
ret