Function at 0x419b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4e6418]
xor eax, ebp
mov dword [esp + 0x98], eax
xor ebx, ebx
lea esi, [esp + 0x18]
mov dword [esi + 4], ebx
mov dword [esi], ebx
push esi
push edi
call fcn.00419e50
add esp, 8
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, ecx
neg eax
sbb ebx, edx
jge 0x419cf9
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
push ecx
call fcn.00457063
add esp, 4
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x419b81
mov edi, dword [edi]
sub esp, 0x1c
movdqa xmm0, xmmword [0x4d21d0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x419d0d
mov esi, eax
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x419d88
mov ebx, esi
call fcn.00447a10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x14]
mov dword [eax], 0xffffffff
xor edi, edi
push edi
push eax
mov esi, dword [esp + 0x18]
push esi
push dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
mov ebx, dword [ecx]
mov ecx, ebx
sar ecx, 0x1f
mov edx, dword [esp + 0xc]
xor edx, ecx
xor esi, ebx
or edx, esi
cmovne ebx, edi
test eax, eax
cmove ebx, eax
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x30]
movdqu xmmword [eax + 0x4c], xmm0
movdqa xmmword [eax + 0x40], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
push eax
call fcn.0042c9d0
add esp, 4
test ebx, ebx
jg 0x419d45
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x419c5d
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
test ecx, ecx
js 0x419d79
je 0x419c7e
test eax, eax
je 0x419d72
lea eax, [esp + 0x20]
mov ebx, esi
mov esi, eax
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0042c9e0
add esp, 8
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0042ca00
add esp, 8
push esi
mov esi, ebx
mov ebx, edi
push esi
call fcn.004a9b40
add esp, 8
mov edi, dword [esp + 8]
lea eax, [edi + 1]
cmp eax, 2
jb 0x419cd4
call fcn.00447a10
push edi
call fcn.00444b70
add esp, 4
test ebx, ebx
je 0x419ce1
push ebx
call fcn.0045706c
add esp, 4
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.0045901d
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
pxor xmm0, xmm0
mov esi, dword [ebp + 8]
movq qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x419ce1
pxor xmm0, xmm0
mov esi, dword [ebp + 8]
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esp + 8], 0
jmp 0x419cba
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0042c9e0
add esp, 8
add edi, esi
cmp edi, ebx
jge 0x419c4d
mov ecx, ebx
sub ecx, edi
mov eax, 0x1001
cmp ecx, eax
mov esi, 0x1001
cmovl esi, ecx
mov eax, dword [esp + 4]
add eax, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
test ecx, ecx
js 0x419d79
cmp ebx, edi
je 0x419d29
test eax, eax
jne 0x419d29
push str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x419d7e
push str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x4d143c
call fcn.0048e9c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 4]
jmp 0x419d0d