Function at 0x405060
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
or eax, 0xffffffff
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
push esi
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], ebx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
lea ecx, [eax + edx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x18]
and ecx, 4
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
je 0x4050ad
or esi, 0xffffffff
jmp 0x4050b4
sub eax, ecx
lea esi, [edx - 1]
add esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x34], esi
test esi, eax
jne 0x406481
cmp edx, ecx
jb 0x406481
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x24]
mov esi, dword [edi + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [edi]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
cmp eax, 0x35
ja case.default.0x4050fd
movzx eax, byte [eax + 0x406524]
jmp dword [eax*4 + 0x4064a0]
mov eax, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], edx
mov dword [edi + 0x1c], 1
mov dword [edi + 0x10], 1
test al, 1
je 0x405699
jmp 0x40514c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, ebx
cmp edx, ecx
jb 0x405163
mov ecx, 1
test al, 2
mov dword [edi], ecx
jmp 0x40625b
movzx eax, byte [edx]
lea ebx, [edx + 1]
mov dword [edi + 8], eax
jmp 0x405171
mov ecx, dword [ebp - 0x20]
cmp ebx, ecx
jb 0x405180
mov dword [edi], 2
jmp 0x406252
movzx ecx, byte [ebx]
xor edx, edx
mov eax, dword [edi + 8]
inc ebx
shl eax, 8
add eax, ecx
mov dword [ebp - 0x24], 0x1f
div dword [ebp - 0x24]
mov dword [edi + 0xc], ecx
test edx, edx
mov dword [ebp - 0x18], ebx
mov edx, dword [edi + 8]
jne 0x4051b6
test cl, 0x20
jne 0x4051b6
mov eax, edx
and al, 0xf
cmp al, 8
jne 0x4051b6
xor ecx, ecx
jmp 0x4051bb
mov ecx, 1
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], ecx
jne 0x4051f1
shr edx, 4
mov eax, 1
lea ecx, [edx + 8]
shl eax, cl
cmp eax, 0x8000
ja 0x4051e4
mov ecx, dword [ebp - 0x34]
inc ecx
cmp ecx, eax
jb 0x4051e4
xor eax, eax
jmp 0x4051e9
mov eax, 1
mov ecx, dword [ebp - 8]
or ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne case.0x4050fd.36
mov edx, dword [ebp - 4]
jmp 0x405699
mov dword [ebp - 0xc], 0xffffffff
mov dword [edi], 0x24
jmp case.0x4050fd.4
cmp ebx, dword [ebp - 0x20]
jae 0x406177
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 0xf
jb 0x405f91
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0xf00]
mov dword [ebp - 0x1c], eax
test eax, eax
js 0x405256
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x405281
mov ebx, dword [ebp - 0x1c]
mov ecx, 0xa
mov edi, edi
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x1700]
test ebx, ebx
js 0x405260
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
shr edx, cl
sub esi, ecx
mov ecx, dword [eax*4 + 0x40e090]
mov eax, dword [eax*4 + 0x40e110]
mov dword [ebp - 4], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x4052de
cmp esi, ecx
jae 0x4052c7
cmp ebx, dword [ebp - 0x20]
jae 0x40616c
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [ebp - 0x38]
or edx, eax
add esi, 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edx
cmp esi, ecx
jb case.0x4050fd.27
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
cmp eax, ecx
jbe 0x4052f5
test byte [ebp + 0x18], 4
jne case.0x4050fd.37
mov edi, dword [ebp - 0x14]
sub ecx, eax
and ecx, dword [ebp - 0x34]
add ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x10], ecx
mov eax, ecx
mov dword [ebp - 0xc], ecx
cmova eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, ecx
cmp eax, dword [ebp - 0x40]
jbe 0x40534f
mov eax, ecx
dec ecx
mov dword [ebp - 8], ecx
test eax, eax
je 0x405418
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x10], eax
jae 0x40602f
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x28]
and eax, dword [ebp - 0x34]
mov edx, dword [ebp + 0xc]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
inc dword [ebp - 0x48]
mov byte [edx], al
mov edx, dword [ebp - 4]
jmp 0x405316
cmp ecx, 9
jb 0x4053b6
cmp ecx, dword [ebp - 0x28]
ja 0x4053b6
mov edi, dword [ebp - 0xc]
mov eax, ecx
mov ecx, dword [ebp - 0x10]
and eax, 0xfffffff8
add eax, edi
mov dword [ebp - 0x24], eax
mov edx, eax
jmp 0x405370
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
add edi, 8
mov dword [ecx + 4], eax
add ecx, 8
cmp edi, edx
jb 0x405370
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
and ecx, 7
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
cmp ecx, 3
jae 0x4053b6
test ecx, ecx
je 0x405418
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [edi], al
mov edi, dword [ebp - 0x14]
cmp ecx, 1
jbe 0x405415
jmp 0x405406
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
lea esp, [esp]
movzx eax, byte [edx]
sub ecx, 3
mov byte [edi], al
movzx eax, byte [edx + 1]
mov byte [edi + 1], al
movzx eax, byte [edx + 2]
add edx, 3
mov byte [edi + 2], al
add edi, 3
cmp ecx, 2
jg 0x4053c0
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], ecx
test ecx, ecx
jle 0x405418
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [edi], al
mov edi, dword [ebp - 0x14]
cmp ecx, 1
jle 0x405415
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + 1]
mov byte [edx + 1], al
mov edx, dword [ebp - 4]
add dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x20]
sub ecx, ebx
cmp ecx, 4
jl 0x40554e
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
cmp eax, 2
jl 0x40554e
cmp esi, 0xf
jae 0x40545c
movzx edx, byte [ebx + 1]
mov ecx, esi
movzx eax, byte [ebx]
add ebx, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0x18], ebx
shl edx, cl
or dword [ebp - 4], edx
add esi, 0x10
mov edx, dword [ebp - 4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 8], eax
test eax, eax
js 0x405479
mov ecx, eax
sar ecx, 9
jmp 0x40549f
mov ebx, dword [ebp - 8]
mov ecx, 0xa
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x960]
test ebx, ebx
js 0x405481
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x18]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
test ecx, 0x100
jne 0x40567a
cmp esi, 0xf
jae 0x4054dc
movzx edx, byte [ebx + 1]
mov ecx, esi
movzx eax, byte [ebx]
add ebx, 2
mov edi, dword [ebp - 0x14]
shl edx, 8
or edx, eax
mov dword [ebp - 0x18], ebx
shl edx, cl
or dword [ebp - 4], edx
add esi, 0x10
mov edx, dword [ebp - 4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 0x1c], eax
test eax, eax
js 0x4054f9
mov ecx, eax
sar ecx, 9
jmp 0x40551f
mov ebx, dword [ebp - 0x1c]
mov ecx, 0xa
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x960]
test ebx, ebx
js 0x405501
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
sub esi, ecx
shr edx, cl
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov byte [ecx], al
mov ecx, dword [ebp - 0x1c]
test ecx, 0x100
jne 0x405677
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x405418
cmp esi, 0xf
jae 0x405603
cmp ecx, 2
jge 0x4055df
mov eax, edx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0x160]
test edi, edi
js 0x405584
sar edi, 9
test edi, edi
je 0x4055b9
cmp esi, edi
jae 0x405600
jmp 0x4055b9
cmp esi, 0xa
jbe 0x4055b9
mov ecx, 0xa
mov dword [ebp - 0x1c], ecx
mov eax, edx
not edi
shr eax, cl
mov ecx, dword [ebp - 0x14]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x960]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
test edi, edi
jns 0x405600
lea eax, [ecx + 1]
cmp esi, eax
jae 0x405591
mov edi, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x20]
jae 0x406041
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 0xf
jb 0x405560
jmp 0x405603
movzx edx, byte [ebx + 1]
lea ecx, [esi + 8]
movzx eax, byte [ebx]
add ebx, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], edx
add esi, 0x10
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 8], eax
test eax, eax
js 0x405628
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 8], eax
jmp 0x40564e
mov ebx, dword [ebp - 8]
mov ecx, 0xa
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x960]
test ebx, ebx
js 0x405630
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x18]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp ecx, 0x100
jae 0x40567a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
jae 0x40604c
mov byte [eax], cl
inc eax
mov dword [ebp - 0x10], eax
jmp 0x405418
inc dword [ebp - 0x10]
and ecx, 0x1ff
mov dword [ebp - 8], ecx
cmp ecx, 0x100
jne 0x405f26
test byte [edi + 0x14], 1
jne 0x4060e1
cmp esi, 3
jae 0x4056bf
cmp ebx, dword [ebp - 0x20]
jae 0x40605e
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 3
jb case.0x4050fd.3
mov eax, edx
sub esi, 3
and eax, 7
shr edx, 3
mov dword [edi + 0x14], eax
shr eax, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x18], eax
jne 0x40589b
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40570c
cmp ebx, dword [ebp - 0x20]
jae 0x406069
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc ebx
mov eax, esi
mov dword [ebp - 0x18], ebx
and eax, 7
mov dword [ebp - 4], edx
cmp esi, eax
jb case.0x4050fd.5
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp ecx, 4
jae 0x40577b
test esi, esi
je case.0x4050fd.7
cmp esi, 8
jae 0x40574f
cmp ebx, dword [ebp - 0x20]
jae 0x406074
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 8
jb case.0x4050fd.6
mov ecx, dword [ebp - 8]
mov byte [ecx + edi + 0x2920], dl
sub esi, 8
shr edx, 8
inc ecx
mov dword [ebp - 4], edx
jmp 0x40571a
cmp ebx, dword [ebp - 0x20]
jae 0x40607f
mov al, byte [ebx]
inc ebx
mov byte [ecx + edi + 0x2920], al
inc ecx
mov dword [ebp - 0x18], ebx
jmp 0x40571a
movzx ecx, byte [edi + 0x2921]
movzx eax, byte [edi + 0x2920]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x2922]
mov dword [ebp - 8], ecx
movzx ecx, byte [edi + 0x2923]
shl ecx, 8
or ecx, eax
xor ecx, 0xffff
cmp dword [ebp - 8], ecx
jne case.0x4050fd.39
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40568f
test esi, esi
je 0x40581c
cmp esi, 8
jae 0x4057e8
cmp ebx, dword [ebp - 0x20]
jae 0x40608a
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 8
jb case.0x4050fd.51
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], edx
jmp 0x4057fc
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x40]
cmp dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
jae 0x406095
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
dec ecx
mov dword [ebp - 8], ecx
jmp 0x4057b6
mov eax, dword [ebp - 0x10]
test ecx, ecx
jne 0x405831
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
jmp 0x40568f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
cmp eax, edx
jb 0x405850
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
mov dword [edi], 9
jmp case.0x4050fd.4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
cmp ebx, eax
jae 0x4060a7
sub edx, dword [ebp - 0x10]
mov edi, eax
sub edi, ebx
cmp edx, edi
mov eax, edi
cmovb eax, edx
cmp eax, ecx
jae 0x405874
cmp edx, edi
cmovb edi, edx
jmp 0x405876
mov edi, ecx
push edi
push ebx
push dword [ebp - 0x10]
call dword [0x410a7c]
mov eax, dword [ebp - 0x10]
add ebx, edi
mov ecx, dword [ebp - 8]
add eax, edi
add esp, 0xc
mov dword [ebp - 0x18], ebx
sub ecx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
jmp 0x40581f
cmp eax, 3
je case.0x4050fd.10
cmp eax, 1
jne 0x405976
mov eax, dword [ebp - 0x14]
push 0x20
push 5
mov dword [eax + 0x2c], 0x120
mov dword [eax + 0x30], 0x20
add eax, 0xde0
push eax
call dword [0x410c48]
movdqa xmm0, xmmword [0x40eae0]
add esp, 0xc
movdqu xmmword [edi + 0x40], xmm0
movdqu xmmword [edi + 0x50], xmm0
movdqu xmmword [edi + 0x60], xmm0
movdqu xmmword [edi + 0x70], xmm0
movdqu xmmword [edi + 0x80], xmm0
movdqu xmmword [edi + 0x90], xmm0
movdqu xmmword [edi + 0xa0], xmm0
movdqu xmmword [edi + 0xb0], xmm0
movdqu xmmword [edi + 0xc0], xmm0
add edi, 0xd0
movdqa xmm0, xmmword [0x40eaf0]
movdqu xmmword [edi], xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi + 0x20], xmm0
movdqu xmmword [edi + 0x30], xmm0
movdqu xmmword [edi + 0x40], xmm0
movdqu xmmword [edi + 0x50], xmm0
movdqu xmmword [edi + 0x60], xmm0
movdqa xmm0, xmmword [str._a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_t]
movdqu xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
mov dword [edi + 0x88], 0x8080808
mov dword [edi + 0x8c], 0x8080808
mov edi, dword [ebp - 0x14]
jmp 0x405a79
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp ecx, 3
jae 0x405a00
movsx eax, byte [ecx + 0x40e004]
mov dword [ebp - 0x1c], eax
cmp esi, eax
jae 0x4059bf
cmp ebx, dword [ebp - 0x20]
jae 0x4060b5
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [ebp - 8]
or edx, eax
add esi, 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edx
movsx eax, byte [ecx + 0x40e004]
mov dword [ebp - 0x1c], eax
cmp esi, eax
jb case.0x4050fd.11
lea edx, [edi + ecx*4]
mov eax, 1
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
shl eax, cl
dec eax
and eax, edi
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x40e004]
shr edi, cl
sub esi, ecx
mov ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx*4 + 0x40ea38]
add dword [edx + 0x2c], eax
mov edx, edi
mov edi, dword [ebp - 0x14]
inc ecx
jmp 0x405978
push 0x120
lea eax, [edi + 0x1b80]
push 0
push eax
call dword [0x410c48]
mov edx, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [edi + 0x34]
jae 0x405a72
cmp esi, 3
jae 0x405a4a
cmp ebx, dword [ebp - 0x20]
jae 0x4060c0
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 3
jb case.0x4050fd.14
mov eax, dword [ebp - 8]
mov ecx, edx
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], esi
movzx eax, byte [eax + 0x40ea24]
mov byte [eax + edi + 0x1b80], cl
mov ecx, dword [ebp - 8]
inc ecx
jmp 0x405a1c
mov dword [edi + 0x34], 0x13
mov eax, dword [edi + 0x18]
test eax, eax
js 0x405f1e
imul eax, eax, 0xda0
push 0x40
push 0
add eax, 0x40
add eax, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xd0]
push eax
call dword [0x410c48]
mov eax, dword [ebp - 0xc]
push 0x800
add eax, 0x120
push 0
push eax
call dword [0x410c48]
mov eax, dword [ebp - 0xc]
push 0x480
add eax, 0x920
push 0
push eax
call dword [0x410c48]
mov edx, dword [edi + 0x18]
xor ecx, ecx
add edx, 0xb
add esp, 0x24
lea edx, [edi + edx*4]
mov dword [ebp - 0x44], edx
cmp dword [edx], ecx
jbe 0x405b00
mov edi, dword [ebp - 0xc]
jmp 0x405af0
movzx eax, byte [ecx + edi]
inc ecx
inc dword [ebp + eax*4 - 0xd0]
cmp ecx, dword [edx]
jb 0x405af0
xor edi, edi
mov edx, 8
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
jmp 0x405b20
mov eax, dword [ebp + edx - 0xd4]
add ecx, eax
add ecx, ecx
add edi, eax
mov eax, dword [ebp + edx - 0xd0]
add dword [ebp - 0x30], eax
mov dword [ebp + edx - 0x90], ecx
add ecx, eax
mov eax, dword [ebp + edx - 0xcc]
add ecx, ecx
add dword [ebp - 0x2c], eax
mov dword [ebp + edx - 0x8c], ecx
add ecx, eax
add ecx, ecx
mov dword [ebp + edx - 0x88], ecx
add edx, 0xc
cmp edx, 0x40
jbe 0x405b20
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
add ecx, eax
cmp dword [ebp - 0x4c], 0x10000
je 0x405b8c
cmp ecx, 1
ja case.0x4050fd.35
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x4c], 0
cmp dword [eax], 0
jbe 0x405cf7
mov esi, dword [ebp - 0x4c]
lea esp, [esp]
mov eax, dword [ebp - 0xc]
xor edx, edx
movzx ecx, byte [esi + eax]
mov dword [ebp - 0x44], ecx
test ecx, ecx
je 0x405ce3
mov eax, dword [ebp + ecx*4 - 0x90]
mov dword [ebp - 0x2c], eax
inc eax
mov dword [ebp + ecx*4 - 0x90], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x405bfb
lea ecx, [ecx]
mov ecx, dword [ebp - 0x2c]
add edx, edx
mov eax, dword [ebp - 0x24]
and ecx, 1
shr dword [ebp - 0x2c], 1
dec eax
or edx, ecx
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x405be0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xa
ja 0x405c4d
mov eax, ecx
shl eax, 9
or eax, esi
movzx eax, ax
mov dword [ebp - 0x44], eax
cmp edx, 0x400
jae 0x405ce3
mov edi, dword [ebp - 0x44]
mov eax, 1
shl eax, cl
lea ecx, [eax + eax]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + edx*2]
add ecx, 0x120
mov word [ecx], di
add edx, eax
add ecx, dword [ebp - 0x4c]
cmp edx, 0x400
jb 0x405c35
mov edi, dword [ebp - 0x14]
jmp 0x405ce3
mov ebx, dword [ebp - 0xc]
mov eax, edx
and eax, 0x3ff
add ebx, 0x120
lea eax, [ebx + eax*2]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
movsx eax, word [eax]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x405c81
mov eax, dword [ebp - 0x44]
mov word [eax], bx
mov eax, ebx
sub ebx, 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
shr edx, 9
cmp ecx, 0xb
jbe 0x405cd1
add ecx, 0xfffffff5
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x2c]
shr edx, 1
mov eax, edx
and eax, 1
sub ecx, eax
mov eax, 0x48f
sub eax, ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + eax*2]
test cx, cx
jne 0x405cc4
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], bx
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub eax, 2
mov dword [ebp - 0x30], eax
mov ebx, eax
jmp 0x405cc7
movsx ecx, cx
dec dword [ebp - 0x24]
jne 0x405c92
mov dword [ebp - 0x2c], ecx
mov eax, ecx
shr edx, 1
and edx, 1
sub edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax + edx*2 + 0x91e], si
mov eax, dword [edi + 0x18]
inc esi
cmp esi, dword [edi + eax*4 + 0x2c]
jb 0x405bb0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
cmp dword [edi + 0x18], 2
jne 0x405f16
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x2c]
mov dword [ebp - 8], ecx
cmp ecx, eax
jae 0x405ed6
cmp esi, 0xf
jae 0x405dd2
mov eax, dword [ebp - 0x20]
sub eax, ebx
cmp eax, 2
jge 0x405dae
mov eax, edx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0x1ca0]
test edi, edi
js 0x405d52
sar edi, 9
test edi, edi
je 0x405d88
cmp esi, edi
jae 0x405dcf
jmp 0x405d88
cmp esi, 0xa
jbe 0x405d88
mov ecx, 0xa
mov dword [ebp - 0x24], ecx
nop
mov eax, edx
not edi
shr eax, cl
mov ecx, dword [ebp - 0x14]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x24a0]
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
test edi, edi
jns 0x405dcf
lea eax, [ecx + 1]
cmp esi, eax
jae 0x405d60
mov edi, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x20]
jae 0x4060cb
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
or edx, eax
mov dword [ebp - 0x18], ebx
add esi, 8
mov dword [ebp - 4], edx
cmp esi, 0xf
jb 0x405d2e
jmp 0x405dd2
movzx edx, byte [ebx + 1]
lea ecx, [esi + 8]
movzx eax, byte [ebx]
add ebx, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], edx
add esi, 0x10
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x1ca0]
mov dword [ebp - 0x28], eax
test eax, eax
js 0x405df7
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0x28], eax
jmp 0x405e1d
mov ecx, 0xa
lea esp, [esp]
not dword [ebp - 0x28]
mov eax, edx
shr eax, cl
inc ecx
and eax, 1
add eax, dword [ebp - 0x28]
movsx eax, word [edi + eax*2 + 0x24a0]
mov dword [ebp - 0x28], eax
test eax, eax
js 0x405e00
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], esi
cmp eax, 0x10
jae 0x405e3c
mov ecx, dword [ebp - 8]
mov byte [ecx + edi + 0x2924], al
inc ecx
jmp 0x405d06
jne 0x405e4c
mov eax, dword [ebp - 8]
test eax, eax
je case.0x4050fd.17
mov eax, dword [ebp - 0x28]
movsx ecx, byte [eax + 0x40dff0]
mov dword [ebp - 0x38], ecx
cmp esi, ecx
jae 0x405e80
cmp ebx, dword [ebp - 0x20]
jae 0x4060d6
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [ebp - 0x38]
or edx, eax
add esi, 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edx
cmp esi, ecx
jb case.0x4050fd.18
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax + 0x40dff8]
mov edi, 1
shl edi, cl
sub esi, ecx
dec edi
mov dword [ebp - 0x1c], esi
and edi, edx
shr edx, cl
mov ecx, dword [ebp - 0x14]
add edi, eax
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 8]
mov dword [ebp - 4], edx
jne 0x405eb3
movzx edx, byte [eax + ecx + 0x2923]
jmp 0x405eb5
xor edx, edx
push edi
add ecx, 0x2924
push edx
add eax, ecx
push eax
call dword [0x410c48]
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, edi
mov edi, dword [ebp - 0x14]
jmp 0x405d03
mov eax, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
add eax, edx
cmp eax, ecx
jne case.0x4050fd.21
push edx
lea eax, [edi + 0x2924]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x410a7c]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x30]
add eax, 0x2924
add eax, edi
push eax
lea eax, [edi + 0xde0]
push eax
call dword [0x410a7c]
add esp, 0x18
dec dword [edi + 0x18]
jmp 0x405a79
mov edx, dword [ebp - 4]
jmp 0x405418
lea eax, [ecx*4 - 0x404]
mov ecx, dword [eax + 0x40e010]
mov eax, dword [eax + 0x40ea48]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x405f7e
cmp esi, ecx
jae 0x405f6a
cmp ebx, dword [ebp - 0x20]
jae 0x406161
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
inc ebx
mov ecx, dword [ebp - 0x38]
or edx, eax
add esi, 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edx
cmp esi, ecx
jb case.0x4050fd.25
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp esi, 0xf
jae 0x405234
mov eax, dword [ebp - 0x20]
sub eax, ebx
cmp eax, 2
jge 0x406006
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0xf00]
mov dword [ebp - 0x24], eax
test eax, eax
js 0x405fbf
sar eax, 9
test eax, eax
je case.0x4050fd.26
cmp esi, eax
jae 0x405234
jmp case.0x4050fd.26
cmp esi, 0xa
jbe case.0x4050fd.26
mov ecx, 0xa
mov dword [ebp - 0x1c], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x24]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x1700]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
test ecx, ecx
jns 0x405234
inc eax
cmp esi, eax
jb case.0x4050fd.26
mov ecx, dword [ebp - 0x1c]
jmp 0x405fd0
movzx edx, byte [ebx + 1]
lea ecx, [esi + 8]
movzx eax, byte [ebx]
add ebx, 2
mov edi, dword [ebp - 0x14]
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], edx
add esi, 0x10
mov edx, dword [ebp - 4]
jmp 0x405234
mov dword [ebp - 0xc], 2
mov dword [edi], 0x35
jmp case.0x4050fd.4
mov dword [edi], 0x17
jmp 0x406252
mov dword [ebp - 0xc], 2
mov dword [edi], 0x18
jmp case.0x4050fd.4
mov dword [edi], 3
jmp 0x406252
mov dword [edi], 5
jmp 0x406252
mov dword [edi], 6
jmp 0x406252
mov dword [edi], 7
jmp 0x406252
mov dword [edi], 0x33
jmp 0x406252
mov dword [ebp - 0xc], 2
mov dword [edi], 0x34
jmp case.0x4050fd.4
mov edi, dword [ebp - 0x14]
mov dword [edi], 0x26
jmp 0x406252
mov dword [edi], 0xb
jmp 0x406252
mov dword [edi], 0xe
jmp 0x406252
mov dword [edi], 0x10
jmp 0x406252
mov dword [edi], 0x12
jmp 0x406252
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x406112
lea ebx, [ebx]
cmp ebx, dword [ebp - 0x20]
jae 0x4061e2
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc ebx
mov eax, esi
mov dword [ebp - 4], edx
and eax, 7
cmp esi, eax
jb case.0x4050fd.32
mov eax, dword [ebp - 0x3c]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
cmp ebx, eax
jbe 0x406132
cmp esi, 8
jb 0x406132
dec ebx
sub esi, 8
cmp ebx, eax
ja 0x406125
mov edi, dword [ebp - 0x14]
xor edx, edx
mov eax, esi
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
dec edx
and dword [ebp - 4], edx
test byte [ebp + 0x18], 1
je case.0x4050fd.34
xor ecx, ecx
jmp 0x406223
mov dword [edi], 0x19
jmp 0x406252
mov dword [edi], 0x1b
jmp 0x406252
mov dword [edi], 0x1a
jmp 0x406252
mov dword [ebp - 0xc], 0xffffffff
mov dword [edi], 0x27
jmp case.0x4050fd.4
mov dword [ebp - 0xc], 0xffffffff
mov dword [edi], 0xa
jmp case.0x4050fd.4
mov dword [ebp - 0xc], 0xffffffff
mov dword [edi], 0x23
jmp case.0x4050fd.4
or eax, 0xffffffff
mov dword [edi], 0x11
jmp 0x40627a
or eax, 0xffffffff
mov dword [edi], 0x15
jmp 0x40627a
or eax, 0xffffffff
mov dword [edi], 0x25
jmp 0x40627a
mov dword [edi], 0x20
jmp 0x406252
cmp ebx, dword [ebp - 0x20]
jae 0x40624c
movzx eax, byte [ebx]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc ebx
mov dword [ebp - 4], edx
cmp esi, 8
jb case.0x4050fd.41
mov ecx, dword [ebp - 8]
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10]
shl eax, 8
or eax, dword [ebp - 0x24]
inc ecx
mov dword [edi + 0x10], eax
mov dword [ebp - 8], ecx
cmp ecx, 4
jae case.0x4050fd.34
test esi, esi
jne 0x40623a
cmp ebx, dword [ebp - 0x20]
jae 0x406244
movzx eax, byte [ebx]
inc ebx
jmp 0x406213
mov edx, dword [ebp - 4]
cmp esi, 8
jae 0x406207
jmp case.0x4050fd.41
mov dword [edi], 0x2a
jmp 0x406252
mov dword [edi], 0x29
test byte [ebp + 0x18], 2
mov ecx, 1
mov eax, 0xfffffffc
cmovne eax, ecx
mov dword [ebp - 0xc], eax
cmp eax, 1
je 0x406291
cmp eax, 0xfffffffc
je 0x406291
jmp case.0x4050fd.4
xor eax, eax
mov dword [edi], 0x22
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
cmp ebx, eax
jbe 0x406291
cmp esi, 8
jb 0x406291
dec ebx
sub esi, 8
cmp ebx, eax
ja 0x406284
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [edi + 4], esi
xor ecx, ecx
bts ecx, esi
cmp esi, 0x20
cmovae eax, ecx
xor ecx, eax
cmp esi, 0x40
cmovae eax, ecx
sub ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
dec ecx
mov dword [edi + 0x20], eax
and ecx, edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp + 0x10]
test byte [ebp + 0x18], 9
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x38], ecx
mov dword [ebp - 0x10], edx
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0xc]
mov dword [eax], edx
je 0x406478
test ebx, ebx
js 0x406478
mov esi, dword [edi + 0x1c]
mov eax, 0x5e6ea9af
mul edx
movzx ecx, si
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, dword [ebp - 0x10]
shr esi, 0x10
mov dword [ebp - 0x3c], esi
sub edx, eax
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x34], edx
je 0x40645b
mov ebx, edx
xor edx, edx
mov dword [ebp + 0x14], edx
cmp ebx, 7
jbe 0x4063af
mov eax, dword [ebp + 0x10]
mov edi, 7
sub edi, eax
lea ecx, [ecx]
movzx eax, byte [eax]
add edx, 8
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 1]
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 2]
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 3]
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 4]
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 5]
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 6]
add ecx, eax
mov eax, dword [ebp + 0x10]
add esi, ecx
movzx eax, byte [eax + 7]
add ecx, eax
mov eax, dword [ebp + 0x10]
add eax, 8
add esi, ecx
mov dword [ebp + 0x10], eax
add eax, edi
cmp eax, ebx
mov eax, dword [ebp + 0x10]
jb 0x406340
mov dword [ebp + 0x14], edx
mov dword [ebp - 0x3c], esi
xor edi, edi
mov dword [ebp + 8], edi
cmp edx, ebx
jae 0x40641d
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x406404
mov eax, dword [ebp + 0x14]
mov edx, ebx
mov esi, dword [ebp + 0x10]
sub edx, eax
sub edx, 2
mov ebx, edi
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp + 0x14], eax
lea esp, [esp]
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add esi, 2
add ecx, eax
add ebx, ecx
dec edx
jne 0x4063e0
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x34]
cmp edx, ebx
jae 0x406416
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
add ecx, eax
add esi, ecx
inc edx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 8]
add eax, edi
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
sub dword [ebp - 0x10], ebx
mov ebx, 0x15b0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ebx
jne 0x406325
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
shl esi, 0x10
add esi, ecx
mov dword [edi + 0x1c], esi
test ebx, ebx
jne 0x406478
test byte [ebp + 0x18], 1
je 0x406478
cmp esi, dword [edi + 0x10]
mov eax, 0xfffffffe
cmovne ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, 0xfffffffd
mov esp, ebp
pop ebp
ret