Function at 0x1002a510
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [0x100b9cf4]
mov eax, ecx
push esi
mov esi, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
push edi
test esi, esi
jne 0x1002a541
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1002a535
sub esi, edx
mov dword [ebp - 0x10], esi
lea eax, [ebx + 0x2f24]
lea edi, [esi + 1]
mov esi, dword [eax + 4]
cmp edi, esi
jle 0x1002a580
test esi, esi
je 0x1002a562
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x1002a567
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
lea ecx, [ebx + 0x2f24]
push eax
call fcn.1002bc70
lea eax, [ebx + 0x2f24]
mov dword [eax], edi
mov edi, dword [ebx + 0x2f2c]
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
lea esi, [edi + eax]
push edi
mov dword [ebp - 0xc], esi
call sub.VCRUNTIME140.dll_memcpy
mov byte [esi], 0
add esp, 0xc
xor esi, esi
cmp dword [ebx + 0x2f30], esi
jle 0x1002a5d5
xor edi, edi
mov eax, dword [ebx + 0x2f38]
add eax, edi
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1002a5c6
push eax
push ebx
call ecx
add esp, 8
inc esi
add edi, 0x24
cmp esi, dword [ebx + 0x2f30]
jl 0x1002a5b0
mov edi, dword [ebp - 0x14]
xor edx, edx
xor esi, esi
mov ecx, edi
mov dword [ebp - 8], edx
cmp edi, dword [ebp - 0xc]
jae 0x1002a754
nop word [eax + eax]
mov al, byte [ecx]
cmp al, 0xa
je 0x1002a7a9
cmp al, 0xd
je 0x1002a7a9
mov edi, ecx
cmp ecx, dword [ebp - 0xc]
jae 0x1002a622
mov ebx, dword [ebp - 0xc]
nop dword [eax]
mov al, byte [edi]
cmp al, 0xa
je 0x1002a61f
cmp al, 0xd
je 0x1002a61f
inc edi
cmp edi, ebx
jb 0x1002a610
mov ebx, dword [ebp - 4]
mov byte [edi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x1002a745
cmp al, 0x5b
jne 0x1002a726
cmp edi, ecx
jbe 0x1002a726
cmp byte [edi - 1], 0x5d
lea ebx, [edi - 1]
jne 0x1002a723
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x20], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1002a73f
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 0x1002a73f
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ebx, dword [0x100b9cf4]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [esi]
inc esi
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
test cl, cl
je 0x1002a6de
or ebx, 0xffffffff
nop dword [eax + eax]
cmp cl, 0x23
jne 0x1002a6bf
cmp byte [esi], cl
jne 0x1002a6bf
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 + 0x100a3bc0]
test cl, cl
jne 0x1002a6b0
mov ebx, dword [0x100b9cf4]
mov edx, dword [ebx + 0x2f30]
xor ecx, ecx
not eax
test edx, edx
jle 0x1002a6ff
mov esi, dword [ebx + 0x2f38]
cmp dword [esi + 4], eax
je 0x1002a708
inc ecx
add esi, 0x24
cmp ecx, edx
jl 0x1002a6f2
xor esi, esi
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x1002a742
test esi, esi
je 0x1002a701
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
push esi
push ebx
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 8], edx
jmp 0x1002a745
mov ebx, dword [ebp - 4]
test esi, esi
je 0x1002a745
test edx, edx
je 0x1002a745
mov eax, dword [esi + 0x14]
push ecx
push edx
push esi
push ebx
call eax
mov edx, dword [ebp - 8]
add esp, 0x10
jmp 0x1002a745
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
lea ecx, [edi + 1]
cmp ecx, dword [ebp - 0xc]
jb 0x1002a5f0
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov byte [ebx + 0x2f1d], 1
push dword [ebp - 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x2f30], esi
jle 0x1002a7a2
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2f38]
add eax, edi
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1002a796
push eax
push ebx
call ecx
add esp, 8
inc esi
add edi, 0x24
cmp esi, dword [ebx + 0x2f30]
jl 0x1002a780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x1002a5f0