Function at 0x100be340
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, dword [0x10357698]
test eax, eax
jne 0x100be362
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edx, eax
lea esi, [eax + 1]
mov eax, dword [ebp + 0x2e28]
mov ecx, edx
mov dword [esp + 4], edx
cmp eax, edx
jg 0x100be406
test eax, eax
je 0x100be38c
mov ebx, eax
shr ebx, 0x1f
add ebx, eax
sar ebx, 1
add ebx, eax
jmp 0x100be391
mov ebx, 8
cmp ebx, esi
cmovle ebx, esi
cmp eax, ebx
jge 0x100be406
inc dword [ebp + 0x374]
push dword [0x103576a0]
push ebx
call dword [0x103564fc]
add esp, 8
mov edi, eax
mov eax, dword [ebp + 0x2e2c]
test eax, eax
je 0x100be3f6
push dword [ebp + 0x2e24]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x2e2c]
test eax, eax
je 0x100be3e6
mov ecx, dword [0x10357698]
test ecx, ecx
je 0x100be3e6
dec dword [ecx + 0x374]
push dword [0x103576a0]
push eax
call dword [0x10356500]
add esp, 8
mov dword [ebp + 0x2e2c], edi
mov dword [ebp + 0x2e28], ebx
mov edi, dword [esp + 0x2c]
mov dword [ebp + 0x2e24], esi
mov ebx, dword [ebp + 0x2e2c]
mov esi, dword [esp + 4]
push esi
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x10], ebx
mov byte [ebx + esi], 0
mov eax, dword [ebp + 0x2e30]
test eax, eax
jle 0x100be467
xor esi, esi
xor edi, edi
jmp 0x100be448
inc edi
add esi, 0x24
cmp edi, eax
jge 0x100be467
mov edx, dword [ebp + 0x2e38]
mov ecx, dword [edx + esi + 0xc]
test ecx, ecx
je 0x100be440
add edx, esi
push edx
push ebp
call ecx
add esp, 8
mov eax, dword [ebp + 0x2e30]
jmp 0x100be440
mov dword [esp + 0xc], ebp
cmp dword [esp + 4], 0
jle 0x100be643
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x10]
lea edx, [edi + eax]
mov dword [esp + 8], 0
xor ebx, ebx
mov dword [esp], edx
jmp 0x100be4a9
xor ebx, ebx
mov edx, dword [esp]
nop word cs:[eax + eax]
inc edi
cmp edi, edx
jae 0x100be643
lea eax, [edi + 2]
lea ebp, [edi + 3]
mov esi, edi
jmp 0x100be4c3
inc esi
inc eax
inc ebp
movzx ecx, byte [esi]
cmp ecx, 0xa
je 0x100be4c0
cmp ecx, 0xd
je 0x100be4c0
mov edi, esi
cmp esi, edx
jae 0x100be500
mov edi, esi
nop dword [eax + eax]
movzx ecx, byte [edi]
cmp ecx, 0xa
je 0x100be500
cmp ecx, 0xd
je 0x100be500
inc edi
cmp edi, edx
jb 0x100be4e0
mov edi, edx
nop word cs:[eax + eax]
mov byte [edi], 0
movzx ecx, byte [esi]
cmp ecx, 0x3b
je 0x100be4a0
cmp ecx, 0x5b
jne 0x100be5d0
cmp edi, esi
jbe 0x100be5d0
cmp byte [edi - 1], 0x5d
jne 0x100be5d0
mov byte [edi - 1], 0
inc esi
mov ecx, edi
sub ecx, eax
push ecx
push 0x5d
push esi
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x100be492
lea edx, [edi - 1]
mov dword [esp + 0x14], eax
lea ecx, [eax + 1]
sub edx, ecx
push edx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
mov edx, dword [esp]
je 0x100be4a0
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
movzx edx, byte [esi]
mov dword [esp + 8], 0
mov ecx, 0
test dl, dl
je 0x100be5fd
mov ecx, 0xffffffff
jmp 0x100be5a9
movzx esi, dl
movzx ebx, cl
shr ecx, 8
xor ebx, esi
xor ecx, dword [ebx*4 + 0x1015bd1c]
inc ebp
mov dl, dh
test dh, dh
je 0x100be5fb
mov dh, byte [ebp - 1]
cmp dl, 0x23
jne 0x100be590
cmp dh, 0x23
jne 0x100be590
cmp byte [ebp], 0x23
mov esi, 0xffffffff
cmove ecx, esi
mov dh, 0x23
jmp 0x100be590
test ebx, ebx
mov eax, dword [esp + 0xc]
je 0x100be4a0
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x100be4a0
push esi
push ecx
push ebx
push eax
call dword [ebx + 0x14]
mov edx, dword [esp + 0x10]
add esp, 0x10
jmp 0x100be4a0
not ecx
mov esi, dword [0x10357698]
mov edx, dword [esi + 0x2e30]
test edx, edx
jle 0x100be490
mov ebx, dword [esi + 0x2e38]
mov esi, dword [esp + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 4], ecx
je 0x100be630
add ebx, 0x24
dec edx
jne 0x100be620
jmp 0x100be490
inc eax
push eax
push ebx
push esi
call dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x100be492
mov ebx, dword [esp + 0xc]
mov byte [ebx + 0x2e1c], 1
push dword [esp + 4]
push dword [esp + 0x30]
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x2e30]
test eax, eax
jle 0x100be6a7
xor esi, esi
xor edi, edi
jmp 0x100be688
inc edi
add esi, 0x24
cmp edi, eax
jge 0x100be6a7
mov edx, dword [ebx + 0x2e38]
mov ecx, dword [edx + esi + 0x18]
test ecx, ecx
je 0x100be680
add edx, esi
push edx
push ebx
call ecx
add esp, 8
mov eax, dword [ebx + 0x2e30]
jmp 0x100be680
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret