Function at 0x405d50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5c0c70]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x44]
push edi
mov edi, dword [ebp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edi
test ebx, ebx
jne 0x405da5
mov eax, 0xffffff9a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x405db1
cmp eax, 8
jne 0x405d8e
cmp dword [ebx + 0x38], 1
jne 0x405dc4
call fcn.00406810
test eax, eax
jne 0x406372
cmp dword [esp + 0x14], 0
jne 0x405dd3
mov dword [esp + 0x14], 0x5ada6c
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x405de0
mov dword [esp + 0x18], eax
jmp 0x405df0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405de3
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405df7
sub eax, edx
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], eax
cmp edx, ecx
jne 0x405e16
mov dword [ebx + 0x100a4], ecx
jmp 0x405e2a
mov eax, dword [edx + 0x18]
cmp eax, ecx
jne 0x405e24
call fcn.004047a0
xor ecx, ecx
mov dword [ebx + 0x100a4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x98], esi
cmp eax, 8
je 0x405e3d
cmp eax, 9
jne 0x405e46
or esi, 2
mov dword [ebx + 0x98], esi
cmp eax, 2
jne 0x405e54
or dword [ebx + 0x98], 4
jmp 0x405e60
cmp eax, 1
jne 0x405e60
or dword [ebx + 0x98], 6
cmp edi, ecx
je 0x405e6b
or dword [ebx + 0x98], 1
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x100a8], ecx
mov dword [ebx + 0x9c], edx
mov dword [ebx + 0x100ac], ecx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], ecx
push eax
cmp dword [ebx + 0x10], ecx
je 0x405ea6
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0xc]
push ecx
call edx
add esp, 8
jmp 0x405ec0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x24]
push eax
call ecx
add esp, 8
cmp eax, 0xffffffff
jne 0x405ebe
or eax, eax
or edx, 0xffffffff
jmp 0x405ec0
xor edx, edx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x84], edx
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x10]
mov dword [ebx + 0x80], eax
lea eax, [edx + ecx + 0x2e]
mov dword [ebx + 0x90], eax
add eax, 0x20
push eax
mov dword [ebx + 0x94], 0x20
call fcn.00543c05
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x40]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], edx
mov dword [eax], 0x2014b50
mov eax, dword [ebx + 0x88]
xor esi, esi
mov byte [eax + 4], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 5], cl
shrd ecx, esi, 8
shr esi, 8
add esp, 4
or ecx, esi
je 0x405f38
or ecx, 0xffffffff
mov word [eax + 4], cx
mov eax, dword [ebx + 0x88]
mov word [eax + 6], 0x14
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x88]
xor esi, esi
mov byte [eax + 8], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 9], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x405f71
or edx, 0xffffffff
mov word [eax + 8], dx
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x88]
xor esi, esi
mov byte [eax + 0xa], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0xb], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x405f9e
or ecx, 0xffffffff
mov word [eax + 0xa], cx
mov ecx, dword [ebx + 0x100a4]
mov eax, dword [ebx + 0x88]
xor esi, esi
mov byte [eax + 0xc], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0xd], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0xe], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0xf], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x405fdf
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebx + 0x88]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], 0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0x14], 0
mov eax, dword [ebx + 0x88]
xor esi, esi
mov ecx, edx
shrd ecx, esi, 8
mov dword [eax + 0x18], 0
mov eax, dword [ebx + 0x88]
shr esi, 8
mov byte [eax + 0x1d], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
mov byte [eax + 0x1c], dl
je 0x406033
or ecx, 0xffffffff
mov word [eax + 0x1c], cx
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0xc]
xor esi, esi
mov byte [eax + 0x1e], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x1f], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x40605e
or ecx, 0xffffffff
mov word [eax + 0x1e], cx
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0x18]
xor esi, esi
mov byte [eax + 0x20], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x21], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x406089
or ecx, 0xffffffff
mov word [eax + 0x20], cx
mov eax, dword [ebx + 0x88]
mov edi, dword [esp + 0x1c]
mov word [eax + 0x22], 0
mov eax, dword [ebx + 0x88]
test edi, edi
jne 0x4060b2
mov word [eax + 0x24], di
mov eax, dword [ebx + 0x88]
mov dword [eax + 0x26], edi
jmp 0x406118
mov ecx, dword [edi + 0x1c]
xor esi, esi
mov byte [eax + 0x24], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x25], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x4060d6
or edx, 0xffffffff
mov word [eax + 0x24], dx
mov ecx, dword [edi + 0x20]
mov eax, dword [ebx + 0x88]
mov edx, dword [esp + 0x10]
xor esi, esi
mov byte [eax + 0x26], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x27], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x28], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x29], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x406118
mov dword [eax + 0x26], 0xffffffff
cmp dword [ebx + 0x84], 0
ja 0x40612a
cmp dword [ebx + 0x80], 0xffffffff
jb 0x406139
mov eax, dword [ebx + 0x88]
mov dword [eax + 0x2a], 0xffffffff
jmp 0x40618a
mov ecx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x88]
xor esi, esi
sub ecx, dword [ebx + 0x100f0]
mov edx, dword [esp + 0x10]
sbb esi, dword [ebx + 0x100f4]
mov byte [eax + 0x2a], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x2b], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x2c], cl
shrd ecx, esi, 8
shr esi, 8
mov byte [eax + 0x2d], cl
shrd ecx, esi, 8
shr esi, 8
or ecx, esi
je 0x40618a
mov dword [eax + 0x2a], 0xffffffff
xor eax, eax
test edx, edx
je 0x4061ba
mov esi, dword [esp + 0x14]
jmp 0x4061a0
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x1c], ebx
mov bl, byte [esi + eax]
mov byte [ecx + eax + 0x2e], bl
mov ebx, dword [esp + 0x1c]
inc eax
cmp eax, edx
jb 0x4061a0
mov edi, dword [esp + 0xc]
xor eax, eax
xor esi, esi
cmp edi, eax
jbe 0x4061e9
jmp 0x4061d0
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebp + 0x14]
mov cl, byte [esi + ecx]
add eax, esi
inc esi
mov byte [eax + edx + 0x2e], cl
cmp esi, edi
jb 0x4061d0
xor eax, eax
xor esi, esi
cmp dword [esp + 0x18], eax
jbe 0x40620e
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebp + 0x1c]
mov cl, byte [esi + ecx]
add eax, edi
add eax, esi
inc esi
mov byte [eax + edx + 0x2e], cl
cmp esi, dword [esp + 0x18]
jb 0x4061f1
xor eax, eax
cmp dword [ebx + 0x88], eax
jne 0x40622d
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x48]
mov dword [ebx + 0x100c0], eax
mov dword [ebx + 0x100c4], eax
mov dword [ebx + 0x100c8], eax
mov dword [ebx + 0x100cc], eax
mov dword [ebx + 0x100b8], eax
mov dword [ebx + 0x100bc], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
mov esi, ebx
mov dword [ebx + 0x100b0], edx
call fcn.00405960
xor esi, esi
add esp, 8
lea edx, [ebx + 0xa4]
mov dword [esp + 0xc], eax
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x50], 0x10000
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x6c], esi
cmp eax, esi
jne 0x4062e8
mov edi, 8
cmp dword [ebx + 0x9c], edi
jne 0x4062e8
cmp dword [ebx + 0xa0], esi
jne 0x4062e8
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], esi
cmp eax, esi
jle 0x4062be
neg eax
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push 0x38
push ecx
push edx
push eax
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebx + 0x40]
mov eax, 0x5ada64
call fcn.0040a350
add esp, 0x14
mov dword [esp + 0xc], eax
cmp eax, esi
jne 0x4062e8
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x100e0], esi
cmp dword [esp + 0xc], esi
jne 0x40636e
cmp dword [esp + 0x20], esi
je 0x406367
mov ecx, dword [ebp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov edi, 0x5ab9c0
lea esi, [ebx + 0x100d0]
push edx
mov dword [ebx + 0x100ac], 1
mov dword [ebx + 0x100dc], edi
call fcn.00404180
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x1c]
mov esi, eax
push esi
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 8]
push ecx
push edx
mov dword [ebx + 0x100e0], esi
call eax
add esp, 0x18
cmp eax, esi
je 0x406367
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x38], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret