Function at 0x405640
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x67e2d4]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x20], eax
mov esi, ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
push edi
mov edi, edx
test esi, esi
jne 0x405692
mov eax, 0xffffff9a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40569e
cmp eax, 8
jne 0x40567b
cmp dword [esi + 0x38], 1
jne 0x4056b9
sub esp, 8
mov ecx, esi
call fcn.004060a0
add esp, 8
test eax, eax
jne 0x405c9c
mov eax, dword [ebp + 0x1c]
test edi, edi
mov edx, 0x64829c
cmovne edx, edi
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x4056d6
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x4056ef
mov ecx, eax
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4056e0
sub ecx, edi
mov dword [esp + 0x14], ecx
mov edi, ecx
mov ebx, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4056f4
sub ebx, ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x40570d
mov dword [esi + 0x100a4], ecx
jmp 0x40571f
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x405719
call fcn.00404040
mov dword [esi + 0x100a4], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x44]
mov dword [esi + 0x98], eax
cmp ecx, 8
je 0x405735
cmp ecx, 9
jne 0x40573e
or eax, 2
mov dword [esi + 0x98], eax
cmp ecx, 2
jne 0x40574c
or dword [esi + 0x98], 4
jmp 0x405758
cmp ecx, 1
jne 0x405758
or dword [esi + 0x98], 6
cmp dword [esp + 0x20], 0
je 0x405766
or dword [esi + 0x98], 1
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x9c], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x100a8], 0
mov dword [esi + 0x100ac], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x1c]
je 0x4057b1
mov eax, dword [esi + 0xc]
call eax
add esp, 8
jmp 0x4057c7
mov eax, dword [esi + 0x24]
call eax
add esp, 8
cmp eax, 0xffffffff
jne 0x4057c5
or eax, eax
or edx, 0xffffffff
jmp 0x4057c7
xor edx, edx
mov dword [esi + 0x80], eax
add edi, 0x2e
mov eax, dword [esp + 0x10]
add eax, ebx
mov dword [esi + 0x84], edx
add eax, edi
mov dword [esi + 0x94], 0x20
mov dword [esi + 0x90], eax
add eax, 0x20
push eax
call fcn.0059b115
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [ebp + 0x40]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], edx
mov dword [eax], 0x2014b50
xor eax, eax
mov edi, dword [esi + 0x88]
mov byte [edi + 4], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 5], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
mov eax, 0xffffffff
je 0x40583c
mov word [edi + 4], ax
mov eax, dword [esi + 0x88]
mov word [eax + 6], 0x14
xor eax, eax
mov edi, dword [esi + 0x88]
mov ecx, dword [esi + 0x98]
mov byte [edi + 8], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 9], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
je 0x405875
or eax, 0xffffffff
mov word [edi + 8], ax
mov edi, dword [esi + 0x88]
xor eax, eax
mov ecx, dword [esi + 0x9c]
mov byte [edi + 0xa], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xb], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
je 0x4058a2
or eax, 0xffffffff
mov word [edi + 0xa], ax
mov edi, dword [esi + 0x88]
xor eax, eax
mov ecx, dword [esi + 0x100a4]
mov byte [edi + 0xc], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xd], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xe], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0xf], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
je 0x4058e3
mov dword [edi + 0xc], 0xffffffff
mov eax, dword [esi + 0x88]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0x88]
mov dword [eax + 0x14], 0
mov eax, dword [esi + 0x88]
mov dword [eax + 0x18], 0
mov eax, ebx
mov edi, dword [esi + 0x88]
shrd eax, ecx, 8
shr ecx, 8
mov byte [edi + 0x1d], al
shrd eax, ecx, 8
mov byte [edi + 0x1c], bl
shr ecx, 8
or eax, ecx
je 0x405933
or eax, 0xffffffff
mov word [edi + 0x1c], ax
mov edi, dword [esi + 0x88]
xor ecx, ecx
mov eax, edx
shrd eax, ecx, 8
shr ecx, 8
mov byte [edi + 0x1f], al
shrd eax, ecx, 8
mov byte [edi + 0x1e], dl
shr ecx, 8
or eax, ecx
je 0x40595c
or eax, 0xffffffff
mov word [edi + 0x1e], ax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov edi, dword [esi + 0x88]
mov eax, edx
shrd eax, ecx, 8
shr ecx, 8
mov byte [edi + 0x21], al
shrd eax, ecx, 8
mov byte [edi + 0x20], dl
shr ecx, 8
or eax, ecx
je 0x405989
or eax, 0xffffffff
mov word [edi + 0x20], ax
mov eax, dword [esi + 0x88]
mov word [eax + 0x22], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4059c0
mov eax, dword [esi + 0x88]
mov word [eax + 0x24], 0
mov eax, dword [esi + 0x88]
mov dword [eax + 0x26], 0
jmp 0x405a2c
mov ecx, dword [eax + 0x1c]
xor eax, eax
mov edi, dword [esi + 0x88]
mov byte [edi + 0x24], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x25], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
je 0x4059ea
or eax, 0xffffffff
mov word [edi + 0x24], ax
mov edi, dword [esi + 0x88]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x20]
mov byte [edi + 0x26], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x27], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x28], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x29], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
je 0x405a2c
mov dword [edi + 0x26], 0xffffffff
cmp dword [esi + 0x84], 0
ja 0x405a8d
cmp dword [esi + 0x80], 0xffffffff
jae 0x405a8d
mov ecx, dword [esi + 0x80]
xor eax, eax
sub ecx, dword [esi + 0x100f0]
mov edi, dword [esi + 0x88]
sbb eax, dword [esi + 0x100f4]
mov byte [edi + 0x2a], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x2b], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x2c], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [edi + 0x2d], cl
shrd ecx, eax, 8
shr eax, 8
or ecx, eax
je 0x405a9a
mov dword [edi + 0x2a], 0xffffffff
jmp 0x405a9a
mov eax, dword [esi + 0x88]
mov dword [eax + 0x2a], 0xffffffff
xor edi, edi
test ebx, ebx
je 0x405ac6
mov edx, dword [esp + 0x1c]
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esi + 0x88]
mov al, byte [edx + edi]
mov byte [ecx + edi + 0x2e], al
inc edi
cmp edi, ebx
jb 0x405ab0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
je 0x405af1
mov edx, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
add ecx, edi
mov al, byte [edi + eax]
inc edi
mov byte [ecx + ebx + 0x2e], al
cmp edi, edx
jb 0x405ad2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor edi, edi
test edx, edx
je 0x405b1d
nop word [eax + eax]
mov ecx, dword [esi + 0x88]
add ecx, eax
mov eax, dword [ebp + 0x1c]
add ecx, edi
mov al, byte [edi + eax]
inc edi
mov byte [ecx + ebx + 0x2e], al
mov eax, dword [esp + 0x10]
cmp edi, edx
jb 0x405b00
cmp dword [esi + 0x88], 0
jne 0x405b3d
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
push dword [esp + 0x24]
mov eax, dword [ebp + 0x48]
mov ecx, esi
push dword [ebp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x100b0], eax
mov dword [esi + 0x100c0], 0
mov dword [esi + 0x100c4], 0
mov dword [esi + 0x100c8], 0
mov dword [esi + 0x100cc], 0
mov dword [esi + 0x100b8], 0
mov dword [esi + 0x100bc], 0
call fcn.00405270
mov ebx, eax
mov dword [esi + 0x44], 0
add esp, 8
mov dword [esi + 0x50], 0x10000
mov dword [esi + 0x48], 0
lea ecx, [esi + 0xa4]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], 0
mov dword [esi + 0x6c], 0
test ebx, ebx
jne 0x405c17
cmp dword [esi + 0x9c], 8
jne 0x405c17
cmp dword [esi + 0xa0], eax
jne 0x405c17
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x2c]
push 0x38
push 0x6482a0
push dword [ebp + 0x34]
cdq
push dword [ebp + 0x30]
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 0x24]
neg eax
push eax
push ecx
lea ecx, [esi + 0x40]
call fcn.00407e90
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x405c17
mov dword [esi + 0x78], 8
mov dword [esi + 0x100e0], 0
test ebx, ebx
jne 0x405c9a
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x405c93
push dword [ebp + 0x3c]
lea eax, [esi + 0x100d0]
mov dword [esi + 0x100ac], 1
push 0x648300
push eax
lea edx, [esp + 0x34]
mov dword [esi + 0x100dc], 0x648300
call fcn.00403850
mov ecx, dword [esi + 8]
add esp, 0xc
mov edi, eax
lea eax, [esp + 0x28]
mov dword [esi + 0x100e0], edi
push edi
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call ecx
add esp, 0x10
cmp eax, edi
je 0x405c93
or ebx, 0xffffffff
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], 1
mov eax, ebx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret