Function at 0x418370
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [0x4f0690]
mov eax, ecx
push esi
mov esi, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
test esi, esi
jne 0x41839e
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x418391
sub esi, edx
mov dword [esp + 0x14], esi
lea edi, [esi + 1]
mov esi, dword [ebp + 0x30a8]
push ebx
cmp edi, esi
jle 0x4183d5
test esi, esi
je 0x4183bd
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x4183c2
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
lea ecx, [ebp + 0x30a4]
push eax
call fcn.00423ca0
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x30a4], edi
mov edi, dword [ebp + 0x30ac]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x24], edi
lea ebx, [edi + eax]
push edi
mov dword [esp + 0x20], ebx
call sub.VCRUNTIME140.dll_memcpy
xor esi, esi
mov byte [ebx], 0
add esp, 0xc
cmp dword [ebp + 0x30b0], esi
jle 0x418436
xor edi, edi
nop dword [eax]
mov eax, dword [ebp + 0x30b8]
add eax, edi
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x418426
push eax
push ebp
call ecx
add esp, 8
inc esi
add edi, 0x24
cmp esi, dword [ebp + 0x30b0]
jl 0x418410
mov edi, dword [esp + 0x1c]
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], edx
mov ecx, edi
cmp edi, ebx
jae 0x4185ad
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0xa
je 0x4185fb
cmp al, 0xd
je 0x4185fb
mov edi, ecx
cmp ecx, ebx
jae 0x418477
mov al, byte [edi]
cmp al, 0xa
je 0x418477
cmp al, 0xd
je 0x418477
inc edi
cmp edi, ebx
jb 0x418468
mov byte [edi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x41859e
cmp al, 0x5b
jne 0x41857c
cmp edi, ecx
jbe 0x41857c
cmp byte [edi - 1], 0x5d
lea ebx, [edi - 1]
jne 0x418578
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [esp + 0x28], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x418596
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x418596
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, dword [0x4f0690]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [esi]
inc esi
mov dword [esp + 0x24], eax
or eax, 0xffffffff
test cl, cl
je 0x418533
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x418514
cmp byte [esi], cl
jne 0x418514
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4def10]
test cl, cl
jne 0x418505
mov ebx, dword [0x4f0690]
mov edx, dword [ebx + 0x30b0]
xor ecx, ecx
not eax
test edx, edx
jle 0x418554
mov esi, dword [ebx + 0x30b8]
cmp dword [esi + 4], eax
je 0x41855e
inc ecx
add esi, 0x24
cmp ecx, edx
jl 0x418547
xor esi, esi
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x41859a
test esi, esi
je 0x418556
push dword [esp + 0x24]
mov eax, dword [esi + 0x10]
push esi
push ebp
call eax
mov edx, eax
add esp, 0xc
mov dword [esp + 0x10], edx
jmp 0x41859a
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x41859e
test edx, edx
je 0x41859e
mov eax, dword [esi + 0x14]
push ecx
push edx
push esi
push ebp
call eax
mov edx, dword [esp + 0x20]
add esp, 0x10
jmp 0x41859e
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea ecx, [edi + 1]
cmp ecx, ebx
jb 0x418450
mov edi, dword [esp + 0x1c]
push dword [esp + 0x18]
mov byte [ebp + 0x309c], 1
push dword [esp + 0x24]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor esi, esi
pop ebx
cmp dword [ebp + 0x30b0], esi
jle 0x4185f4
xor edi, edi
mov eax, dword [ebp + 0x30b8]
add eax, edi
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4185e8
push eax
push ebp
call ecx
add esp, 8
inc esi
add edi, 0x24
cmp esi, dword [ebp + 0x30b0]
jl 0x4185d2
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
inc ecx
jmp 0x418450