Function at 0x404d4e
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x462080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x98], eax
mov eax, dword [eax]
mov ebx, esi
mov edx, dword [ebp + 0x10]
add eax, esi
test byte [ebp + 0x18], 4
push edi
mov edi, ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
mov eax, dword [ecx]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x50], ebx
lea ecx, [eax + edx]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x88], ecx
je 0x404ad8
mov dword [ebp - 0x7c], 0xffffffff
jmp 0x404aeb
sub eax, dword [ebp + 0xc]
add eax, edx
lea ecx, [eax - 1]
mov dword [ebp - 0x7c], ecx
test eax, ecx
jne 0x4060f3
cmp edx, dword [ebp + 0xc]
jb 0x4060f3
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x24]
mov esi, dword [edi + 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x84], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x80], eax
mov eax, dword [edi]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], ecx
cmp eax, 0x35
ja case.0x404b2a.4
movzx eax, byte [eax + 0x4061ac]
jmp dword [eax*4 + 0x406124]
mov eax, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], edx
mov dword [edi + 0x1c], 1
mov dword [edi + 0x10], 1
test al, 1
je 0x405360
mov ecx, dword [ebp - 0x5c]
cmp ebx, ecx
jae 0x404ba2
mov eax, ebx
lea ebx, [eax + 1]
movzx eax, byte [eax]
mov dword [ebp - 0x50], ebx
jmp 0x404bb7
mov ecx, dword [ebp - 0x5c]
mov eax, ebx
cmp eax, ecx
jae 0x404b9f
lea ebx, [eax + 1]
movzx eax, byte [eax]
mov dword [ebp - 0x50], ebx
jmp 0x404bb7
mov eax, dword [ebp + 0x18]
test al, 2
je 0x404bb5
mov ecx, 1
mov dword [ebp - 0x4c], ecx
mov dword [edi], ecx
jmp 0x405f26
xor eax, eax
mov dword [edi + 8], eax
cmp ebx, ecx
jae 0x404bdb
mov al, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
movzx ecx, al
jmp 0x404bf6
mov eax, ebx
cmp eax, dword [ebp - 0x5c]
jae 0x404bdb
movzx ecx, byte [eax]
lea ebx, [eax + 1]
mov dword [ebp - 0x50], ebx
jmp 0x404bf6
test byte [ebp + 0x18], 2
je 0x404bf4
mov ecx, 1
mov dword [edi], 2
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
xor ecx, ecx
mov dword [edi + 0xc], ecx
xor edx, edx
mov eax, dword [edi + 8]
shl eax, 8
add eax, ecx
mov dword [ebp - 0x70], 0x1f
div dword [ebp - 0x70]
test edx, edx
mov edx, dword [edi + 8]
jne 0x404c25
test cl, 0x20
jne 0x404c25
mov eax, edx
and al, 0xf
cmp al, 8
jne 0x404c25
xor ecx, ecx
jmp 0x404c2a
mov ecx, 1
test byte [ebp + 0x18], 4
mov dword [ebp - 0x48], ecx
jne 0x404c64
shr edx, 4
mov eax, 1
lea ecx, [edx + 8]
shl eax, cl
mov dword [ebp - 0x70], eax
cmp eax, 0x8000
ja 0x404c57
mov eax, dword [ebp - 0x7c]
inc eax
cmp eax, dword [ebp - 0x70]
jb 0x404c57
xor eax, eax
jmp 0x404c5c
mov eax, 1
mov ecx, dword [ebp - 0x48]
or ecx, eax
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x58]
test ecx, ecx
je 0x405360
or ecx, 0xffffffff
mov dword [edi], 0x24
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x40536a
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x40537c
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x4053bd
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x4053cf
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405408
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x40541a
mov eax, ebx
cmp eax, dword [ebp - 0x5c]
jae 0x405446
mov al, byte [eax]
inc ebx
mov byte [edi + ecx + 0x2920], al
inc ecx
mov dword [ebp - 0x50], ebx
jmp 0x4053f2
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x4054b8
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x4054ca
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405646
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405658
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x4056e9
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x4056fb
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405ab5
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405ac7
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405b74
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405b86
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x404f92
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x404fa4
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x40507b
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x40508d
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405133
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405145
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x4051f3
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405205
mov eax, dword [ebp - 0x88]
cmp dword [ebp - 0x54], eax
jae 0x405d94
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x6c]
and eax, dword [ebp - 0x7c]
mov edi, dword [ebp + 0xc]
mov al, byte [eax + edi]
mov edi, dword [ebp - 0x54]
inc dword [ebp - 0x54]
inc dword [ebp - 0x80]
mov byte [edi], al
mov edi, dword [ebp - 0x64]
mov eax, ecx
dec ecx
mov dword [ebp - 0x48], ecx
test eax, eax
jne case.0x404b2a.53
mov ecx, dword [ebp - 0x5c]
sub ecx, ebx
cmp ecx, 4
jl 0x404efa
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x64]
cmp eax, 2
jl 0x404efa
cmp esi, 0xf
jae 0x404e16
movzx eax, word [ebx]
mov ecx, esi
shl eax, cl
add ebx, 2
or edx, eax
mov dword [ebp - 0x50], ebx
add esi, 0x10
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 0x48], eax
test eax, eax
js 0x404e33
mov ecx, eax
sar ecx, 9
jmp 0x404e5e
mov ebx, dword [ebp - 0x48]
mov ecx, 0xa
nop dword [eax + eax]
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 0x404e40
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x50]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x58], edx
test ecx, 0x100
jne 0x40503d
cmp esi, 0xf
jae 0x404e8b
movzx eax, word [ebx]
mov ecx, esi
shl eax, cl
add ebx, 2
or edx, eax
mov dword [ebp - 0x50], ebx
add esi, 0x10
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 0x60], eax
test eax, eax
js 0x404ea8
mov ecx, eax
sar ecx, 9
jmp 0x404ece
mov ebx, dword [ebp - 0x60]
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 0x404eb0
mov dword [ebp - 0x60], ebx
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
sub esi, ecx
shr edx, cl
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ecx], al
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x60]
test ecx, 0x100
jne 0x40503a
add dword [ebp - 0x54], 2
mov byte [eax], cl
jmp 0x404ddc
cmp esi, 0xf
jae 0x404f29
cmp ecx, 2
jge 0x404fc1
mov eax, edx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0x160]
test edi, edi
js 0x404f55
sar edi, 9
test edi, edi
je 0x404f8a
cmp esi, edi
jb 0x404f8a
mov edi, dword [ebp - 0x64]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 0x48], eax
test eax, eax
js 0x404fe7
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0x48], eax
jmp 0x40500e
cmp esi, 0xa
jbe 0x404f8a
mov ecx, 0xa
mov dword [ebp - 0x60], ecx
mov eax, edx
not edi
shr eax, cl
mov ecx, dword [ebp - 0x64]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x960]
mov ecx, dword [ebp - 0x60]
inc ecx
mov dword [ebp - 0x60], ecx
test edi, edi
jns 0x404f26
lea eax, [ecx + 1]
cmp esi, eax
jae 0x404f62
cmp ebx, dword [ebp - 0x5c]
jb 0x404fa0
mov edi, dword [ebp - 0x64]
test byte [ebp + 0x18], 2
jne 0x405c3e
xor eax, eax
jmp 0x404fa7
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov edi, dword [ebp - 0x64]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
cmp esi, 0xf
jb 0x404f08
jmp 0x404f29
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 - 0x50], ebx
or dword [ebp - 0x58], edx
add esi, 0x10
mov edx, dword [ebp - 0x58]
jmp 0x404f29
mov ebx, dword [ebp - 0x48]
mov ecx, 0xa
nop
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 0x404ff0
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x50]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x58], edx
cmp ecx, 0x100
jae 0x40503d
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x88]
jae 0x405c51
mov byte [eax], cl
inc eax
mov dword [ebp - 0x54], eax
jmp 0x404ddc
mov dword [ebp - 0x54], eax
and ecx, 0x1ff
mov dword [ebp - 0x48], ecx
cmp ecx, 0x100
je 0x405356
lea eax, [ecx*4 - 0x404]
mov ecx, dword [eax + 0x45b880]
mov eax, dword [eax + 0x45b9c0]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x4050b7
cmp esi, ecx
jae 0x4050a3
cmp ebx, dword [ebp - 0x5c]
jb 0x405089
test byte [ebp + 0x18], 2
jne 0x405c64
xor eax, eax
jmp 0x405090
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
mov ecx, dword [ebp - 0x84]
or edx, eax
cmp esi, ecx
jb 0x405076
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0x48], eax
mov dword [ebp - 0x58], edx
cmp esi, 0xf
jae 0x40517d
mov eax, dword [ebp - 0x5c]
sub eax, ebx
cmp eax, 2
jge 0x40515c
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0xf00]
mov dword [ebp - 0x78], eax
test eax, eax
js 0x4050f5
sar eax, 9
test eax, eax
je 0x40512e
cmp esi, eax
jae 0x40517d
jmp 0x40512e
cmp esi, 0xa
jbe 0x40512e
mov ecx, 0xa
mov dword [ebp - 0x60], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x78]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x1700]
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x60], eax
test ecx, ecx
jns 0x40517d
mov ecx, dword [ebp - 0x60]
inc eax
cmp esi, eax
jae 0x405102
cmp ebx, dword [ebp - 0x5c]
jb 0x405141
test byte [ebp + 0x18], 2
jne 0x405c77
xor eax, eax
jmp 0x405148
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
cmp esi, 0xf
jb 0x4050ce
jmp 0x40517d
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 - 0x50], ebx
or dword [ebp - 0x58], edx
add esi, 0x10
mov edx, dword [ebp - 0x58]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0xf00]
mov dword [ebp - 0x60], eax
test eax, eax
js 0x40519f
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x4051c8
mov ebx, dword [ebp - 0x60]
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 + 0x1700]
test ebx, ebx
js 0x4051a7
mov dword [ebp - 0x60], ebx
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
shr edx, cl
sub esi, ecx
mov ecx, dword [eax*4 + 0x45b900]
mov eax, dword [eax*4 + 0x45b7b8]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x6c], eax
test ecx, ecx
je 0x405232
cmp esi, ecx
jae 0x40521b
cmp ebx, dword [ebp - 0x5c]
jb 0x405201
test byte [ebp + 0x18], 2
jne 0x405c8a
xor eax, eax
jmp 0x405208
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
mov ecx, dword [ebp - 0x84]
or edx, eax
cmp esi, ecx
jb 0x4051ee
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x54]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
cmp eax, ecx
jbe 0x405249
test byte [ebp + 0x18], 4
jne case.0x404b2a.37
mov ebx, dword [ebp - 0x50]
sub ecx, eax
and ecx, dword [ebp - 0x7c]
add ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x54], ecx
mov eax, ecx
mov dword [ebp - 0x4c], ecx
cmova eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
add eax, ecx
cmp eax, dword [ebp - 0x88]
ja 0x404dd2
cmp ecx, 9
jb 0x4052ef
cmp ecx, dword [ebp - 0x6c]
ja 0x4052ef
mov edi, dword [ebp - 0x4c]
mov eax, ecx
mov edx, dword [ebp - 0x54]
and eax, 0xfffffff8
add eax, edi
mov dword [ebp - 0x70], eax
mov ecx, eax
nop dword [eax]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
add edi, 8
mov dword [edx + 4], eax
add edx, 8
cmp edi, ecx
jb 0x405290
mov ecx, dword [ebp - 0x48]
and ecx, 7
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x48], ecx
cmp ecx, 3
jae 0x4052ef
test ecx, ecx
je 0x404ddc
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x54]
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 0x50]
cmp ecx, 1
jbe 0x4052e7
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
mov al, byte [eax + 1]
mov byte [edi + 1], al
mov edi, dword [ebp - 0x64]
add dword [ebp - 0x54], ecx
jmp 0x404ddc
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
movzx eax, byte [ebx]
sub ecx, 3
mov byte [edi], al
movzx eax, byte [ebx + 1]
mov byte [edi + 1], al
movzx eax, byte [ebx + 2]
add ebx, 3
mov byte [edi + 2], al
add edi, 3
cmp ecx, 2
jg 0x4052f5
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
test ecx, ecx
jle 0x404ddc
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x54]
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 0x50]
cmp ecx, 1
jle 0x40534e
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x54]
mov al, byte [eax + 1]
mov byte [ebx + 1], al
mov ebx, dword [ebp - 0x50]
add dword [ebp - 0x54], ecx
jmp 0x404ddc
test byte [edi + 0x14], 1
jne 0x405d7a
cmp esi, 3
jae 0x40538d
cmp ebx, dword [ebp - 0x5c]
jb 0x405378
test byte [ebp + 0x18], 2
jne 0x405c9d
xor eax, eax
jmp 0x40537f
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
cmp esi, 3
jb 0x405365
mov eax, edx
sub esi, 3
and eax, 7
shr edx, 3
mov dword [edi + 0x14], eax
shr eax, 1
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x90], esi
mov dword [edi + 0x18], eax
jne 0x4055a2
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x4053e4
cmp ebx, dword [ebp - 0x5c]
jb 0x4053cb
test byte [ebp + 0x18], 2
jne 0x405cfc
xor eax, eax
jmp 0x4053d2
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
mov eax, esi
and eax, 7
cmp esi, eax
jb 0x4053b8
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x58], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 4
jae 0x40546b
test esi, esi
je 0x405441
cmp esi, 8
jae 0x40542e
cmp ebx, dword [ebp - 0x5c]
jb 0x405416
test byte [ebp + 0x18], 2
jne 0x405d0f
xor eax, eax
jmp 0x40541d
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
cmp esi, 8
jb 0x405403
mov ecx, dword [ebp - 0x48]
mov byte [edi + ecx + 0x2920], dl
sub esi, 8
shr edx, 8
inc ecx
mov dword [ebp - 0x58], edx
jmp 0x4053f2
cmp ebx, dword [ebp - 0x5c]
jb 0x40545b
test byte [ebp + 0x18], 2
jne 0x405d22
mov byte [edi + ecx + 0x2920], 0
inc ecx
jmp 0x4053f2
mov al, byte [ebx]
inc ebx
mov byte [edi + ecx + 0x2920], al
inc ecx
mov dword [ebp - 0x50], ebx
jmp 0x4053f2
movzx ecx, byte [edi + 0x2921]
movzx eax, byte [edi + 0x2920]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x2922]
mov dword [ebp - 0x48], ecx
movzx ecx, byte [edi + 0x2923]
shl ecx, 8
or ecx, eax
xor ecx, 0xffff
cmp dword [ebp - 0x48], ecx
jne case.0x404b2a.39
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x405515
test esi, esi
je case.0x404b2a.9
cmp esi, 8
jae 0x4054de
cmp ebx, dword [ebp - 0x5c]
jb 0x4054c6
test byte [ebp + 0x18], 2
jne 0x405d35
xor eax, eax
jmp 0x4054cd
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
cmp esi, 8
jb 0x4054b3
mov ecx, dword [ebp - 0x48]
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x58], edx
jmp 0x4054f2
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x88]
cmp dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x64]
jae 0x405d48
mov ebx, dword [ebp - 0x54]
inc dword [ebp - 0x54]
dec ecx
mov dword [ebp - 0x48], ecx
mov byte [ebx], al
mov ebx, dword [ebp - 0x50]
jmp 0x4054a6
mov edx, dword [ebp - 0x54]
test ecx, ecx
jne 0x40552a
mov edx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x64]
jmp 0x405356
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x88]
cmp edx, edi
jb 0x405556
mov edi, dword [ebp - 0x64]
mov ecx, 2
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], ecx
mov dword [edi], 9
jmp 0x405f26
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x5c]
cmp ebx, eax
jae 0x405d5b
sub edi, edx
mov edx, eax
sub edx, ebx
mov eax, edi
cmp edi, edx
cmovae eax, edx
cmp eax, ecx
jae 0x405579
cmp edi, edx
cmovae edi, edx
jmp 0x40557b
mov edi, ecx
push edi
push ebx
push dword [ebp - 0x54]
call fcn.0042c4c0
mov edx, dword [ebp - 0x54]
add ebx, edi
mov ecx, dword [ebp - 0x48]
add edx, edi
add esp, 0xc
mov dword [ebp - 0x50], ebx
sub ecx, edi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x48], ecx
jmp 0x405518
cmp eax, 3
je case.0x404b2a.10
cmp eax, 1
jne 0x405628
mov eax, dword [ebp - 0x64]
add edi, 0x40
movaps xmm0, xmmword [0x45baa0]
push 0x90
push 8
mov dword [eax + 0x2c], 0x120
mov dword [eax + 0x30], 0x20
movups xmmword [eax + 0xde0], xmm0
push edi
movups xmmword [eax + 0xdf0], xmm0
call fcn.0042ca40
push 0x70
add edi, 0x90
push 9
push edi
call fcn.0042ca40
movaps xmm0, xmmword [str._a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a]
add esp, 0x18
movups xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
mov dword [edi + 0x88], 0x8080808
mov dword [edi + 0x8c], 0x8080808
mov edi, dword [ebp - 0x64]
jmp 0x40573e
xor ecx, ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 3
jae 0x4056bc
movsx eax, byte [ecx + 0x45b41c]
cmp esi, eax
jae 0x405675
cmp ebx, dword [ebp - 0x5c]
jb 0x405654
test byte [ebp + 0x18], 2
jne 0x405cb0
xor eax, eax
jmp 0x40565b
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
mov ecx, dword [ebp - 0x48]
or edx, eax
mov dword [ebp - 0x58], edx
movsx eax, byte [ecx + 0x45b41c]
cmp esi, eax
jb 0x405641
mov cl, byte [ecx + 0x45b41c]
mov edx, 1
mov eax, dword [ebp - 0x58]
shl edx, cl
mov ecx, dword [ebp - 0x48]
dec edx
and edx, eax
mov dword [edi + ecx*4 + 0x2c], edx
movsx ecx, byte [ecx + 0x45b41c]
shr eax, cl
sub esi, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x90], esi
mov eax, dword [ecx*4 + 0x45b758]
add eax, edx
mov edx, dword [ebp - 0x58]
mov dword [edi + ecx*4 + 0x2c], eax
inc ecx
jmp 0x40562a
push 0x120
lea eax, [edi + 0x1b80]
push 0
push eax
call fcn.0042ca40
mov edx, dword [ebp - 0x58]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x48], ecx
cmp ecx, dword [edi + 0x34]
jae 0x405737
cmp esi, 3
jae 0x40570c
cmp ebx, dword [ebp - 0x5c]
jb 0x4056f7
test byte [ebp + 0x18], 2
jne 0x405cc3
xor eax, eax
jmp 0x4056fe
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
cmp esi, 3
jb 0x4056e4
mov eax, dword [ebp - 0x48]
mov ecx, edx
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x90], esi
movzx eax, byte [eax + 0x45ba44]
mov byte [eax + edi + 0x1b80], cl
mov ecx, dword [ebp - 0x48]
inc ecx
jmp 0x4056d7
mov dword [edi + 0x34], 0x13
mov eax, dword [edi + 0x18]
test eax, eax
js 0x405c36
imul eax, eax, 0xda0
push 0x40
push 0
add eax, 0x40
add eax, edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0042ca40
mov eax, dword [ebp - 0x4c]
push 0x800
add eax, 0x120
push 0
push eax
call fcn.0042ca40
mov eax, dword [ebp - 0x4c]
push 0x480
add eax, 0x920
push 0
push eax
call fcn.0042ca40
mov eax, dword [edi + 0x18]
add esp, 0x24
xor ecx, ecx
mov edx, dword [edi + eax*4 + 0x2c]
test edx, edx
je 0x4057ae
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [ecx + ebx]
inc ecx
inc dword [ebp + eax*4 - 0x44]
cmp ecx, edx
jb 0x4057a1
xor edi, edi
lea ebx, [ebp - 0x44]
xor ecx, ecx
lea esi, [ebp - 0xdc]
mov dword [ebp - 0xdc], ecx
mov edx, 4
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x78], ecx
add ecx, dword [ebx + edx]
lea eax, [ebp - 0x40]
mov eax, dword [eax + edx]
add ecx, ecx
add dword [ebp - 0x78], eax
add edi, dword [ebx + edx]
mov dword [esi + edx], ecx
add ecx, eax
add ecx, ecx
lea eax, [ebp - 0xd8]
mov dword [eax + edx], ecx
lea eax, [ebp - 0x3c]
mov eax, dword [eax + edx]
add ecx, eax
add dword [ebp - 0x60], eax
add ecx, ecx
lea eax, [ebp - 0xd4]
mov dword [eax + edx], ecx
add edx, 0xc
cmp edx, 0x3c
jbe 0x4057d2
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x70], edi
mov ecx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x64]
add ecx, eax
cmp dword [ebp - 0x94], 0x10000
je 0x405846
cmp ecx, 1
ja 0x405dda
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x60], 0
cmp dword [edi + eax*4 + 0x2c], 0
jbe 0x405946
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x4c]
nop dword [eax + eax]
mov eax, dword [ebp - 0x60]
xor edx, edx
movzx ecx, byte [eax + ecx]
mov dword [ebp - 0x8c], ecx
test ecx, ecx
je 0x405926
mov ebx, dword [ebp + ecx*4 - 0xe0]
mov dword [ebp - 0x94], ecx
lea eax, [ebx + 1]
mov dword [ebp + ecx*4 - 0xe0], eax
nop
mov eax, dword [ebp - 0x94]
mov ecx, ebx
and ecx, 1
shr ebx, 1
add edx, edx
dec eax
or edx, ecx
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x4058a0
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xa
ja 0x4059d4
mov ebx, dword [ebp - 0x7c]
mov eax, ecx
shl eax, 9
or eax, dword [ebp - 0x60]
movzx eax, ax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x7c], ebx
cmp edx, 0x400
jae 0x405926
mov eax, 1
mov dword [ebp - 0x7c], ebx
mov ebx, dword [ebp - 0x94]
shl eax, cl
mov dword [ebp - 0x8c], eax
add eax, eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
lea eax, [eax + edx*2]
add eax, 0x120
mov word [eax], bx
add edx, ecx
add eax, dword [ebp - 0x70]
cmp edx, 0x400
jb 0x405916
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x60]
mov eax, dword [edi + 0x18]
inc edx
mov dword [ebp - 0x60], edx
cmp edx, dword [edi + eax*4 + 0x2c]
jb 0x405870
mov esi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x50]
cmp eax, 2
jne 0x405c2e
xor ecx, ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x2c]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
cmp ecx, eax
jae 0x405bf7
cmp esi, 0xf
jae 0x4059a8
mov eax, dword [ebp - 0x5c]
sub eax, ebx
cmp eax, 2
jge 0x405ae4
mov eax, edx
and eax, 0x3ff
movsx edi, word [edi + eax*2 + 0x1ca0]
test edi, edi
js 0x405a74
sar edi, 9
test edi, edi
je 0x405aad
cmp esi, edi
jb 0x405aad
mov edi, dword [ebp - 0x64]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x1ca0]
mov dword [ebp - 0x6c], eax
test eax, eax
js 0x405b0a
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0x6c], eax
jmp 0x405b2d
mov ebx, dword [ebp - 0x4c]
mov eax, edx
and eax, 0x3ff
lea ebx, [ebx + eax*2]
movsx eax, word [ebx + 0x120]
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x405a03
mov word [ebx + 0x120], si
mov ebx, esi
sub esi, 2
mov dword [ebp - 0x78], esi
jmp 0x405a09
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x7c]
shr edx, 9
mov dword [ebp - 0x7c], eax
cmp ecx, 0xb
jbe 0x405a5a
lea esi, [ecx - 0xb]
mov dword [ebp - 0x7c], eax
nop dword [eax]
mov ecx, dword [ebp - 0x4c]
shr edx, 1
mov eax, edx
and eax, 1
sub eax, ebx
lea ecx, [ecx + eax*2]
movzx eax, word [ecx + 0x91e]
test ax, ax
jne 0x405a4f
mov eax, dword [ebp - 0x78]
mov ebx, eax
mov word [ecx + 0x91e], ax
sub eax, 2
mov dword [ebp - 0x78], eax
jmp 0x405a52
movsx ebx, ax
sub esi, 1
jne 0x405a20
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x60]
shr edx, 1
and edx, 1
sub edx, ebx
mov word [ecx + edx*2 + 0x91e], ax
jmp 0x405929
cmp esi, 0xa
jbe 0x405aad
mov ecx, 0xa
mov dword [ebp - 0x70], ecx
mov eax, edx
not edi
shr eax, cl
mov ecx, dword [ebp - 0x64]
and eax, 1
add eax, edi
movsx edi, word [ecx + eax*2 + 0x24a0]
mov ecx, dword [ebp - 0x70]
inc ecx
mov dword [ebp - 0x70], ecx
test edi, edi
jns 0x4059a5
lea eax, [ecx + 1]
cmp esi, eax
jae 0x405a81
cmp ebx, dword [ebp - 0x5c]
jb 0x405ac3
mov edi, dword [ebp - 0x64]
test byte [ebp + 0x18], 2
jne 0x405cd6
xor eax, eax
jmp 0x405aca
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov edi, dword [ebp - 0x64]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
cmp esi, 0xf
jb 0x40597b
jmp 0x4059a8
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 - 0x50], ebx
or dword [ebp - 0x58], edx
add esi, 0x10
mov edx, dword [ebp - 0x58]
jmp 0x4059a8
mov ecx, 0xa
nop
not dword [ebp - 0x6c]
mov eax, edx
shr eax, cl
inc ecx
and eax, 1
add eax, dword [ebp - 0x6c]
movsx eax, word [edi + eax*2 + 0x24a0]
mov dword [ebp - 0x6c], eax
test eax, eax
js 0x405b10
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x90], esi
cmp eax, 0x10
jae 0x405b4f
mov ecx, dword [ebp - 0x48]
mov byte [edi + ecx + 0x2924], al
inc ecx
jmp 0x405954
jne 0x405b5e
cmp dword [ebp - 0x48], 0
je case.0x404b2a.17
mov eax, dword [ebp - 0x6c]
movsx ecx, byte [eax + 0x45b410]
mov dword [ebp - 0x84], ecx
cmp esi, ecx
jae 0x405b9f
cmp ebx, dword [ebp - 0x5c]
jb 0x405b82
test byte [ebp + 0x18], 2
jne 0x405ce9
xor eax, eax
jmp 0x405b89
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x50], ebx
mov ecx, esi
add esi, 8
shl eax, cl
mov ecx, dword [ebp - 0x84]
or edx, eax
cmp esi, ecx
jb 0x405b6f
mov eax, dword [ebp - 0x6c]
movsx eax, byte [eax + 0x45b414]
mov edi, 1
shl edi, cl
sub esi, ecx
dec edi
mov dword [ebp - 0x90], esi
and edi, edx
shr edx, cl
mov ecx, dword [ebp - 0x64]
add edi, eax
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], edx
jne 0x405bd5
movzx edx, byte [ecx + eax + 0x2923]
jmp 0x405bd7
xor edx, edx
push edi
add ecx, 0x2924
push edx
add eax, ecx
push eax
call fcn.0042ca40
mov ecx, dword [ebp - 0x48]
add esp, 0xc
add ecx, edi
mov edi, dword [ebp - 0x64]
jmp 0x405951
jne case.0x404b2a.21
mov eax, dword [edi + 0x2c]
push eax
lea eax, [edi + 0x2924]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.0042c4c0
mov eax, dword [edi + 0x2c]
push dword [edi + 0x30]
add eax, 0x2924
add eax, edi
push eax
lea eax, [edi + 0xde0]
push eax
call fcn.0042c4c0
add esp, 0x18
dec dword [edi + 0x18]
jmp 0x40573e
mov edx, dword [ebp - 0x58]
jmp 0x404ddc
mov ecx, 1
mov dword [edi], 0x17
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 2
mov dword [edi], 0x18
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x19
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x1a
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x1b
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 3
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0xb
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0xe
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x10
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x12
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 5
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 6
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 7
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x33
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 2
mov dword [edi], 0x34
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
test byte [ebp + 0x18], 2
mov edi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x58]
je case.0x404b2a.40
mov ecx, 1
mov dword [edi], 0x26
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
test byte [ebp + 0x18], 1
jne 0x405e41
xor ecx, ecx
mov dword [edi], 0x22
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 2
mov dword [edi], 0x35
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov dword [edi], 0x27
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov dword [edi], 0x28
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov dword [edi], 0xa
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov edx, dword [ebp - 0x58]
or ecx, 0xffffffff
mov dword [edi], 0x23
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov dword [edi], 0x11
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov dword [edi], 0x15
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov dword [edi], 0x25
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405e30
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405e38
test byte [ebp + 0x18], 2
jne 0x405e62
xor eax, eax
mov ecx, esi
shl eax, cl
or edx, eax
add esi, 8
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x405e55
cmp ebx, dword [ebp - 0x5c]
jae 0x405e30
movzx eax, byte [ebx]
inc ebx
jmp 0x405e38
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
xor ecx, ecx
jmp 0x405eae
mov ecx, 1
mov dword [edi], 0x20
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, ebx
cmp ecx, dword [ebp - 0x5c]
jae 0x405ec8
movzx eax, byte [ecx]
lea ebx, [ecx + 1]
jmp 0x405ed6
mov eax, ebx
cmp eax, dword [ebp - 0x5c]
jae 0x405e94
movzx eax, byte [eax]
inc ebx
mov dword [ebp - 0x60], eax
jmp 0x405ea1
test byte [ebp + 0x18], 2
jne 0x405f13
mov dword [ebp - 0x60], 0
mov eax, dword [edi + 0x10]
shl eax, 8
or eax, dword [ebp - 0x60]
inc ecx
mov dword [edi + 0x10], eax
mov dword [ebp - 0x48], ecx
cmp ecx, 4
jae case.0x404b2a.34
test esi, esi
je 0x405ef5
cmp esi, 8
jae 0x405ee7
cmp ebx, dword [ebp - 0x5c]
jb 0x405ed2
test byte [ebp + 0x18], 2
jne 0x405f03
xor eax, eax
jmp 0x405ed6
movzx eax, byte [ebx]
inc ebx
mov ecx, esi
add esi, 8
shl eax, cl
or edx, eax
cmp esi, 8
jb 0x405ec3
mov ecx, dword [ebp - 0x48]
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0x60], eax
jmp 0x405ea1
cmp ebx, dword [ebp - 0x5c]
jae 0x405e94
movzx eax, byte [ebx]
inc ebx
mov dword [ebp - 0x60], eax
jmp 0x405ea1
mov ecx, 1
mov dword [edi], 0x29
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
mov ecx, 1
mov dword [edi], 0x2a
mov dword [ebp - 0x4c], ecx
jmp 0x405f26
or ecx, 0xffffffff
mov eax, dword [ebp - 0x6c]
sub ebx, dword [ebp - 0x68]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x84]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x80]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 4], esi
mov dword [edi + 0x38], edx
mov dword [eax], ebx
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x9c]
sub ebx, dword [ebp - 0x74]
test byte [ebp + 0x18], 9
mov dword [ebp - 0x54], ebx
mov dword [eax], ebx
je 0x4060e0
test ecx, ecx
js 0x4060e0
mov esi, dword [edi + 0x1c]
mov eax, 0x5e6ea9af
mul ebx
movzx ecx, si
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
shr esi, 0x10
mov dword [ebp - 0x80], esi
sub edx, eax
mov dword [ebp - 0x60], edx
test ebx, ebx
je 0x4060bf
xor ebx, ebx
cmp edx, 7
jbe 0x40601d
mov eax, dword [ebp - 0x74]
mov edi, 7
sub edi, eax
movzx eax, byte [eax]
add ebx, 8
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 1]
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 2]
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 3]
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 4]
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 5]
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 6]
add ecx, eax
mov eax, dword [ebp - 0x74]
add esi, ecx
movzx eax, byte [eax + 7]
add ecx, eax
mov eax, dword [ebp - 0x74]
add eax, 8
add esi, ecx
mov dword [ebp - 0x74], eax
add eax, edi
cmp eax, edx
mov eax, dword [ebp - 0x74]
jb 0x405fb1
mov dword [ebp - 0x80], esi
xor edi, edi
cmp ebx, edx
jae 0x406081
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x40606c
mov esi, dword [ebp - 0x74]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, edi
mov dword [ebp - 0x8c], eax
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x406042
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], esi
mov esi, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x60]
jae 0x40607c
jmp 0x40606e
mov ebx, edi
mov edx, dword [ebp - 0x74]
movzx eax, byte [edx]
add ecx, eax
add esi, ecx
inc edx
mov dword [ebp - 0x74], edx
lea eax, [edi + ebx]
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
mov edx, dword [ebp - 0x60]
add esi, eax
sub dword [ebp - 0x54], edx
mov edx, 0x15b0
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x60], edx
jne 0x405fa0
mov edi, dword [ebp - 0x64]
shl esi, 0x10
lea eax, [esi + ecx]
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x1c], eax
test ecx, ecx
jne 0x4060e0
test byte [ebp + 0x18], 1
je 0x4060e0
cmp eax, dword [edi + 0x10]
mov edx, 0xfffffffe
cmovne ecx, edx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aee2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], 0
xor ecx, ebp
mov eax, dword [ebp - 0x98]
pop ebx
mov dword [eax], 0
mov eax, 0xfffffffd
call fcn.0042aee2
mov esp, ebp
pop ebp
ret