Function at 0x419b30
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 [0x4ef418]
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.00419e60
add esp, 8
mov ecx, dword [esi]
mov esi, dword [esi + 4]
mov eax, ecx
neg eax
sbb ebx, esi
jge 0x419d09
mov dword [esp + 0x10], ecx
push ecx
call fcn.00459b73
add esp, 4
mov ebx, eax
cmp byte [edi + 0xb], 0
mov dword [esp + 0xc], esi
jns 0x419b91
mov edi, dword [edi]
sub esp, 0x1c
movdqa xmm0, xmmword [0x4d81f0]
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 0x419d6d
mov esi, eax
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x419d9b
mov ebx, esi
call fcn.0044c920
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.0042cea0
add esp, 4
test ebx, ebx
jg 0x419d39
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x419c6d
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 0x419d8c
je 0x419c8e
test eax, eax
je 0x419d66
lea eax, [esp + 0x20]
mov ebx, esi
mov esi, eax
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0042ceb0
add esp, 8
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0042ced0
add esp, 8
push esi
mov esi, ebx
mov ebx, edi
push esi
call fcn.004ae090
add esp, 8
mov edi, dword [esp + 8]
lea eax, [edi + 1]
cmp eax, 2
jb 0x419ce4
call fcn.0044c920
push edi
call fcn.0044a480
add esp, 4
test ebx, ebx
je 0x419cf1
push ebx
call fcn.00459b7c
add esp, 4
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.0045bb2d
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 0x419cf1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0042ceb0
add esp, 8
add edi, esi
cmp edi, ebx
jge 0x419c5d
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 0x419d8c
cmp ebx, edi
je 0x419d1d
test eax, eax
jne 0x419d1d
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 0x419d91
pxor xmm0, xmm0
mov esi, dword [ebp + 8]
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esp + 8], 0
jmp 0x419cca
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 0x4d745c
call fcn.00492230
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 4]
jmp 0x419d6d