Function at 0x401490
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [eax]
push edi
add eax, edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x48], ecx
mov edi, edx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x4014ed
mov edx, dword [esi]
add edx, ebx
mov dword [ebp - 0x84], edx
jmp 0x4014f7
mov dword [ebp - 0x84], 0
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [ebp - 0x9c], eax
je 0x401518
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x54], 0
jmp 0x401533
mov eax, dword [esi]
sub eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x54], eax
lea edx, [eax - 1]
mov dword [ebp - 0x88], edx
test edx, eax
jne 0x402ad5
cmp ebx, dword [ebp + 0xc]
jb 0x402ad5
lea eax, [ecx + 0x1840]
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0xb0], eax
lea eax, [ecx + 0x1cc0]
mov dword [ebp - 0xac], eax
lea eax, [ecx + 0x1d40]
mov dword [ebp - 0xa8], eax
lea eax, [ecx + 0x1d8c]
mov dword [ebp - 0xbc], eax
lea eax, [ecx + 0x1eac]
mov dword [ebp - 0xb8], eax
lea eax, [ecx + 0x1ecc]
mov dword [ebp - 0xb4], eax
mov eax, ecx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x38]
mov ebx, dword [eax + 0x24]
mov esi, dword [eax + 4]
mov dword [ebp - 0x70], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x80], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x5c], ebx
cmp ecx, 0x35
ja case.default.0x4015c3
movzx eax, byte [ecx + 0x402b84]
jmp dword [eax*4 + 0x402b00]
mov eax, dword [ebp - 0x48]
xor ebx, ebx
mov ecx, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x5c], ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x4c], edx
mov dword [eax + 0x1c], 1
mov dword [eax + 0x10], 1
test cl, 1
je 0x401ed7
jmp 0x401613
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x18]
cmp edi, dword [ebp - 0x64]
jb 0x401636
test cl, 2
mov dword [ebp - 0x78], 1
mov ecx, 0xfffffffc
mov dword [eax], 1
cmovne ecx, dword [ebp - 0x78]
jmp 0x402868
mov ecx, dword [ebp - 0x48]
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
jmp 0x401645
mov ecx, dword [ebp - 0x48]
cmp edi, dword [ebp - 0x64]
jb 0x401669
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 2
jmp 0x402868
movzx ebx, byte [edi]
xor edx, edx
mov dword [ecx + 0xc], ebx
inc edi
mov ecx, dword [ecx + 8]
mov eax, ecx
shl eax, 8
add eax, ebx
mov dword [ebp - 0x78], 0x1f
div dword [ebp - 0x78]
mov dword [ebp - 0x60], edi
test edx, edx
jne 0x40169e
test bl, 0x20
jne 0x40169e
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x40169e
xor ebx, ebx
jmp 0x4016a3
mov ebx, 1
cmp dword [ebp - 0x9c], 0
mov dword [ebp - 0x5c], ebx
jne 0x4016d6
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x4016cc
cmp dword [ebp - 0x54], eax
jb 0x4016cc
xor eax, eax
jmp 0x4016d1
mov eax, 1
or ebx, eax
mov dword [ebp - 0x5c], ebx
test ebx, ebx
je 0x401ed4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0x24
jmp 0x4028a6
cmp edi, dword [ebp - 0x64]
jae 0x402721
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0x80]
add esi, 8
or edx, eax
mov dword [ebp - 0x60], edi
cmp esi, ecx
jb case.0x4015c3.18
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0x50], esi
and eax, edx
shr edx, cl
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
movsx eax, byte [edx + 0x42e700]
add ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
cmp edx, 0x10
jne 0x401751
movzx edx, byte [eax + ebx + 0x1ee2]
jmp 0x401753
xor edx, edx
push ecx
add eax, 0x1ee3
push edx
add eax, ebx
push eax
call fcn.004092e0
mov eax, dword [ebp - 0x48]
add esp, 0xc
add ebx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
add eax, ecx
mov dword [ebp - 0x5c], ebx
cmp ebx, eax
jae 0x4018bf
cmp esi, 0xf
jae 0x401842
mov eax, dword [ebp - 0x64]
sub eax, edi
cmp eax, 2
jge 0x401821
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [ebp - 0x54], eax
test eax, eax
js 0x4017c2
sar eax, 9
test eax, eax
je case.0x4015c3.16
cmp esi, eax
jae 0x401845
jmp case.0x4015c3.16
cmp esi, 0xa
jbe case.0x4015c3.16
mov ecx, 0xa
mov dword [ebp - 0x50], ecx
nop
inc dword [ebp - 0x50]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x54]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x48]
movsx eax, word [ecx + eax*2 + 0x1d40]
mov dword [ebp - 0x54], eax
test eax, eax
jns 0x401845
mov ecx, dword [ebp - 0x50]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x4017d0
cmp edi, dword [ebp - 0x64]
jae 0x40254c
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 0xf
jb 0x401798
jmp 0x401842
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [ebp - 0x60], edi
or dword [ebp - 0x4c], edx
add esi, 0x10
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [ebp - 0x70], eax
test eax, eax
js 0x40186a
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0x70], eax
jmp 0x401899
mov edi, dword [ebp - 0x48]
mov ecx, 0xa
mov ebx, dword [ebp - 0x70]
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x1d40]
test ebx, ebx
js 0x401875
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x70]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], esi
cmp eax, 0x10
jae 0x40252b
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
mov byte [eax + ebx + 0x1ee3], cl
inc ebx
jmp 0x40176e
jne case.0x4015c3.21
push ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + 0x1ee3]
push eax
lea eax, [ecx + 0x1d8c]
push eax
call fcn.00409440
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 0x2c]
push dword [ecx + 0x30]
add eax, 0x1ee3
add eax, ecx
push eax
lea eax, [ecx + 0x1eac]
push eax
call fcn.00409440
mov eax, dword [ebp - 0x48]
add esp, 0x18
dec dword [eax + 0x18]
mov edx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
test eax, eax
jns 0x402268
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
sub eax, edi
mov dword [ebp - 0x78], eax
cmp eax, 4
jl 0x401a5d
mov eax, dword [ebp - 0x84]
sub eax, ecx
cmp eax, 2
jl 0x401a5a
cmp esi, 0xf
jae 0x401959
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0x60], edi
shl edx, cl
or dword [ebp - 0x4c], edx
add esi, 0x10
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ecx + eax*2 + 0x40]
test ebx, ebx
js 0x401973
mov ecx, ebx
sar ecx, 9
jmp 0x4019a1
mov ecx, 0xa
mov dword [ebp - 0x54], ecx
nop dword [eax + eax]
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [ebp - 0x48]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [ebp - 0x54], ecx
test ebx, ebx
js 0x401980
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x4c], edx
test ebx, 0x100
jne 0x401b8f
cmp esi, 0xf
jae 0x4019d8
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0x60], edi
shl edx, cl
or dword [ebp - 0x4c], edx
add esi, 0x10
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [ebp - 0x5c], eax
test eax, eax
js 0x4019f5
mov ecx, eax
sar ecx, 9
jmp 0x401a27
mov ecx, 0xa
mov dword [ebp - 0x54], ecx
nop dword [eax]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x5c]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x48]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], ecx
test eax, eax
js 0x401a00
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], edx
lea eax, [ecx + 1]
mov byte [ecx], bl
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
test eax, 0x100
jne 0x401b8a
mov byte [ecx], al
mov ecx, dword [ebp - 0x58]
add ecx, 2
mov dword [ebp - 0x58], ecx
jmp 0x401913
mov eax, dword [ebp - 0x78]
cmp esi, 0xf
jae 0x401b12
cmp eax, 2
jge 0x401af1
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [ebp - 0x54], eax
test eax, eax
js 0x401a96
sar eax, 9
test eax, eax
je case.0x4015c3.23
cmp esi, eax
jae 0x401b12
jmp case.0x4015c3.23
cmp esi, 0xa
jbe case.0x4015c3.23
mov ecx, 0xa
mov dword [ebp - 0x6c], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x54]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x48]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x6c]
inc ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], ecx
test eax, eax
jns 0x401b12
lea eax, [ecx + 1]
cmp esi, eax
jae 0x401aa3
cmp edi, dword [ebp - 0x64]
jae 0x40256b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 0xf
jb 0x401a6f
jmp 0x401b12
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [ebp - 0x60], edi
or dword [ebp - 0x4c], edx
add esi, 0x10
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ebx + eax*2 + 0x40]
test ebx, ebx
js 0x401b32
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x401b61
mov ecx, 0xa
mov dword [ebp - 0x54], ecx
nop word [eax + eax]
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [ebp - 0x48]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [ebp - 0x54], ecx
test ebx, ebx
js 0x401b40
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x4c], edx
cmp ebx, 0x100
jae 0x401b8f
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x84]
jae 0x40258a
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x58], ecx
jmp 0x401913
mov dword [ebp - 0x58], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [ebp - 0x5c], ebx
cmp ebx, 0x100
je 0x401e64
movzx ecx, byte [ebx + 0x42e5e7]
movzx ebx, word [ebx*2 + 0x42e442]
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x401bf1
cmp esi, ecx
jae 0x401bde
cmp edi, dword [ebp - 0x64]
jae 0x402702
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0x80]
add esi, 8
or edx, eax
mov dword [ebp - 0x60], edi
cmp esi, ecx
jb case.0x4015c3.25
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
mov dword [ebp - 0x4c], edx
add ebx, eax
cmp esi, 0xf
jae 0x401cb2
mov eax, dword [ebp - 0x64]
sub eax, edi
cmp eax, 2
jge 0x401c91
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [ebp - 0x54], eax
test eax, eax
js 0x401c32
sar eax, 9
test eax, eax
je case.0x4015c3.26
cmp esi, eax
jae 0x401cb5
jmp case.0x4015c3.26
cmp esi, 0xa
jbe case.0x4015c3.26
mov ecx, 0xa
mov dword [ebp - 0x5c], ecx
nop
inc dword [ebp - 0x5c]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x54]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x48]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov dword [ebp - 0x54], eax
test eax, eax
jns 0x401cb5
mov ecx, dword [ebp - 0x5c]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x401c40
cmp edi, dword [ebp - 0x64]
jae 0x4026af
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 0xf
jb 0x401c08
jmp 0x401cb2
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
add edi, 2
shl edx, cl
mov ecx, esi
shl eax, cl
or edx, eax
mov dword [ebp - 0x60], edi
or dword [ebp - 0x4c], edx
add esi, 0x10
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [ebp - 0x54], eax
test eax, eax
js 0x401cd7
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x401d07
mov ecx, 0xa
mov dword [ebp - 0x6c], ecx
nop
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x54]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x48]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov ecx, dword [ebp - 0x6c]
inc ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], ecx
test eax, eax
js 0x401ce0
shr edx, cl
sub esi, ecx
movzx ecx, byte [eax + 0x42e6c8]
movzx eax, word [eax*2 + 0x42e688]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x70], eax
test ecx, ecx
je 0x401d64
cmp esi, ecx
jae 0x401d50
nop dword [eax + eax]
cmp edi, dword [ebp - 0x64]
jae 0x4026ce
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0x80]
add esi, 8
or edx, eax
mov dword [ebp - 0x60], edi
cmp esi, ecx
jb case.0x4015c3.27
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0x70], eax
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x401d7c
cmp eax, ecx
ja 0x401d7c
test ecx, ecx
jne 0x401d86
test byte [ebp + 0x18], 4
jne case.0x4015c3.37
sub ecx, eax
and ecx, dword [ebp - 0x88]
add ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x58], ecx
mov eax, ecx
mov dword [ebp - 0x78], ecx
cmova eax, dword [ebp - 0x58]
add eax, ebx
cmp eax, dword [ebp - 0x84]
jbe 0x401de6
mov ecx, dword [ebp - 0x58]
mov eax, ebx
dec ebx
test eax, eax
je 0x401913
jmp 0x401dba
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x84]
jae 0x4026ed
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x70]
and eax, dword [ebp - 0x88]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0x7c]
mov dword [ebp - 0x58], ecx
jmp 0x401daa
cmp ebx, 2
jbe 0x401e28
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp - 0x78]
mov eax, edx
mov edx, dword [ebp - 0x58]
shr eax, 1
inc eax
mov dword [ebp - 0x54], eax
movzx eax, byte [ecx]
sub ebx, 3
mov byte [edx], al
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
movzx eax, byte [ecx + 2]
add ecx, 3
mov byte [edx + 2], al
add edx, 3
sub dword [ebp - 0x54], 1
jne 0x401e03
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x4c]
test ebx, ebx
je 0x401910
mov edx, dword [ebp - 0x58]
mov al, byte [ecx]
mov byte [edx], al
cmp ebx, 1
jbe 0x401e54
mov al, byte [ecx + 1]
mov ecx, edx
mov edx, dword [ebp - 0x4c]
mov byte [ecx + 1], al
add ecx, ebx
mov dword [ebp - 0x58], ecx
jmp 0x401913
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x4c]
add ecx, ebx
mov dword [ebp - 0x58], ecx
jmp 0x401913
mov eax, dword [ebp - 0x48]
test byte [eax + 0x14], 1
je 0x401ed7
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x401e95
cmp edi, dword [ebp - 0x64]
jae 0x4027c1
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
and eax, 7
cmp esi, eax
jb case.0x4015c3.32
mov eax, dword [ebp - 0x90]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
cmp edi, eax
jbe 0x401eb5
cmp esi, 8
jb 0x401eb5
dec edi
sub esi, 8
cmp edi, eax
ja 0x401ea8
mov eax, dword [ebp - 0x94]
mov ecx, esi
shl eax, cl
not eax
and edx, eax
test byte [ebp + 0x18], 1
je case.0x4015c3.34
xor ebx, ebx
jmp 0x4027fc
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
cmp esi, 3
jae 0x401f00
cmp edi, dword [ebp - 0x64]
jae 0x40259f
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 3
jb case.0x4015c3.3
mov eax, dword [ebp - 0x48]
mov ecx, edx
sub esi, 3
and ecx, 7
shr edx, 3
mov dword [eax + 0x14], ecx
shr ecx, 1
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], esi
mov dword [eax + 0x18], ecx
jne 0x4020df
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x401f4a
cmp edi, dword [ebp - 0x64]
jae 0x4025be
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
mov dword [ebp - 0x60], edi
and eax, 7
cmp esi, eax
jb case.0x4015c3.5
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x4c], edx
xor ebx, ebx
cmp ebx, 4
jae 0x401fb6
test esi, esi
je case.0x4015c3.7
cmp esi, 8
jae 0x401f84
cmp edi, dword [ebp - 0x64]
jae 0x4025dd
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 8
jb case.0x4015c3.6
mov eax, dword [ebp - 0x48]
sub esi, 8
mov byte [eax + ebx + 0x1edf], dl
shr edx, 8
inc ebx
mov dword [ebp - 0x4c], edx
jmp 0x401f58
cmp edi, dword [ebp - 0x64]
jae 0x4025fc
mov ecx, dword [ebp - 0x48]
mov al, byte [edi]
inc edi
mov dword [ebp - 0x60], edi
mov byte [ecx + ebx + 0x1edf], al
inc ebx
jmp 0x401f58
mov ecx, dword [ebp - 0x48]
movzx ebx, byte [ecx + 0x1ee0]
movzx eax, byte [ecx + 0x1edf]
movzx ecx, byte [ecx + 0x1ee2]
shl ebx, 8
or ebx, eax
shl ecx, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], ebx
movzx eax, byte [eax + 0x1ee1]
or ecx, eax
xor ecx, 0xffff
cmp ebx, ecx
jne case.0x4015c3.39
mov ecx, dword [ebp - 0x58]
test ebx, ebx
je 0x402054
test esi, esi
je 0x40205f
cmp esi, 8
jae 0x402021
cmp edi, dword [ebp - 0x64]
jae 0x40261b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 8
jb case.0x4015c3.51
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x4c], edx
jmp 0x402035
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x84]
jae 0x40263a
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ebx
jmp 0x401ff6
test ebx, ebx
jne 0x40205f
mov edx, dword [ebp - 0x4c]
jmp 0x401e64
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x84]
cmp ecx, edx
jb 0x40208a
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], 2
mov dword [eax], 9
jmp 0x4028a6
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x64]
cmp edi, eax
jae 0x40264f
sub eax, edi
sub edx, ecx
mov dword [ebp - 0x5c], eax
mov eax, edx
cmp edx, dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
cmp eax, ebx
jae 0x4020b5
cmp edx, dword [ebp - 0x5c]
cmovae edx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], edx
jmp 0x4020ba
mov edx, ebx
mov dword [ebp - 0x54], ebx
push edx
push edi
push ecx
call fcn.00409440
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov ecx, dword [ebp - 0x58]
add edi, eax
add ecx, eax
mov dword [ebp - 0x60], edi
sub ebx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ebx
jmp 0x402050
cmp ecx, 3
je 0x402758
cmp ecx, 1
jne 0x40216c
movaps xmm0, xmmword [0x42ea00]
lea edi, [eax + 0x1d8c]
push 0x90
mov dword [eax + 0x2c], 0x120
mov dword [eax + 0x30], 0x20
push 8
movups xmmword [eax + 0x1eac], xmm0
push edi
movups xmmword [eax + 0x1ebc], xmm0
call fcn.004092e0
push 0x70
add edi, 0x90
push 9
push edi
call fcn.004092e0
movaps xmm0, xmmword [str._a_a_a_a_a_a_a_a_a_a_a_a_a_a_a_a]
add esp, 0x18
mov eax, dword [ebp - 0x48]
movups xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
mov dword [edi + 0x88], 0x8080808
mov dword [edi + 0x8c], 0x8080808
mov edi, dword [ebp - 0x60]
jmp 0x401902
xor ebx, ebx
cmp ebx, 3
jae 0x4021e7
movsx eax, byte [ebx + 0x42e70c]
cmp esi, eax
jae 0x4021a5
cmp edi, dword [ebp - 0x64]
jae 0x402671
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x60], edi
movsx eax, byte [ebx + 0x42e70c]
add esi, 8
mov dword [ebp - 0x4c], edx
cmp esi, eax
jb case.0x4015c3.11
mov cl, byte [ebx + 0x42e70c]
mov edx, 1
mov eax, dword [ebp - 0x4c]
shl edx, cl
mov ecx, dword [ebp - 0x48]
dec edx
and edx, eax
mov dword [ecx + ebx*4 + 0x2c], edx
movsx ecx, byte [ebx + 0x42e70c]
shr eax, cl
sub esi, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
movzx eax, word [ebx*2 + 0x42e63c]
add eax, edx
mov dword [ebp - 0x50], esi
mov edx, dword [ebp - 0x4c]
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40216e
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [eax + 0x1ecc], xmm0
mov word [eax + 0x1edc], 0
mov byte [eax + 0x1ede], 0
mov dword [ebp - 0x5c], ebx
cmp ebx, dword [eax + 0x34]
jae 0x40225c
cmp esi, 3
jae 0x402231
cmp edi, dword [ebp - 0x64]
jae 0x402690
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0x60], edi
or edx, eax
cmp esi, 3
jb case.0x4015c3.14
movzx eax, byte [ebx + 0x42e628]
mov ecx, edx
mov edi, dword [ebp - 0x48]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 0x4c], edx
inc ebx
mov dword [ebp - 0x50], esi
mov byte [eax + edi + 0x1ecc], cl
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x48]
jmp 0x402206
mov dword [eax + 0x34], 0x13
jmp 0x401905
mov ecx, dword [ebp - 0x48]
shl eax, 0xb
add eax, 0x40
add eax, ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x18]
push 0x40
push 0
mov ecx, dword [ebp + eax*4 - 0xb0]
mov eax, dword [ebp + eax*4 - 0xbc]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x78], ecx
call fcn.004092e0
push 0x800
push 0
push dword [ebp - 0x54]
call fcn.004092e0
mov eax, dword [ebp - 0x48]
add esp, 0x18
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4022c5
push 0x480
add eax, 0x1840
jmp 0x4022dd
cmp ecx, 1
jne 0x4022d6
push 0x80
add eax, 0x1cc0
jmp 0x4022dd
push 0x4c
add eax, 0x1d40
push 0
push eax
call fcn.004092e0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x402313
nop dword [eax + eax]
mov eax, dword [ebp - 0x9c]
movzx eax, byte [edx + eax]
inc edx
inc dword [ebp + eax*4 - 0x44]
cmp edx, ecx
jb 0x402300
xor edi, edi
lea ebx, [ebp - 0x44]
xor ecx, ecx
lea esi, [ebp - 0xfc]
mov dword [ebp - 0xfc], ecx
mov edx, 4
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x6c], ecx
nop word [eax + eax]
add ecx, dword [ebx + edx]
lea eax, [ebp - 0x40]
mov eax, dword [edx + eax]
add ecx, ecx
add dword [ebp - 0x6c], eax
add edi, dword [ebx + edx]
mov dword [edx + esi], ecx
add ecx, eax
add ecx, ecx
lea eax, [ebp - 0xf8]
mov dword [edx + eax], ecx
lea eax, [ebp - 0x3c]
mov eax, dword [edx + eax]
add ecx, eax
add dword [ebp - 0x8c], eax
add ecx, ecx
lea eax, [ebp - 0xf4]
mov dword [eax + edx], ecx
add edx, 0xc
cmp edx, 0x3c
jbe 0x402340
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0xa0], edi
mov ecx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x60]
add ecx, eax
cmp dword [ebp - 0x68], 0x10000
je 0x4023b7
cmp ecx, 1
ja 0x40276a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0xa0], 0
mov ecx, dword [eax + 0x18]
cmp dword [eax + ecx*4 + 0x2c], 0
jbe 0x40251b
mov ebx, dword [ebp - 0x68]
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
xor edx, edx
movzx ecx, byte [esi + ecx]
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x402504
mov edi, dword [ebp + ecx*4 - 0x100]
mov dword [ebp - 0x6c], ecx
lea eax, [edi + 1]
mov dword [ebp + ecx*4 - 0x100], eax
nop dword [eax]
mov eax, dword [ebp - 0x6c]
mov ecx, edi
and ecx, 1
shr edi, 1
add edx, edx
dec eax
or edx, ecx
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x402410
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xa
ja 0x402483
mov eax, ecx
shl eax, 9
or eax, esi
movzx eax, ax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x88], eax
cmp edx, 0x400
jae 0x402501
mov edi, 1
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x68]
shl edi, cl
mov ecx, dword [ebp - 0x54]
nop word [eax + eax]
mov word [ecx + edx*2], ax
add edx, edi
cmp edx, 0x400
jb 0x402470
jmp 0x402501
mov edi, dword [ebp - 0x54]
mov eax, edx
and eax, 0x3ff
lea edi, [edi + eax*2]
movsx eax, word [edi]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x4024a4
mov word [edi], bx
mov edi, ebx
sub ebx, 2
jmp 0x4024a7
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x88]
shr edx, 9
mov dword [ebp - 0x88], eax
cmp ecx, 0xb
jbe 0x4024f2
add ecx, 0xfffffff5
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x6c], ecx
shr edx, 1
mov eax, edx
and eax, 1
sub eax, edi
mov edi, dword [ebp - 0x78]
movzx ecx, word [edi + eax*2 - 2]
test cx, cx
jne 0x4024e9
mov word [edi + eax*2 - 2], bx
mov edi, ebx
sub ebx, 2
jmp 0x4024ec
movsx edi, cx
sub dword [ebp - 0x6c], 1
jne 0x4024c7
mov eax, dword [ebp - 0x78]
shr edx, 1
and edx, 1
sub edx, edi
mov word [eax + edx*2 - 2], si
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x18]
inc esi
cmp esi, dword [eax + ecx*4 + 0x2c]
jb 0x4023e2
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
cmp ecx, 2
jne 0x4018ff
xor ebx, ebx
jmp 0x40176b
jne 0x402535
test ebx, ebx
je case.0x4015c3.17
movsx ecx, byte [eax + 0x42e6f8]
mov dword [ebp - 0x80], ecx
cmp esi, ecx
jae 0x401716
jmp case.0x4015c3.18
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x10
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x17
jmp 0x402868
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 2
mov dword [eax], 0x18
jmp 0x4028a6
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 3
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 5
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 6
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 7
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x33
jmp 0x402868
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 2
mov dword [eax], 0x34
jmp 0x4028a6
test byte [ebp + 0x18], 2
mov eax, 1
mov edx, dword [ebp - 0x4c]
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x26
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0xb
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0xe
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x1a
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x1b
jmp 0x402868
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 2
mov dword [eax], 0x35
jmp 0x4028a6
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x19
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x12
jmp 0x402868
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0x27
jmp 0x4028a6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0xa
jmp 0x4028a6
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0x23
jmp 0x4028a6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0x11
jmp 0x4028a6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0x15
jmp 0x4028a6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0xffffffff
mov dword [eax], 0x25
jmp 0x4028a6
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x20
jmp 0x402868
cmp edi, dword [ebp - 0x64]
jae 0x40284e
movzx eax, byte [edi]
inc edi
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
mov eax, dword [ecx + 0x10]
shl eax, 8
or eax, dword [ebp - 0x78]
inc ebx
mov dword [ecx + 0x10], eax
cmp ebx, 4
jae case.0x4015c3.34
test esi, esi
je case.0x4015c3.42
cmp esi, 8
jae 0x402827
nop
cmp edi, dword [ebp - 0x64]
jae 0x402832
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
inc edi
or edx, eax
cmp esi, 8
jb case.0x4015c3.41
movzx eax, dl
shr edx, 8
sub esi, 8
jmp 0x4027e9
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x29
jmp 0x402868
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x2a
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x78], ecx
cmp ecx, 1
je case.default.0x4015c3
cmp dword [ebp - 0x78], 0xfffffffc
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], ecx
je case.default.0x4015c3
jmp 0x4028a6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0
mov dword [eax], 0x22
mov ecx, dword [ebp - 0x90]
cmp edi, ecx
jbe case.default.0x4015c3
cmp esi, 8
jb case.default.0x4015c3
dec edi
sub esi, 8
cmp edi, ecx
ja 0x4028b0
jmp case.default.0x4015c3
mov eax, dword [ebp - 0x48]
sub edi, dword [ebp - 0x90]
mov ecx, esi
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x94]
shl esi, cl
mov ecx, dword [ebp - 0x70]
not esi
mov dword [eax + 0x20], ecx
and esi, edx
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x98]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0xa4]
mov dword [eax + 0x24], ebx
mov ebx, dword [ebp - 0x50]
mov dword [eax + 0x38], esi
mov dword [ecx], edi
mov ecx, dword [ebp - 0x58]
sub ecx, dword [ebp - 0x74]
test byte [ebp + 0x18], 9
mov dword [ebp - 0x58], ecx
mov dword [edx], ecx
je 0x402ac2
test ebx, ebx
js 0x402ac2
mov edi, dword [eax + 0x1c]
mov eax, 0x5e6ea9af
mul ecx
movzx esi, di
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ecx
shr edi, 0x10
mov dword [ebp - 0x6c], edi
sub edx, eax
mov dword [ebp - 0x7c], edx
test ecx, ecx
je 0x402aa1
mov ebx, edx
nop dword [eax]
xor edx, edx
mov dword [ebp - 0x94], edx
cmp ebx, 7
jbe 0x4029e6
mov eax, 7
sub eax, dword [ebp - 0x74]
mov dword [ebp - 0x98], eax
mov ecx, eax
mov eax, dword [ebp - 0x74]
add edx, 8
movzx eax, byte [eax]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 1]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 2]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 3]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 4]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 5]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 6]
add esi, eax
mov eax, dword [ebp - 0x74]
add edi, esi
movzx eax, byte [eax + 7]
add esi, eax
mov eax, dword [ebp - 0x74]
add eax, 8
add edi, esi
mov dword [ebp - 0x74], eax
add eax, ecx
cmp eax, ebx
jb 0x402971
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp edx, eax
jae 0x402a63
sub eax, edx
cmp eax, 2
jb 0x402a4e
mov edx, dword [ebp - 0x7c]
mov ecx, ebx
mov eax, dword [ebp - 0x94]
sub edx, eax
mov edi, dword [ebp - 0x74]
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 0x98], eax
nop dword [eax + eax]
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebx, esi
add edi, 2
add esi, eax
add ecx, esi
sub edx, 1
jne 0x402a20
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x7c]
jae 0x402a5c
mov edx, dword [ebp - 0x74]
movzx eax, byte [edx]
add esi, eax
add edi, esi
inc edx
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x54]
add eax, ebx
add edi, eax
mov eax, 0x80078071
mov ebx, 0x15b0
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x7c], ebx
jne 0x402950
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
shl edi, 0x10
lea ecx, [edi + esi]
mov dword [eax + 0x1c], ecx
test ebx, ebx
jne 0x402ac2
test byte [ebp + 0x18], 1
je 0x402ac2
cmp ecx, dword [eax + 0x10]
mov edx, 0xfffffffe
cmovne ebx, edx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040719f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xa4]
mov eax, 0xfffffffd
mov dword [esi], 0
pop edi
pop esi
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040719f
mov esp, ebp
pop ebp
ret