Function at 0x40a520
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x46a040]
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 - 0xe4], eax
mov eax, dword [eax]
push edi
add eax, edx
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0x8c], ecx
mov edi, edx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x9c], ebx
test ebx, ebx
je 0x40a590
mov edx, dword [esi]
add edx, ebx
mov dword [ebp - 0xd8], edx
jmp 0x40a59a
mov dword [ebp - 0xd8], 0
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [ebp - 0xc4], eax
je 0x40a5be
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0x98], 0
jmp 0x40a5dc
mov eax, dword [esi]
sub eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x98], eax
lea edx, [eax - 1]
mov dword [ebp - 0xcc], edx
test eax, edx
jne 0x40c0d0
lea esp, [esp]
cmp ebx, dword [ebp + 0xc]
jb 0x40c0d0
lea eax, [ecx + 0x1840]
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0xf4], eax
lea eax, [ecx + 0x1cc0]
mov dword [ebp - 0xf0], eax
lea eax, [ecx + 0x1d40]
mov dword [ebp - 0xec], eax
lea eax, [ecx + 0x1d8c]
mov dword [ebp - 0x100], eax
lea eax, [ecx + 0x1eac]
mov dword [ebp - 0xfc], eax
lea eax, [ecx + 0x1ecc]
mov dword [ebp - 0xf8], 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 - 0xb0], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc0], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xbc], ebx
cmp ecx, 0x35
ja case.default.0x40a680
movzx eax, byte [ecx + 0x40c180]
nop
jmp dword [eax*4 + 0x40c0fc]
mov eax, dword [ebp - 0x8c]
xor ebx, ebx
mov ecx, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xbc], ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x90], edx
mov dword [eax + 0x1c], 1
mov dword [eax + 0x10], 1
test cl, 1
je 0x40b20b
jmp 0x40a6e2
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp + 0x18]
cmp edi, dword [ebp - 0xa8]
jb 0x40a70e
test cl, 2
mov dword [ebp - 0xb8], 1
mov ecx, 0xfffffffc
mov dword [eax], 1
cmovne ecx, dword [ebp - 0xb8]
jmp 0x40bda1
mov ecx, dword [ebp - 0x8c]
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
jmp 0x40a723
mov ecx, dword [ebp - 0x8c]
cmp edi, dword [ebp - 0xa8]
jb 0x40a74d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 2
jmp 0x40bda1
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 - 0xb8], 0x1f
div dword [ebp - 0xb8]
mov dword [ebp - 0xa0], edi
test edx, edx
jne 0x40a78b
test bl, 0x20
jne 0x40a78b
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x40a78b
xor ebx, ebx
jmp 0x40a790
mov ebx, 1
cmp dword [ebp - 0xc4], 0
mov dword [ebp - 0xbc], ebx
jne 0x40a7cc
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x40a7bf
cmp dword [ebp - 0x98], eax
jb 0x40a7bf
xor eax, eax
jmp 0x40a7c4
mov eax, 1
or ebx, eax
mov dword [ebp - 0xbc], ebx
test ebx, ebx
je 0x40b205
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 0xffffffff
mov dword [eax], 0x24
jmp 0x40be0d
jmp 0x40a800
cmp edi, dword [ebp - 0xa8]
jae 0x40bc0a
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xd0]
add esi, 8
or edx, eax
mov dword [ebp - 0xa0], edi
cmp esi, ecx
jb case.0x40a680.13
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0xa4], esi
and eax, edx
shr edx, cl
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
movsx eax, byte [edx + 0x465e10]
add ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc8], ecx
cmp edx, 0x10
jne 0x40a879
movzx edx, byte [eax + ebx + 0x1ee2]
jmp 0x40a87b
xor edx, edx
push ecx
add eax, 0x1ee3
push edx
add eax, ebx
push eax
call fcn.00421e90
mov eax, dword [ebp - 0x8c]
add esp, 0xc
add ebx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x90]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
add eax, ecx
mov dword [ebp - 0xbc], ebx
cmp ebx, eax
jae 0x40aa45
cmp esi, 0xf
jae 0x40a9a0
mov eax, dword [ebp - 0xa8]
sub eax, edi
cmp eax, 2
jge 0x40a976
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [ebp - 0x98], eax
test eax, eax
js 0x40a8ff
sar eax, 9
test eax, eax
je case.0x40a680.11
cmp esi, eax
jae 0x40a9a6
jmp case.0x40a680.11
nop
cmp esi, 0xa
jbe case.0x40a680.11
mov ecx, 0xa
mov dword [ebp - 0xa4], ecx
inc dword [ebp - 0xa4]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x98]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x8c]
movsx eax, word [ecx + eax*2 + 0x1d40]
mov dword [ebp - 0x98], eax
test eax, eax
jns 0x40a9a6
mov ecx, dword [ebp - 0xa4]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40a910
cmp edi, dword [ebp - 0xa8]
jae 0x40b9f4
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 0xf
jb 0x40a8cf
jmp 0x40a9a0
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 - 0xa0], edi
or dword [ebp - 0x90], edx
add esi, 0x10
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [ebp - 0xb0], eax
test eax, eax
js 0x40a9d1
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0xb0], eax
jmp 0x40aa12
mov edi, dword [ebp - 0x8c]
mov ecx, 0xa
mov ebx, dword [ebp - 0xb0]
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 0x40a9e2
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], ebx
mov ebx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb0]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xa4], esi
cmp eax, 0x10
jae 0x40b9d0
mov eax, dword ds:[ebp - 0x8c]
mov ecx, dword [ebp - 0xb0]
mov byte [eax + ebx + 0x1ee3], cl
inc ebx
jmp 0x40a89f
jne case.0x40a680.14
push ecx
mov ecx, dword [ebp - 0x8c]
lea eax, [ecx + 0x1ee3]
push eax
lea eax, [ecx + 0x1d8c]
push eax
call fcn.00421ff0
mov ecx, dword [ebp - 0x8c]
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.00421ff0
mov eax, dword [ebp - 0x8c]
add esp, 0x18
dec dword [eax + 0x18]
mov edx, dword [ebp - 0x90]
mov eax, dword ds:[eax + 0x18]
test eax, eax
jns 0x40b6f9
mov ecx, dword [ebp - 0x9c]
mov eax, dword ds:[ebp - 0xa8]
sub eax, edi
mov dword [ebp - 0xb8], eax
cmp eax, 4
jl 0x40ac54
mov eax, dword [ebp - 0xd8]
sub eax, ecx
cmp eax, 2
jl 0x40ac4e
cmp esi, 0xf
jae 0x40ab07
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0xa0], edi
shl edx, cl
or dword [ebp - 0x90], edx
add esi, 0x10
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ecx + eax*2 + 0x40]
test ebx, ebx
js 0x40ab24
mov ecx, ebx
sar ecx, 9
jmp 0x40ab5a
mov ecx, 0xa
mov dword [ebp - 0x98], ecx
nop
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [ebp - 0x8c]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x98]
inc ecx
mov dword [ebp - 0x98], ecx
test ebx, ebx
js 0x40ab30
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
test ebx, 0x100
jne 0x40add0
cmp esi, 0xf
jae 0x40ab9d
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0xa0], edi
shl edx, cl
or dword [ebp - 0x90], edx
add esi, 0x10
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x40abc2
mov ecx, eax
sar ecx, 9
jmp 0x40ac06
mov ecx, 0xa
mov dword [ebp - 0x98], ecx
lea ecx, [ecx]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xa4]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x8c]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x98]
inc ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x98], ecx
test eax, eax
js 0x40abd0
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], edx
lea eax, [ecx + 1]
mov byte [ecx], bl
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x98]
test eax, 0x100
jne 0x40adc8
mov byte [ecx], al
mov ecx, dword [ebp - 0x9c]
add ecx, 2
mov dword [ebp - 0x9c], ecx
jmp 0x40aaae
mov eax, dword [ebp - 0xb8]
cmp esi, 0xf
jae 0x40ad38
lea ecx, [ecx]
cmp eax, 2
jge 0x40ad0e
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [ebp - 0x98], eax
test eax, eax
js 0x40ac96
sar eax, 9
test eax, eax
je case.0x40a680.15
cmp esi, eax
jae 0x40ad38
jmp case.0x40a680.15
cmp esi, 0xa
jbe case.0x40a680.15
mov ecx, 0xa
mov dword [ebp - 0xc4], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x98]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x8c]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0xc4]
inc ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xc4], ecx
test eax, eax
jns 0x40ad38
lea eax, ds:[ecx + 1]
cmp esi, eax
jae 0x40aca6
cmp edi, dword [ebp - 0xa8]
jae 0x40ba16
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 0xf
jb 0x40ac69
jmp 0x40ad38
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 - 0xa0], edi
or dword [ebp - 0x90], edx
add esi, 0x10
mov edx, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ebx + eax*2 + 0x40]
test ebx, ebx
js 0x40ad5b
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x40ad90
mov ecx, 0xa
mov dword [ebp - 0x98], ecx
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [ebp - 0x8c]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0x98]
inc ecx
mov dword [ebp - 0x98], ecx
test ebx, ebx
js 0x40ad66
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
cmp ebx, 0x100
jae 0x40add0
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0xd8]
jae 0x40ba38
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x9c], ecx
jmp 0x40aaae
mov dword [ebp - 0x9c], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [ebp - 0xbc], ebx
cmp ebx, 0x100
je 0x40b185
movzx ecx, byte [ebx + 0x464da7]
movzx ebx, word [ebx*2 + 0x464b86]
mov dword [ebp - 0xd0], ecx
test ecx, ecx
je 0x40ae48
cmp esi, ecx
jae 0x40ae32
cmp edi, dword [ebp - 0xa8]
jae 0x40bbe8
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xd0]
add esi, 8
or edx, eax
mov dword [ebp - 0xa0], edi
cmp esi, ecx
jb case.0x40a680.17
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
mov dword [ebp - 0x90], edx
add ebx, eax
cmp esi, 0xf
jae 0x40af40
mov eax, dword ds:[ebp - 0xa8]
sub eax, edi
cmp eax, 2
jge 0x40af16
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [ebp - 0x98], eax
test eax, eax
js 0x40ae99
sar eax, 9
test eax, eax
je case.0x40a680.18
cmp esi, eax
jae 0x40af46
jmp case.0x40a680.18
cmp esi, 0xa
jbe case.0x40a680.18
mov ecx, 0xa
mov dword [ebp - 0xa4], ecx
lea esp, [esp]
inc dword [ebp - 0xa4]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x98]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x8c]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov dword [ebp - 0x98], eax
test eax, eax
jns 0x40af46
mov ecx, dword [ebp - 0xa4]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40aeb0
cmp edi, dword [ebp - 0xa8]
jae 0x40bb89
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 0xf
jb 0x40ae69
jmp 0x40af40
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 - 0xa0], edi
or dword [ebp - 0x90], edx
add esi, 0x10
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [ebp - 0x98], eax
test eax, eax
js 0x40af6b
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x40afac
mov ecx, 0xa
mov dword [ebp - 0xc4], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x98]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x8c]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov ecx, dword [ebp - 0xc4]
inc ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xc4], ecx
test eax, eax
js 0x40af76
shr edx, cl
sub esi, ecx
movzx ecx, byte [eax + 0x464e08]
movzx eax, word [eax*2 + 0x464dc8]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xb0], eax
test ecx, ecx
je 0x40b023
cmp esi, ecx
jae 0x40b009
lea esp, [esp]
cmp edi, dword [ebp - 0xa8]
jae 0x40bbab
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xd0]
add esi, 8
or edx, eax
mov dword [ebp - 0xa0], edi
cmp esi, ecx
jb case.0x40a680.19
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0xb0], eax
mov dword [ebp - 0x90], edx
mov ecx, dword [ebp - 0x9c]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc0], ecx
test eax, eax
je 0x40b048
lea esp, [esp]
cmp eax, ecx
ja 0x40b048
test ecx, ecx
jne 0x40b052
test byte [ebp + 0x18], 4
jne case.0x40a680.24
sub ecx, eax
and ecx, dword [ebp - 0xcc]
add ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x9c], ecx
mov eax, ecx
mov dword [ebp - 0xb8], ecx
cmova eax, dword [ebp - 0x9c]
add eax, ebx
cmp eax, dword [ebp - 0xd8]
jbe 0x40b0db
mov ecx, dword [ebp - 0x9c]
mov eax, ebx
dec ebx
test eax, eax
je 0x40aaae
jmp 0x40b095
mov ecx, dword [ebp - 0x9c]
jmp 0x40b0a0
cmp ecx, dword [ebp - 0xd8]
jae 0x40bbcd
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xb0]
and eax, dword [ebp - 0xcc]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x9c]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0xc0]
mov dword [ebp - 0x9c], ecx
jmp 0x40b082
jmp 0x40b0e0
cmp ebx, 2
jbe 0x40b131
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp - 0xb8]
mov eax, edx
mov edx, dword [ebp - 0x9c]
shr eax, 1
inc eax
mov dword [ebp - 0x98], 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 - 0x98], 1
jne 0x40b106
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0x90]
test ebx, ebx
je 0x40aaa8
mov edx, dword [ebp - 0x9c]
mov al, byte [ecx]
mov byte [edx], al
cmp ebx, 1
jbe 0x40b169
mov al, byte [ecx + 1]
mov ecx, edx
mov edx, dword [ebp - 0x90]
mov byte [ecx + 1], al
add ecx, ebx
mov dword [ebp - 0x9c], ecx
jmp 0x40aaae
mov ecx, dword ds:[ebp - 0x9c]
mov edx, dword [ebp - 0x90]
add ecx, ebx
mov dword [ebp - 0x9c], ecx
jmp 0x40aaae
mov eax, dword [ebp - 0x8c]
test byte [eax + 0x14], 1
je 0x40b20b
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b1c4
mov edi, edi
cmp edi, dword [ebp - 0xa8]
jae 0x40bcda
movzx eax, byte ds:[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.0x40a680.20
mov eax, dword [ebp - 0xd4]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
cmp edi, eax
jbe 0x40b1e4
cmp esi, 8
jb 0x40b1e4
dec edi
sub esi, 8
cmp edi, eax
ja 0x40b1d7
mov eax, dword [ebp - 0xe0]
mov ecx, esi
shl eax, cl
not eax
and edx, eax
test byte [ebp + 0x18], 1
je case.0x40a680.21
xor ebx, ebx
jmp 0x40bd2c
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
cmp esi, 3
jae 0x40b24b
jmp 0x40b220
cmp edi, dword [ebp - 0xa8]
jae 0x40ba53
movzx eax, byte ds:[edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 3
jb case.0x40a680.3
mov eax, dword [ebp - 0x8c]
mov ecx, edx
sub esi, 3
and ecx, 7
shr edx, 3
mov dword [eax + 0x14], ecx
shr ecx, 1
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xa4], esi
mov dword [eax + 0x18], ecx
jne 0x40b4d6
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b2a8
lea esp, [esp]
cmp edi, dword [ebp - 0xa8]
jae 0x40ba75
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
mov dword [ebp - 0xa0], edi
and eax, 7
cmp esi, eax
jb case.0x40a680.4
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
xor ebx, ebx
lea esp, [esp]
cmp ebx, 4
jae 0x40b337
test esi, esi
je case.0x40a680.6
cmp esi, 8
jae 0x40b2f6
cmp edi, dword [ebp - 0xa8]
jae 0x40ba97
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 8
jb case.0x40a680.5
mov eax, dword [ebp - 0x8c]
sub esi, 8
mov byte [eax + ebx + 0x1edf], dl
shr edx, 8
inc ebx
mov dword [ebp - 0x90], edx
jmp 0x40b2b9
cmp edi, dword [ebp - 0xa8]
jae 0x40bab9
mov ecx, dword [ebp - 0x8c]
mov al, byte [edi]
inc edi
mov dword [ebp - 0xa0], edi
mov byte [ecx + ebx + 0x1edf], al
inc ebx
jmp 0x40b2b9
mov ecx, dword [ebp - 0x8c]
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 - 0x8c]
mov dword [ebp - 0xbc], ebx
movzx eax, byte [eax + 0x1ee1]
or ecx, eax
xor ecx, 0xffff
cmp ebx, ecx
jne case.0x40a680.26
mov ecx, dword [ebp - 0x9c]
test ebx, ebx
je 0x40b40d
test esi, esi
je 0x40b41e
cmp esi, 8
jae 0x40b3c5
jmp 0x40b3a0
cmp edi, dword [ebp - 0xa8]
jae 0x40badb
movzx eax, byte ds:[edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 8
jb case.0x40a680.29
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x90], edx
jmp 0x40b3e2
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0xd8]
jae 0x40bafd
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xbc], ebx
jmp 0x40b383
test ebx, ebx
jne 0x40b41e
mov edx, dword [ebp - 0x90]
jmp 0x40b185
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xd8]
cmp ecx, edx
jb 0x40b44f
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], 2
mov dword [eax], 9
jmp 0x40be0d
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xa8]
cmp edi, eax
jae 0x40bb18
sub eax, edi
mov ecx, edx
mov edx, dword [ebp - 0x9c]
sub ecx, edx
mov dword [ebp - 0xa4], eax
mov eax, ecx
cmp ecx, dword [ebp - 0xa4]
lfence
cmovae eax, dword [ebp - 0xa4]
cmp eax, ebx
jae 0x40b49a
cmp ecx, dword [ebp - 0xa4]
cmovae ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x98], ecx
jmp 0x40b4a2
mov ecx, ebx
mov dword [ebp - 0x98], ebx
push ecx
push edi
push edx
call fcn.00421ff0
mov eax, dword [ebp - 0x98]
add esp, 0xc
mov ecx, dword [ebp - 0x9c]
add edi, eax
add ecx, eax
mov dword [ebp - 0xa0], edi
sub ebx, eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xbc], ebx
jmp 0x40b409
cmp ecx, 3
je 0x40bcab
nop
cmp ecx, 1
jne 0x40b5af
mov dword [eax + 0x2c], 0x120
lea edi, [eax + 0x1d8c]
mov dword [eax + 0x30], 0x20
mov dword [eax + 0x1eac], 0x5050505
mov dword [eax + 0x1eb0], 0x5050505
mov dword [eax + 0x1eb4], 0x5050505
mov dword [eax + 0x1eb8], 0x5050505
mov dword [eax + 0x1ebc], 0x5050505
push 0x90
mov dword [eax + 0x1ec0], 0x5050505
push 8
mov dword [eax + 0x1ec4], 0x5050505
push edi
mov dword [eax + 0x1ec8], 0x5050505
call fcn.00421e90
push 0x70
add edi, 0x90
push 9
push edi
call fcn.00421e90
mov eax, 0x18
add edi, 0x70
push eax
push 7
push edi
call fcn.00421e90
mov eax, 0x18
add esp, 0x24
mov dword [edi + eax], 0x8080808
mov dword [edi + eax + 4], 0x8080808
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x8c]
jmp 0x40aa91
xor ebx, ebx
cmp ebx, 3
jae 0x40b64c
movsx eax, byte [ebx + 0x465e1c]
cmp esi, eax
jae 0x40b5f5
cmp edi, dword [ebp - 0xa8]
jae 0x40bb45
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0xa0], edi
movsx eax, byte [ebx + 0x465e1c]
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, eax
jb case.0x40a680.9
mov cl, byte [ebx + 0x465e1c]
mov edx, 1
mov eax, dword [ebp - 0x90]
shl edx, cl
mov ecx, dword [ebp - 0x8c]
dec edx
and edx, eax
mov dword [ecx + ebx*4 + 0x2c], edx
movsx ecx, byte [ebx + 0x465e1c]
shr eax, cl
sub esi, ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
movzx eax, word [ebx*2 + 0x46497c]
add eax, edx
mov dword [ebp - 0xa4], esi
mov edx, dword [ebp - 0x90]
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40b5b1
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
xor ebx, ebx
mov dword [eax + 0x1ecc], ecx
mov dword [eax + 0x1ed0], ecx
mov dword [eax + 0x1ed4], ecx
mov dword [eax + 0x1ed8], ecx
mov word [eax + 0x1edc], cx
mov byte [eax + 0x1ede], cl
mov dword [ebp - 0xbc], ebx
cmp ebx, dword [eax + 0x34]
jae 0x40b6ed
cmp esi, 3
jae 0x40b6b3
cmp edi, dword [ebp - 0xa8]
jae 0x40bb67
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xa0], edi
or edx, eax
cmp esi, 3
jb case.0x40a680.10
movzx eax, byte [ebx + 0x4645e0]
mov ecx, edx
mov edi, dword [ebp - 0x8c]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 0x90], edx
inc ebx
mov dword [ebp - 0xa4], esi
mov byte [eax + edi + 0x1ecc], cl
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x8c]
jmp 0x40b67b
mov dword [eax + 0x34], 0x13
jmp 0x40aa97
mov ecx, dword [ebp - 0x8c]
shl eax, 0xb
add eax, 0x40
add eax, ecx
mov dword [ebp - 0x98], eax
mov eax, dword [ecx + 0x18]
push 0x40
push 0
mov ecx, dword [ebp + eax*4 - 0xf4]
mov eax, dword [ebp + eax*4 - 0x100]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0xb8], ecx
call fcn.00421e90
push 0x800
push 0
push dword [ebp - 0x98]
call fcn.00421e90
mov ecx, dword [ebp - 0x8c]
add esp, 0x18
call fcn.0040a4c0
mov ecx, dword [ebp - 0x8c]
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x40b786
lea ecx, [ecx]
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax + edx]
inc edx
inc dword [ebp + eax*4 - 0x88]
cmp edx, ecx
jb 0x40b770
xor edi, edi
mov edx, 4
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc4], ecx
mov eax, dword ds:[ebp + edx - 0x88]
add ecx, eax
add ecx, ecx
add edi, eax
mov eax, dword [ebp + edx - 0x84]
add dword [ebp - 0xc4], eax
mov dword [ebp + edx - 0x44], ecx
add ecx, eax
mov eax, dword [ebp + edx - 0x80]
add ecx, ecx
add dword [ebp - 0xc8], eax
mov dword [ebp + edx - 0x40], ecx
add ecx, eax
add ecx, ecx
mov dword [ebp + edx - 0x3c], ecx
add edx, 0xc
cmp edx, 0x3c
jbe 0x40b7a1
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xe8], edi
mov ecx, dword [ebp - 0xe8]
mov edi, dword [ebp - 0xa0]
add ecx, eax
cmp dword [ebp - 0xac], 0x10000
je 0x40b829
jmp 0x40b820
cmp ecx, 1
ja 0x40bc47
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0xc8], 0
mov ecx, dword [eax + 0x18]
cmp dword [eax + ecx*4 + 0x2c], 0
jbe 0x40b9bd
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0x94]
lea ecx, [ecx]
mov ecx, dword [ebp - 0xc8]
xor edx, edx
movzx ecx, byte [ebx + ecx]
mov dword [ebp - 0xac], ecx
test ecx, ecx
je 0x40b991
mov edi, dword [ebp + ecx*4 - 0x48]
mov ebx, ecx
lea eax, [edi + 1]
mov dword [ebp + ecx*4 - 0x48], eax
mov ecx, edi
add edx, edx
and ecx, 1
shr edi, 1
or edx, ecx
sub ebx, 1
jne 0x40b887
mov ecx, dword ds:[ebp - 0xac]
cmp ecx, 0xa
ja 0x40b8f3
mov edi, dword ds:[ebp - 0xcc]
mov eax, ecx
shl eax, 9
or eax, dword [ebp - 0xc8]
movzx ebx, ax
mov dword [ebp - 0xcc], edi
cmp edx, 0x400
jae 0x40b985
mov eax, 1
mov dword [ebp - 0xcc], edi
shl eax, cl
mov ecx, dword [ebp - 0x98]
nop
mov word [ecx + edx*2], bx
add edx, eax
cmp edx, 0x400
jb 0x40b8e0
jmp 0x40b985
mov ebx, dword [ebp - 0x98]
mov eax, edx
and eax, 0x3ff
lea edi, [ebx + eax*2]
movsx eax, word [edi]
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x40b91a
mov word [edi], si
mov edi, esi
sub esi, 2
jmp 0x40b920
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xcc]
shr edx, 9
mov dword [ebp - 0xcc], eax
cmp ecx, 0xb
jbe 0x40b96d
lea ebx, [ecx - 0xb]
mov dword [ebp - 0xcc], eax
lea ecx, [ecx]
shr edx, 1
mov eax, edx
and eax, 1
sub eax, edi
mov edi, dword [ebp - 0xb8]
movzx ecx, word [edi + eax*2 - 2]
test cx, cx
jne 0x40b965
mov word [edi + eax*2 - 2], si
mov edi, esi
sub esi, 2
jmp 0x40b968
movsx edi, cx
sub ebx, 1
jne 0x40b940
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xc8]
shr edx, 1
and edx, 1
sub edx, edi
mov word [ecx + edx*2 - 2], ax
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x94]
mov edx, dword [ebp - 0xc8]
mov ecx, dword [eax + 0x18]
inc edx
mov dword [ebp - 0xc8], edx
cmp edx, dword [eax + ecx*4 + 0x2c]
jb 0x40b860
mov esi, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xa0]
lea ecx, [ecx]
cmp ecx, 2
jne 0x40aa8e
xor ebx, ebx
jmp 0x40a899
jne 0x40b9da
test ebx, ebx
je case.0x40a680.12
movsx ecx, byte [eax + str.out_of_memory]
mov dword [ebp - 0xd0], ecx
cmp esi, ecx
jae 0x40a829
jmp case.0x40a680.13
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x10
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x17
jmp 0x40bda1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 2
mov dword [eax], 0x18
jmp 0x40be0d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 3
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 5
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 6
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 7
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x33
jmp 0x40bda1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 2
mov dword [eax], 0x34
jmp 0x40be0d
test byte ds:[ebp + 0x18], 2
mov eax, 1
mov edx, dword [ebp - 0x90]
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x26
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0xb
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0xe
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x1a
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x1b
jmp 0x40bda1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 2
mov dword [eax], 0x35
jmp 0x40be0d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x19
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x12
jmp 0x40bda1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 0xffffffff
mov dword [eax], 0x27
jmp 0x40be0d
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 0xffffffff
mov dword [eax], 0x23
jmp 0x40be0d
mov eax, dword ds:[ebp - 0x8c]
mov dword [ebp - 0x94], 0xffffffff
mov dword [eax], 0x11
jmp 0x40be0d
mov eax, dword ds:[ebp - 0x8c]
mov dword [ebp - 0x94], 0xffffffff
mov dword [eax], 0x15
jmp 0x40be0d
mov eax, dword [ebp - 0x8c]
or ecx, 0xffffffff
mov dword [eax], 0xa
mov dword [ebp - 0x94], ecx
jmp 0x40be0d
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 0xffffffff
mov dword [eax], 0x25
jmp 0x40be0d
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x20
jmp 0x40bda1
lea esp, [esp]
cmp edi, dword [ebp - 0xa8]
jae 0x40bd84
movzx eax, byte [edi]
inc edi
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ecx + 0x10]
shl eax, 8
or eax, dword [ebp - 0xb8]
inc ebx
mov dword [ecx + 0x10], eax
cmp ebx, 4
jae case.0x40a680.21
test esi, esi
je case.0x40a680.28
cmp esi, 8
jae 0x40bd5a
mov edi, edi
cmp edi, dword [ebp - 0xa8]
jae 0x40bd65
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
inc edi
or edx, eax
cmp esi, 8
jb case.0x40a680.27
movzx eax, dl
shr edx, 8
sub esi, 8
jmp 0x40bd10
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x29
jmp 0x40bda1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x2a
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xb8], ecx
cmp ecx, 1
je case.default.0x40a680
cmp dword [ebp - 0xb8], 0xfffffffc
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc0], ecx
je case.default.0x40a680
jmp 0x40be0d
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], 0
mov dword [eax], 0x22
mov ecx, dword [ebp - 0xd4]
cmp edi, ecx
jbe case.default.0x40a680
cmp esi, 8
jb case.default.0x40a680
dec edi
sub esi, 8
cmp edi, ecx
ja 0x40be17
jmp case.default.0x40a680
mov eax, dword [ebp - 0x8c]
sub edi, dword [ebp - 0xd4]
mov ecx, esi
mov dword [eax + 4], esi
mov esi, dword [ebp - 0xe0]
shl esi, cl
mov ecx, dword [ebp - 0xb0]
not esi
mov dword [eax + 0x20], ecx
and esi, edx
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xdc]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0xe4]
mov dword [eax + 0x24], ebx
mov ebx, dword [ebp - 0x94]
mov dword [eax + 0x38], esi
mov dword [ecx], edi
mov ecx, dword [ebp - 0x9c]
sub ecx, dword [ebp - 0xb4]
test byte [ebp + 0x18], 9
mov dword [ebp - 0x9c], ecx
mov dword [edx], ecx
je 0x40c0bb
test ebx, ebx
js 0x40c0bb
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 - 0x98], edi
sub edx, eax
mov dword [ebp - 0xc0], edx
test ecx, ecx
je 0x40c098
mov ebx, edx
xor edx, edx
mov dword [ebp - 0xd4], edx
cmp ebx, 7
jbe 0x40bf9d
mov eax, 7
sub eax, dword [ebp - 0xb4]
mov dword [ebp - 0xdc], eax
mov ecx, eax
lea esp, [esp]
mov eax, dword [ebp - 0xb4]
add edx, 8
movzx eax, byte [eax]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 1]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 2]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 3]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 4]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 5]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 6]
add esi, eax
mov eax, dword [ebp - 0xb4]
add edi, esi
movzx eax, byte [eax + 7]
add esi, eax
mov eax, dword [ebp - 0xb4]
add eax, 8
add edi, esi
mov dword [ebp - 0xb4], eax
add eax, ecx
cmp eax, ebx
jb 0x40bf00
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp - 0xc0]
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 0xd4], eax
jae 0x40c04b
sub eax, dword ds:[ebp - 0xd4]
cmp eax, 2
jb 0x40c033
mov edx, dword [ebp - 0xc0]
mov ecx, ebx
mov eax, dword [ebp - 0xd4]
sub edx, eax
mov edi, dword [ebp - 0xb4]
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 0xdc], eax
mov edi, edi
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 0x40bff0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], edi
mov edi, dword [ebp - 0x98]
cmp eax, dword [ebp - 0xc0]
jae 0x40c046
mov eax, dword [ebp - 0xb4]
movzx eax, byte [eax]
add esi, eax
add edi, esi
inc dword [ebp - 0xb4]
lea eax, [edx + 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 - 0xc0]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xc0], ebx
jne 0x40bed1
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
shl edi, 0x10
add edi, esi
mov dword [eax + 0x1c], edi
test ebx, ebx
jne 0x40c0bb
test byte [ebp + 0x18], 1
je 0x40c0bb
cmp edi, dword [eax + 0x10]
mov ecx, 0xfffffffe
cmovne ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420226
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0xe4]
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.00420226
mov esp, ebp
pop ebp
ret 0x14