Function at 0x4bd600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov ebx, edx
mov esi, ecx
lea ecx, [esp + 0x18]
mov edx, 1
push dword [ebp + 8]
push ebx
call sym.memchr::memmem::Searcher::new::h5b0711ac0c27e2e0
add esp, 8
movzx ecx, byte [esp + 0x1c]
movsd xmm0, qword [esp + 0x1d]
mov eax, dword [esp + 0x18]
mov edi, 2
mov byte [esp + 3], cl
movsd qword [esp + 0x88], xmm0
movsd xmm0, qword [esp + 0x25]
mov ecx, dword [esp + 0x2c]
lea edx, [eax - 2]
cmp edx, 2
cmovae edx, edi
test edx, edx
movsd qword [esp + 0x90], xmm0
mov dword [esp + 0x97], ecx
mov ecx, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x40]
movsd qword [esp + 0x60], xmm0
je 0x4bd6bf
cmp edx, 1
jne 0x4bd694
mov edi, 3
jmp 0x4bd6bf
mov edx, dword [esp + 0x97]
movsd xmm0, qword [esp + 0x88]
movsd xmm1, qword [esp + 0x90]
mov edi, eax
mov dword [esp + 0x27], edx
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
test ecx, ecx
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
jne 0x4bd73d
test edx, edx
mov dword [esp + 8], edi
je 0x4bd72a
js 0x4bd8b4
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x4bd70b
call sub.KERNEL32.dll_GetProcessHeap
mov edx, dword [esp + 4]
test eax, eax
je 0x4bd71e
mov dword [0x5c6108], eax
push edx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edx, dword [esp + 4]
mov edi, eax
test eax, eax
jne 0x4bd72f
mov ecx, 1
call dbg.handle_alloc_error
ud2
mov edi, 1
push edx
push dword [esp + 0xc]
push edi
call sym._memcpy
add esp, 0xc
mov eax, dword [esp + 0x68]
movq xmm0, qword [esp + 0x60]
movq xmm2, qword [esp + 0x18]
movq xmm1, qword [esp + 0x20]
mov dword [esp + 8], edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x27]
movq qword [esp + 0x78], xmm1
movq qword [esp + 0x50], xmm0
movq qword [esp + 0x70], xmm2
mov dword [esp + 0x7f], eax
mov edx, ebx
lea ecx, [esp + 0x18]
push dword [ebp + 8]
call dbg.from_utf8_lossy
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test edi, edi
mov ecx, edi
mov dword [esp + 0xc], eax
cmove ecx, eax
cmp edx, 0x10
jae 0x4bd830
xor ebx, ebx
test edx, edx
je 0x4bd837
cmp edx, 8
mov eax, 0
jb 0x4bd814
movd xmm0, dword [ecx + 4]
movdqa xmm1, xmmword [0x54ba30]
movd xmm3, dword [ecx]
movdqa xmm2, xmmword [0x54ba40]
mov eax, 8
pcmpgtb xmm0, xmm1
pcmpgtb xmm3, xmm1
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pand xmm0, xmm2
punpcklbw xmm3, xmm3
punpcklwd xmm3, xmm3
pand xmm3, xmm2
paddd xmm3, xmm0
pshufd xmm0, xmm3, 0xee
paddd xmm0, xmm3
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd ebx, xmm1
je 0x4bd837
sub edx, eax
add ecx, eax
nop dword [eax + eax]
xor eax, eax
cmp byte [ecx], 0xc0
setge al
inc ecx
add ebx, eax
dec edx
jne 0x4bd820
jmp 0x4bd837
call dbg.do_count_chars
mov ebx, eax
test edi, edi
je 0x4bd850
cmp dword [esp + 0xc], 0
je 0x4bd850
push edi
push 0
push dword [0x5c6108]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x78]
mov ecx, dword [esp + 0x7f]
mov edx, dword [esp + 0x58]
mov dword [esi], eax
movzx eax, byte [esp + 3]
mov byte [esi + 4], al
movsd qword [esi + 0xd], xmm0
movsd xmm0, qword [esp + 0x70]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x10]
movsd qword [esi + 5], xmm0
movsd xmm0, qword [esp + 0x50]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 8]
movsd qword [esi + 0x18], xmm0
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 4]
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x38], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.alloc::raw_vec::capacity_overflow::hd0578b62e5d0dfac
ud2