Function at 0x462040
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [ecx + 0x50]
mov eax, 0xffffffff
test edx, edx
je 0x46205c
cmp edx, 0xfffffffb
jne 0x4622a4
xor eax, eax
cmp dword [ecx + 0x34], 0
jne 0x4622a4
mov ebx, dword [ecx + 0x5c]
xor edi, edi
mov eax, 0
test ebx, ebx
mov dword [esp + 4], ecx
je 0x462245
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x58]
cmp ebx, 8
jb 0x4621b9
mov eax, edx
sub eax, ecx
cmp eax, 0x20
jb 0x4621b9
xor eax, eax
cmp ebx, 0x20
mov dword [esp + 8], ebx
jb 0x46217c
lea esi, [ebx - 0x20]
mov eax, esi
shr eax, 5
inc eax
mov ebp, eax
and ebp, 3
mov dword [esp], ebp
xor ebp, ebp
cmp esi, 0x60
jb 0x462126
and eax, 0xfffffffc
xor ebp, ebp
nop word cs:[eax + eax]
movups xmm0, xmmword [ecx + ebp]
movups xmm1, xmmword [ecx + ebp + 0x10]
movups xmmword [edx + ebp], xmm0
movups xmmword [edx + ebp + 0x10], xmm1
movups xmm0, xmmword [ecx + ebp + 0x20]
movups xmm1, xmmword [ecx + ebp + 0x30]
movups xmmword [edx + ebp + 0x20], xmm0
movups xmmword [edx + ebp + 0x30], xmm1
movups xmm0, xmmword [ecx + ebp + 0x40]
movups xmm1, xmmword [ecx + ebp + 0x50]
movups xmmword [edx + ebp + 0x40], xmm0
movups xmmword [edx + ebp + 0x50], xmm1
movups xmm0, xmmword [ecx + ebp + 0x60]
movups xmm1, xmmword [ecx + ebp + 0x70]
movups xmmword [edx + ebp + 0x60], xmm0
movups xmmword [edx + ebp + 0x70], xmm1
sub ebp, 0xffffff80
add eax, 0xfffffffc
jne 0x4620d0
mov eax, ebx
and eax, 0xffffffe0
cmp dword [esp], 0
je 0x46216b
lea esi, [ecx + ebp]
add esi, 0x10
add ebp, edx
add ebp, 0x10
shl dword [esp], 5
xor ebx, ebx
nop word cs:[eax + eax]
movups xmm0, xmmword [esi + ebx - 0x10]
movups xmm1, xmmword [esi + ebx]
movups xmmword [ebp + ebx - 0x10], xmm0
movups xmmword [ebp + ebx], xmm1
add ebx, 0x20
cmp dword [esp], ebx
jne 0x462150
mov ebx, dword [esp + 8]
cmp ebx, eax
je 0x46223e
test bl, 0x18
je 0x4621b2
mov ebp, ebx
and ebp, 0xfffffff8
mov esi, ebx
lea ebx, [edx + ebp]
mov dword [esp], ebp
add ebp, ecx
and esi, 7
nop
movsd xmm0, qword [ecx + eax]
movsd qword [edx + eax], xmm0
add eax, 8
cmp dword [esp], eax
jne 0x462190
mov eax, dword [esp]
cmp dword [esp + 8], eax
mov edx, esi
jne 0x4621c1
jmp 0x46223e
and ebx, 0x1f
add ecx, eax
add edx, eax
mov eax, ebx
mov ebx, edx
mov ebp, ecx
mov edx, eax
lea eax, [edx - 1]
mov esi, edx
and edx, 7
je 0x4621e6
mov dword [esp], eax
xor ecx, ecx
movzx eax, byte [ebp + ecx]
mov byte [ebx + ecx], al
inc ecx
cmp edx, ecx
jne 0x4621d0
add ebx, ecx
add ebp, ecx
sub esi, ecx
mov eax, dword [esp]
cmp eax, 7
jb 0x46223e
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebp + eax]
mov byte [ebx + eax], cl
movzx ecx, byte [ebp + eax + 1]
mov byte [ebx + eax + 1], cl
movzx ecx, byte [ebp + eax + 2]
mov byte [ebx + eax + 2], cl
movzx ecx, byte [ebp + eax + 3]
mov byte [ebx + eax + 3], cl
movzx ecx, byte [ebp + eax + 4]
mov byte [ebx + eax + 4], cl
movzx ecx, byte [ebp + eax + 5]
mov byte [ebx + eax + 5], cl
movzx ecx, byte [ebp + eax + 6]
mov byte [ebx + eax + 6], cl
movzx ecx, byte [ebp + eax + 7]
mov byte [ebx + eax + 7], cl
add eax, 8
cmp esi, eax
jne 0x4621f0
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x5c]
mov ebx, dword [ecx + 0x20]
add ebx, eax
mov ebp, dword [ecx + 0x18]
sub ebp, eax
mov esi, 0x40000000
nop word cs:[eax + eax]
mov eax, ebp
sub eax, edi
cmp eax, 0x40000000
cmovae eax, esi
lea edx, [ebx + edi]
push eax
push edx
push dword [ecx + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
jle 0x46228c
add edi, eax
cmp edi, ebp
mov ecx, dword [esp + 4]
jb 0x462260
jmp 0x462299
js 0x4622ac
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], 1
add dword [ecx + 0x5c], edi
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x58], eax
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push 0xffffffffffffffff
push dword [esp + 0xc]
call fcn.004587a0
add esp, 0xc
mov eax, 0xffffffff
jmp 0x4622a4