Function at 0x10012970
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x1003d7b8]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x10012999
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10012990
sub esi, ecx
test edx, edx
je 0x100129a3
inc dword [edx + 0x370]
lea eax, [esi + 1]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push edi
push eax
lea ecx, [eax + esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 4]
xor ecx, ecx
mov esi, dword [ebp - 0x14]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 8], ecx
mov edi, esi
mov byte [edx], 0
cmp esi, edx
jae 0x10012b3f
nop dword [eax]
mov al, byte [edi]
cmp al, 0xa
je 0x10012b6d
cmp al, 0xd
je 0x10012b6d
mov dword [ebp - 0x10], edi
mov esi, edi
cmp edi, edx
jae 0x10012a12
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0xa
je 0x10012a0f
cmp al, 0xd
je 0x10012a0f
inc esi
cmp esi, edx
jb 0x10012a00
mov dword [ebp - 0x10], esi
mov byte [esi], 0
mov al, byte [edi]
cmp al, 0x3b
je 0x10012b31
cmp al, 0x5b
jne 0x10012b15
cmp esi, edi
jbe 0x10012b15
cmp byte [esi - 1], 0x5d
lea eax, [esi - 1]
mov dword [ebp - 0x18], eax
jne 0x10012b15
lea ebx, [edi + 1]
mov byte [eax], 0
sub eax, ebx
push eax
push 0x5d
push ebx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x10012a7c
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 1]
sub edx, ecx
push edx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10012a7c
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x10012a83
mov ebx, str.Window
mov ecx, edi
lea eax, [ecx + 1]
mov cl, byte [ebx]
mov dword [ebp - 0x18], eax
lea edi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x10012ac3
or esi, 0xffffffff
cmp cl, 0x23
jne 0x10012aa7
cmp byte [edi], cl
jne 0x10012aa7
cmp byte [edi + 1], cl
cmove eax, esi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x100357d8]
test cl, cl
jne 0x10012a98
mov esi, dword [ebp - 0x10]
mov edx, dword [0x1003d7b8]
xor ecx, ecx
not eax
mov edi, dword [edx + 0x2cf4]
test edi, edi
jle 0x10012aec
mov ebx, dword [edx + 0x2cfc]
lea edx, [ebx + 4]
cmp dword [edx], eax
je 0x10012af5
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x10012ae0
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x10012b2e
lea eax, [ecx + ecx*2]
lea ebx, [ebx + eax*8]
test ebx, ebx
je 0x10012aee
push dword [ebp - 0x18]
mov eax, dword [ebx + 8]
push ebx
push dword [ebp - 0xc]
call eax
mov ecx, eax
add esp, 0xc
mov dword [ebp - 8], ecx
jmp 0x10012b2e
test ebx, ebx
je 0x10012b31
test ecx, ecx
je 0x10012b31
mov eax, dword [ebx + 0xc]
push edi
push ecx
push ebx
push dword [ebp - 0xc]
call eax
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
lea edi, [esi + 1]
cmp edi, edx
jb 0x100129e0
mov esi, dword [ebp - 0x14]
pop ebx
test esi, esi
je 0x10012b53
mov eax, dword [0x1003d7b8]
test eax, eax
je 0x10012b53
dec dword [eax + 0x370]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
mov byte [eax + 0x2ce0], 1
pop esi
mov esp, ebp
pop ebp
ret
inc edi
jmp 0x100129e0