Function at 0x40a820
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x46b040]
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 - 0x100], eax
mov eax, dword [eax]
push edi
add eax, edx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xa4], ecx
mov edi, edx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xac], 0xffffffff
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb4], ebx
test ebx, ebx
je 0x40a890
mov edx, dword [esi]
add edx, ebx
mov dword [ebp - 0xe4], edx
jmp 0x40a89a
mov dword [ebp - 0xe4], 0
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [ebp - 0xf8], eax
je 0x40a8be
mov dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 0xb0], 0
jmp 0x40a8dc
mov eax, dword [esi]
sub eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0xb0], eax
lea edx, [eax - 1]
mov dword [ebp - 0xdc], edx
test edx, eax
jne 0x40c42c
lea esp, [esp]
cmp ebx, dword [ebp + 0xc]
jb 0x40c42c
lea eax, ds:[ecx + 0x1840]
mov dword [ebp - 0xf0], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x1cc0]
mov dword [ebp - 0xc], eax
lea eax, [ecx + 0x1d40]
mov dword [ebp - 8], eax
lea eax, [ecx + 0x1d8c]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 0x1eac]
mov dword [ebp - 0x18], eax
lea eax, [ecx + 0x1ecc]
mov dword [ebp - 0x14], 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 - 0xcc], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xb8], ebx
cmp ecx, 0x35
ja case.default.0x40a970
movzx eax, byte [ecx + 0x40c4dc]
jmp dword [eax*4 + 0x40c458]
mov eax, dword ds:[ebp - 0xa4]
xor ebx, ebx
mov ecx, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xb8], ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xa8], edx
mov dword [eax + 0x1c], 1
mov dword [eax + 0x10], 1
test cl, 1
je 0x40b517
jmp 0x40a9d4
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 0x18]
cmp edi, dword [ebp - 0xc0]
jb 0x40aa05
test cl, 2
mov dword [ebp - 0xd4], 1
mov ecx, 0xfffffffc
mov dword [eax], 1
cmovne ecx, dword [ebp - 0xd4]
jmp 0x40c0f1
mov ecx, dword [ebp - 0xa4]
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
jmp 0x40aa1a
mov ecx, dword [ebp - 0xa4]
lea ebx, [ebx]
cmp edi, dword [ebp - 0xc0]
jb 0x40aa4a
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 2
jmp 0x40c0f1
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 - 0xd4], 0x1f
div dword [ebp - 0xd4]
mov dword [ebp - 0xbc], edi
test edx, edx
jne 0x40aa88
test bl, 0x20
jne 0x40aa88
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x40aa88
xor ebx, ebx
jmp 0x40aa8d
mov ebx, 1
cmp dword [ebp - 0xf8], 0
mov dword [ebp - 0xb8], ebx
jne 0x40aac9
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x40aabc
cmp dword [ebp - 0xb0], eax
jb 0x40aabc
xor eax, eax
jmp 0x40aac1
mov eax, 1
or ebx, eax
mov dword [ebp - 0xb8], ebx
test ebx, ebx
je 0x40b511
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0x24
jmp 0x40c160
cmp edi, dword [ebp - 0xc0]
jae 0x40bf57
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xe0]
add esi, 8
or edx, eax
mov dword [ebp - 0xbc], edi
cmp esi, ecx
jb case.0x40a970.18
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0xac], esi
and eax, edx
shr edx, cl
mov dword [ebp - 0xa8], edx
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
movsx eax, byte [edx + 0x466e00]
add ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb8], ecx
cmp edx, 0x10
jne 0x40ab6f
movzx edx, byte [eax + ebx + 0x1ee2]
jmp 0x40ab71
xor edx, edx
push ecx
add eax, 0x1ee3
push edx
add eax, ebx
push eax
call fcn.00422210
mov eax, dword [ebp - 0xa4]
add esp, 0xc
add ebx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
add eax, ecx
mov dword [ebp - 0xb8], ebx
cmp ebx, eax
jae 0x40ad45
cmp esi, 0xf
jae 0x40aca0
mov eax, dword [ebp - 0xc0]
sub eax, edi
cmp eax, 2
jge 0x40ac76
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [ebp - 0xb0], eax
test eax, eax
js 0x40abfa
sar eax, 9
test eax, eax
je case.0x40a970.16
cmp esi, eax
jae 0x40aca6
jmp case.0x40a970.16
cmp esi, 0xa
jbe case.0x40a970.16
mov ecx, 0xa
mov dword [ebp - 0xac], ecx
lea ebx, [ebx]
inc dword [ebp - 0xac]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xb0]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0xa4]
movsx eax, word [ecx + eax*2 + 0x1d40]
mov dword [ebp - 0xb0], eax
test eax, eax
jns 0x40aca6
mov ecx, dword [ebp - 0xac]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40ac10
cmp edi, dword [ebp - 0xc0]
jae 0x40bd45
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 0xf
jb 0x40abca
jmp 0x40aca0
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 - 0xbc], edi
or dword [ebp - 0xa8], edx
add esi, 0x10
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1040]
mov dword [ebp - 0xcc], eax
test eax, eax
js 0x40acd1
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0xcc], eax
jmp 0x40ad12
mov edi, dword [ebp - 0xa4]
mov ecx, 0xa
mov ebx, dword [ebp - 0xcc]
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 0x40ace2
mov edi, dword [ebp - 0xbc]
mov dword [ebp - 0xcc], ebx
mov ebx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xcc]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xac], esi
cmp eax, 0x10
jae 0x40bd19
mov eax, dword ds:[ebp - 0xa4]
mov ecx, dword [ebp - 0xcc]
mov byte [eax + ebx + 0x1ee3], cl
inc ebx
jmp 0x40ab9a
jne case.0x40a970.21
push ecx
mov ecx, dword [ebp - 0xa4]
lea eax, [ecx + 0x1ee3]
push eax
lea eax, [ecx + 0x1d8c]
push eax
call fcn.00423850
mov ecx, dword [ebp - 0xa4]
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.00423850
mov eax, dword [ebp - 0xa4]
add esp, 0x18
dec dword [eax + 0x18]
mov edx, dword [ebp - 0xa8]
mov eax, dword ds:[eax + 0x18]
test eax, eax
jns 0x40ba18
mov ecx, dword [ebp - 0xb4]
mov eax, dword ds:[ebp - 0xc0]
sub eax, edi
mov dword [ebp - 0xd4], eax
cmp eax, 4
jl 0x40af54
mov eax, dword [ebp - 0xe4]
sub eax, ecx
cmp eax, 2
jl 0x40af4e
cmp esi, 0xf
jae 0x40ae07
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0xbc], edi
shl edx, cl
or dword [ebp - 0xa8], edx
add esi, 0x10
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ecx + eax*2 + 0x40]
test ebx, ebx
js 0x40ae24
mov ecx, ebx
sar ecx, 9
jmp 0x40ae5a
mov ecx, 0xa
mov dword [ebp - 0xb0], ecx
nop
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [ebp - 0xa4]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0xb0]
inc ecx
mov dword [ebp - 0xb0], ecx
test ebx, ebx
js 0x40ae30
shr edx, cl
sub esi, ecx
mov dword [ebp - 0xa8], edx
test ebx, 0x100
jne 0x40b0d0
cmp esi, 0xf
jae 0x40ae9d
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
add edi, 2
shl edx, 8
or edx, eax
mov dword [ebp - 0xbc], edi
shl edx, cl
or dword [ebp - 0xa8], edx
add esi, 0x10
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [ebp - 0xb8], eax
test eax, eax
js 0x40aec2
mov ecx, eax
sar ecx, 9
jmp 0x40af06
mov ecx, 0xa
mov dword [ebp - 0xb0], ecx
lea ecx, [ecx]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xb8]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0xa4]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0xb0]
inc ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb0], ecx
test eax, eax
js 0x40aed0
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], edx
lea eax, [ecx + 1]
mov byte [ecx], bl
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb0]
test eax, 0x100
jne 0x40b0c8
mov byte [ecx], al
mov ecx, dword [ebp - 0xb4]
add ecx, 2
mov dword [ebp - 0xb4], ecx
jmp 0x40adae
mov eax, dword [ebp - 0xd4]
cmp esi, 0xf
jae 0x40b038
lea ecx, [ecx]
cmp eax, 2
jge 0x40b00e
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x40]
mov dword [ebp - 0xb0], eax
test eax, eax
js 0x40af96
sar eax, 9
test eax, eax
je case.0x40a970.23
cmp esi, eax
jae 0x40b038
jmp case.0x40a970.23
cmp esi, 0xa
jbe case.0x40a970.23
mov ecx, 0xa
mov dword [ebp - 0xc8], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xb0]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0xa4]
movsx eax, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0xc8]
inc ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc8], ecx
test eax, eax
jns 0x40b038
lea eax, ds:[ecx + 1]
cmp esi, eax
jae 0x40afa6
cmp edi, dword [ebp - 0xc0]
jae 0x40bd67
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 0xf
jb 0x40af69
jmp 0x40b038
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 - 0xbc], edi
or dword [ebp - 0xa8], edx
add esi, 0x10
mov edx, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ebx + eax*2 + 0x40]
test ebx, ebx
js 0x40b05b
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x40b090
mov ecx, 0xa
mov dword [ebp - 0xb0], ecx
mov eax, edx
not ebx
shr eax, cl
mov ecx, dword [ebp - 0xa4]
and eax, 1
add eax, ebx
movsx ebx, word [ecx + eax*2 + 0x1840]
mov ecx, dword [ebp - 0xb0]
inc ecx
mov dword [ebp - 0xb0], ecx
test ebx, ebx
js 0x40b066
shr edx, cl
sub esi, ecx
mov dword [ebp - 0xa8], edx
cmp ebx, 0x100
jae 0x40b0d0
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0xe4]
jae 0x40bd89
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0xb4], ecx
jmp 0x40adae
mov dword [ebp - 0xb4], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [ebp - 0xb8], ebx
cmp ebx, 0x100
je 0x40b48d
movzx ecx, byte [ebx + 0x465db7]
movzx ebx, word [ebx*2 + 0x465b96]
mov dword [ebp - 0xe0], ecx
test ecx, ecx
je 0x40b148
cmp esi, ecx
jae 0x40b132
cmp edi, dword [ebp - 0xc0]
jae 0x40bf35
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xe0]
add esi, 8
or edx, eax
mov dword [ebp - 0xbc], edi
cmp esi, ecx
jb case.0x40a970.25
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
mov dword [ebp - 0xa8], edx
add ebx, eax
cmp esi, 0xf
jae 0x40b255
mov eax, dword ds:[ebp - 0xc0]
sub eax, edi
cmp eax, 2
jge 0x40b22b
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [ebp - 0xb0], eax
test eax, eax
js 0x40b19d
sar eax, 9
test eax, eax
je case.0x40a970.26
cmp esi, eax
jae 0x40b25b
jmp case.0x40a970.26
lea ecx, [ecx]
cmp esi, 0xa
jbe case.0x40a970.26
mov ecx, 0xa
mov dword [ebp - 0xb8], ecx
inc dword ds:[ebp - 0xb8]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xb0]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0xa4]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov dword [ebp - 0xb0], eax
test eax, eax
jns 0x40b25b
mov ecx, dword [ebp - 0xb8]
lea eax, [ecx + 1]
cmp esi, eax
jae 0x40b1b0
jmp 0x40b200
cmp edi, dword [ebp - 0xc0]
jae 0x40bed6
movzx eax, byte ds:[edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 0xf
jb 0x40b169
jmp 0x40b255
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 - 0xbc], edi
or dword [ebp - 0xa8], edx
add esi, 0x10
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x840]
mov dword [ebp - 0xb0], eax
test eax, eax
js 0x40b282
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x40b2c6
mov ecx, 0xa
mov dword [ebp - 0xc8], ecx
lea ecx, [ecx]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xb0]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0xa4]
movsx eax, word [ecx + eax*2 + 0x1cc0]
mov ecx, dword [ebp - 0xc8]
inc ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc8], ecx
test eax, eax
js 0x40b290
shr edx, cl
sub esi, ecx
movzx ecx, byte [eax + 0x465e18]
movzx eax, word [eax*2 + 0x465dd8]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xcc], eax
test ecx, ecx
je 0x40b336
cmp esi, ecx
jae 0x40b31c
cmp edi, dword [ebp - 0xc0]
jae 0x40bef8
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xe0]
add esi, 8
or edx, eax
mov dword [ebp - 0xbc], edi
cmp esi, ecx
jb case.0x40a970.27
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0xcc], eax
mov dword [ebp - 0xa8], edx
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd8], ecx
test eax, eax
je 0x40b357
cmp eax, ecx
ja 0x40b357
test ecx, ecx
jne 0x40b366
test byte ds:[ebp + 0x18], 4
jne case.0x40a970.37
sub ecx, eax
and ecx, dword [ebp - 0xdc]
add ecx, dword [ebp + 0xc]
cmp dword [ebp - 0xb4], ecx
mov eax, ecx
mov dword [ebp - 0xd4], ecx
cmova eax, dword [ebp - 0xb4]
add eax, ebx
cmp eax, dword [ebp - 0xe4]
jbe 0x40b3eb
mov ecx, dword [ebp - 0xb4]
mov eax, ebx
dec ebx
test eax, eax
je 0x40adae
jmp 0x40b3b0
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0xe4]
jae 0x40bf1a
mov eax, dword [ebp - 0xd8]
sub eax, dword [ebp - 0xcc]
and eax, dword [ebp - 0xdc]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0xb4]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0xd8]
mov dword [ebp - 0xb4], ecx
jmp 0x40b39a
cmp ebx, 2
jbe 0x40b43c
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp - 0xd4]
mov eax, edx
mov edx, dword [ebp - 0xb4]
shr eax, 1
inc eax
mov dword [ebp - 0xb0], 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 - 0xb0], 1
jne 0x40b411
mov dword [ebp - 0xb4], edx
mov edx, dword [ebp - 0xa8]
test ebx, ebx
je 0x40ada8
mov edx, dword [ebp - 0xb4]
mov al, byte [ecx]
mov byte [edx], al
cmp ebx, 1
jbe 0x40b474
mov al, byte [ecx + 1]
mov ecx, edx
mov edx, dword [ebp - 0xa8]
mov byte [ecx + 1], al
add ecx, ebx
mov dword [ebp - 0xb4], ecx
jmp 0x40adae
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa8]
add ecx, ebx
mov dword [ebp - 0xb4], ecx
jmp 0x40adae
mov eax, dword [ebp - 0xa4]
test byte [eax + 0x14], 1
je 0x40b517
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b4d2
jmp case.0x40a970.32
cmp edi, dword [ebp - 0xc0]
jae 0x40c025
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.0x40a970.32
mov eax, dword [ebp - 0xec]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
cmp edi, eax
jbe 0x40b4f2
cmp esi, 8
jb 0x40b4f2
dec edi
sub esi, 8
cmp edi, eax
ja 0x40b4e5
mov eax, dword [ebp - 0xf0]
mov ecx, esi
shl eax, cl
not eax
and edx, eax
test byte [ebp + 0x18], 1
je case.0x40a970.34
xor ebx, ebx
jmp 0x40c073
mov eax, dword [ebp - 0xa4]
mov edx, dword ds:[ebp - 0xa8]
cmp esi, 3
jae 0x40b54f
cmp edi, dword [ebp - 0xc0]
jae 0x40bda5
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 3
jb case.0x40a970.3
mov eax, dword [ebp - 0xa4]
mov ecx, edx
sub esi, 3
and ecx, 7
shr edx, 3
mov dword [eax + 0x14], ecx
shr ecx, 1
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xac], esi
mov dword [eax + 0x18], ecx
jne 0x40b7d9
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x40b5a8
lea ecx, [ecx]
cmp edi, dword [ebp - 0xc0]
jae 0x40bdc7
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
mov dword [ebp - 0xbc], edi
and eax, 7
cmp esi, eax
jb case.0x40a970.5
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0xa8], edx
xor ebx, ebx
lea esp, [esp]
cmp ebx, 4
jae 0x40b637
test esi, esi
je case.0x40a970.7
cmp esi, 8
jae 0x40b5f6
cmp edi, dword [ebp - 0xc0]
jae 0x40bde9
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 8
jb case.0x40a970.6
mov eax, dword [ebp - 0xa4]
sub esi, 8
mov byte [eax + ebx + 0x1edf], dl
shr edx, 8
inc ebx
mov dword [ebp - 0xa8], edx
jmp 0x40b5b9
cmp edi, dword [ebp - 0xc0]
jae 0x40be0b
mov ecx, dword [ebp - 0xa4]
mov al, byte [edi]
inc edi
mov dword [ebp - 0xbc], edi
mov byte [ecx + ebx + 0x1edf], al
inc ebx
jmp 0x40b5b9
mov ecx, dword [ebp - 0xa4]
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 - 0xa4]
mov dword [ebp - 0xb8], ebx
movzx eax, byte [eax + 0x1ee1]
or ecx, eax
xor ecx, 0xffff
cmp ebx, ecx
jne case.0x40a970.39
mov ecx, dword [ebp - 0xb4]
test ebx, ebx
je 0x40b70d
test esi, esi
je 0x40b71e
cmp esi, 8
jae 0x40b6c5
jmp 0x40b6a0
cmp edi, dword [ebp - 0xc0]
jae 0x40be2d
movzx eax, byte ds:[edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 8
jb case.0x40a970.51
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xa8], edx
jmp 0x40b6e2
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0xe4]
jae 0x40be4f
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb8], ebx
jmp 0x40b683
test ebx, ebx
jne 0x40b71e
mov edx, dword [ebp - 0xa8]
jmp 0x40b48d
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xe4]
cmp ecx, edx
jb 0x40b755
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], 2
mov dword [eax], 9
jmp 0x40c160
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xe4]
mov eax, dword ds:[ebp - 0xc0]
cmp edi, eax
jae 0x40be6a
sub eax, edi
sub edx, ecx
mov dword [ebp - 0xb8], eax
mov eax, edx
cmp edx, dword [ebp - 0xb8]
lfence
cmovae eax, dword [ebp - 0xb8]
cmp eax, ebx
jae 0x40b79d
cmp edx, dword [ebp - 0xb8]
cmovae edx, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], edx
jmp 0x40b7a5
mov edx, ebx
mov dword [ebp - 0xb0], ebx
push edx
push edi
push ecx
call fcn.00423850
mov eax, dword [ebp - 0xb0]
add esp, 0xc
mov ecx, dword [ebp - 0xb4]
add edi, eax
add ecx, eax
mov dword [ebp - 0xbc], edi
sub ebx, eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb8], ebx
jmp 0x40b709
lea esp, [esp]
cmp ecx, 3
je 0x40bf9a
cmp ecx, 1
jne 0x40b8ba
mov dword ds:[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.00422210
push 0x70
add edi, 0x90
push 9
push edi
call fcn.00422210
mov eax, 0x18
add edi, 0x70
push eax
push 7
push edi
call fcn.00422210
mov eax, 0x18
add esp, 0x24
mov dword [edi + eax], 0x8080808
mov dword [edi + eax + 4], 0x8080808
mov eax, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xbc]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xa4]
jmp 0x40ad91
xor ebx, ebx
lea esp, [esp]
cmp ebx, 3
jae 0x40b967
movsx eax, byte [ebx + 0x466e0c]
cmp esi, eax
jae 0x40b910
jmp 0x40b8e0
cmp edi, dword [ebp - 0xc0]
jae 0x40be92
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0xbc], edi
movsx eax, byte [ebx + 0x466e0c]
add esi, 8
mov dword [ebp - 0xa8], edx
cmp esi, eax
jb case.0x40a970.11
mov cl, byte [ebx + 0x466e0c]
mov edx, 1
mov eax, dword [ebp - 0xa8]
shl edx, cl
mov ecx, dword [ebp - 0xa4]
dec edx
and edx, eax
mov dword [ecx + ebx*4 + 0x2c], edx
movsx ecx, byte [ebx + 0x466e0c]
shr eax, cl
sub esi, ecx
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
movzx eax, word [ebx*2 + 0x46598c]
add eax, edx
mov dword [ebp - 0xac], esi
mov edx, dword [ebp - 0xa8]
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40b8bc
mov eax, dword [ebp - 0xa4]
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 ds:[ebp - 0xb8], ebx
cmp ebx, dword [eax + 0x34]
jae 0x40ba0c
cmp esi, 3
jae 0x40b9d2
cmp edi, dword [ebp - 0xc0]
jae 0x40beb4
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
add esi, 8
mov dword [ebp - 0xbc], edi
or edx, eax
cmp esi, 3
jb case.0x40a970.14
movzx eax, byte [ebx + 0x4655f0]
mov ecx, edx
mov edi, dword [ebp - 0xa4]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 0xa8], edx
inc ebx
mov dword [ebp - 0xac], esi
mov byte [eax + edi + 0x1ecc], cl
mov edi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xa4]
jmp 0x40b996
mov dword [eax + 0x34], 0x13
jmp 0x40ad97
mov ecx, dword [ebp - 0xa4]
shl eax, 0xb
add eax, 0x40
add eax, ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [ecx + 0x18]
push 0x40
push 0
mov ecx, dword [ebp + eax*4 - 0x10]
mov eax, dword [ebp + eax*4 - 0x1c]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xd4], ecx
call fcn.00422210
push 0x800
push 0
push dword [ebp - 0xb0]
call fcn.00422210
mov ecx, dword [ebp - 0xa4]
add esp, 0x18
call fcn.0040a7c0
mov ecx, dword [ebp - 0xa4]
xor edx, edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + eax*4 + 0x2c]
test ecx, ecx
je 0x40baa6
jmp 0x40ba90
mov eax, dword [ebp - 0xf8]
movzx eax, byte [edx + eax]
inc edx
inc dword [ebp + eax*4 - 0xa0]
cmp edx, ecx
jb 0x40ba90
xor edi, edi
lea ebx, [ebp - 0xa0]
xor ecx, ecx
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
mov edx, 4
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xc8], ecx
lea ebx, [ebx]
add ecx, dword [edx + ebx]
lea eax, [ebp - 0x9c]
mov eax, dword [edx + eax]
add ecx, ecx
add dword [ebp - 0xc8], eax
add edi, dword [edx + ebx]
mov dword [edx + esi], ecx
add ecx, eax
add ecx, ecx
lea eax, [ebp - 0x58]
mov dword [edx + eax], ecx
lea eax, [ebp - 0x98]
mov eax, dword [edx + eax]
add ecx, eax
add dword [ebp - 0xe8], eax
add ecx, ecx
lea eax, [ebp - 0x54]
mov dword [eax + edx], ecx
add edx, 0xc
cmp edx, 0x3c
jbe 0x40bad0
mov eax, dword [ebp - 0xe8]
add eax, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb8]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xfc], edi
mov ecx, dword [ebp - 0xfc]
mov edi, dword [ebp - 0xbc]
add ecx, eax
cmp dword [ebp - 0xc4], 0x10000
je 0x40bb5c
cmp ecx, 1
ja 0x40bfaf
mov eax, dword ds:[ebp - 0xa4]
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xfc], 0
mov ecx, dword [eax + 0x18]
cmp dword [eax + ecx*4 + 0x2c], 0
jbe 0x40bd09
mov ebx, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xf8]
xor edx, edx
movzx ecx, byte [esi + ecx]
mov dword [ebp - 0xc4], ecx
test ecx, ecx
je 0x40bce9
mov edi, dword [ebp + ecx*4 - 0x60]
mov dword [ebp - 0xc8], ecx
lea eax, [edi + 1]
mov dword [ebp + ecx*4 - 0x60], eax
lea ecx, [ecx]
mov eax, dword [ebp - 0xc8]
mov ecx, edi
and ecx, 1
shr edi, 1
add edx, edx
dec eax
or edx, ecx
mov dword [ebp - 0xc8], eax
test eax, eax
jne 0x40bbc0
mov ecx, dword [ebp - 0xc4]
cmp ecx, 0xa
ja 0x40bc45
mov eax, ecx
shl eax, 9
or eax, esi
movzx eax, ax
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xdc], eax
cmp edx, 0x400
jae 0x40bce3
mov edi, 1
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xc4]
shl edi, cl
mov ecx, dword [ebp - 0xb0]
lea esp, [esp]
mov word [ecx + edx*2], ax
add edx, edi
cmp edx, 0x400
jb 0x40bc30
mov edi, edi
jmp 0x40bce3
mov edi, dword ds:[ebp - 0xb0]
mov eax, edx
and eax, 0x3ff
lea edi, [edi + eax*2]
movsx eax, word [edi]
mov dword [ebp - 0xc4], eax
test eax, eax
jne 0x40bc6e
mov word [edi], bx
mov edi, ebx
sub ebx, 2
jmp 0x40bc74
mov edi, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xdc]
shr edx, 9
mov dword [ebp - 0xdc], eax
cmp ecx, 0xb
jbe 0x40bcd1
add ecx, 0xfffffff5
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xc8], ecx
jmp 0x40bca0
shr edx, 1
mov eax, edx
and eax, 1
sub eax, edi
mov edi, dword [ebp - 0xd4]
movzx ecx, word [edi + eax*2 - 2]
test cx, cx
jne 0x40bcc5
mov word [edi + eax*2 - 2], bx
mov edi, ebx
sub ebx, 2
jmp 0x40bcc8
movsx edi, cx
sub dword [ebp - 0xc8], 1
jne 0x40bca0
mov eax, dword [ebp - 0xd4]
shr edx, 1
and edx, 1
sub edx, edi
mov word [eax + edx*2 - 2], si
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x18]
inc esi
cmp esi, dword [eax + ecx*4 + 0x2c]
jb 0x40bb92
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xbc]
cmp ecx, 2
jne 0x40ad8e
xor ebx, ebx
jmp 0x40ab94
jne 0x40bd28
jmp 0x40bd20
test ebx, ebx
je case.0x40a970.17
movsx ecx, byte [eax + str.out_of_memory]
mov dword [ebp - 0xe0], ecx
cmp esi, ecx
jae 0x40ab1b
lea ecx, [ecx]
jmp case.0x40a970.18
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x10
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x17
jmp 0x40c0f1
mov eax, dword ds:[ebp - 0xa4]
mov dword [ebp - 0xac], 2
mov dword [eax], 0x18
jmp 0x40c160
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 3
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 5
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 6
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 7
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x33
jmp 0x40c0f1
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 2
mov dword [eax], 0x34
jmp 0x40c160
test byte [ebp + 0x18], 2
mov eax, 1
mov edx, dword [ebp - 0xa8]
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x26
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0xb
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0xe
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x1a
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x1b
jmp 0x40c0f1
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 2
mov dword [eax], 0x35
jmp 0x40c160
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x19
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x12
jmp 0x40c0f1
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0x27
jmp 0x40c160
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0xa
jmp 0x40c160
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0x23
jmp 0x40c160
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0x11
jmp 0x40c160
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0x15
jmp 0x40c160
mov eax, dword ds:[ebp - 0xa4]
mov dword [ebp - 0xac], 0xffffffff
mov dword [eax], 0x25
jmp 0x40c160
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x20
jmp 0x40c0f1
cmp edi, dword [ebp - 0xc0]
jae 0x40c0d4
movzx eax, byte [edi]
inc edi
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ecx + 0x10]
shl eax, 8
or eax, dword [ebp - 0xd4]
inc ebx
mov dword [ecx + 0x10], eax
cmp ebx, 4
jae case.0x40a970.34
lea esp, [esp]
test esi, esi
je case.0x40a970.42
cmp esi, 8
jae 0x40c0aa
lea esp, [esp]
cmp edi, dword [ebp - 0xc0]
jae 0x40c0b5
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
inc edi
or edx, eax
cmp esi, 8
jb case.0x40a970.41
movzx eax, dl
shr edx, 8
sub esi, 8
jmp 0x40c057
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x29
jmp 0x40c0f1
test byte [ebp + 0x18], 2
mov eax, 1
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0x2a
mov dword [ebp - 0xac], ecx
mov dword ds:[ebp - 0xd4], ecx
cmp ecx, 1
je case.default.0x40a970
cmp dword [ebp - 0xd4], 0xfffffffc
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xd8], ecx
je case.default.0x40a970
jmp 0x40c160
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], 0
mov dword [eax], 0x22
mov ecx, dword [ebp - 0xec]
cmp edi, ecx
jbe case.default.0x40a970
lea ebx, [ebx]
cmp esi, 8
jb case.default.0x40a970
dec edi
sub esi, 8
cmp edi, ecx
ja 0x40c170
jmp case.default.0x40a970
mov eax, dword [ebp - 0xa4]
sub edi, dword [ebp - 0xec]
mov ecx, esi
mov dword [eax + 4], esi
mov esi, dword [ebp - 0xf0]
shl esi, cl
mov ecx, dword [ebp - 0xcc]
not esi
mov dword [eax + 0x20], ecx
and esi, edx
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xf4]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0x100]
mov dword [eax + 0x24], ebx
mov ebx, dword [ebp - 0xac]
mov dword [eax + 0x38], esi
mov dword [ecx], edi
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp - 0xd0]
test byte [ebp + 0x18], 9
mov dword [ebp - 0xb4], ecx
mov dword [edx], ecx
je 0x40c417
test ebx, ebx
js 0x40c417
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 - 0xc8], edi
sub edx, eax
mov dword [ebp - 0xd8], edx
test ecx, ecx
je 0x40c3f3
mov ebx, edx
lea ebx, [ebx]
xor edx, edx
mov dword [ebp - 0xf0], edx
cmp ebx, 7
jbe 0x40c2fd
mov eax, 7
sub eax, dword [ebp - 0xd0]
mov dword [ebp - 0xf4], eax
mov ecx, eax
lea esp, [esp]
mov eax, dword [ebp - 0xd0]
add edx, 8
movzx eax, byte [eax]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 1]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 2]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 3]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 4]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 5]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 6]
add esi, eax
mov eax, dword [ebp - 0xd0]
add edi, esi
movzx eax, byte [eax + 7]
add esi, eax
mov eax, dword [ebp - 0xd0]
add eax, 8
add edi, esi
mov dword [ebp - 0xd0], eax
add eax, ecx
cmp eax, ebx
jb 0x40c260
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xc8], edi
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
cmp edx, eax
jae 0x40c3a6
sub eax, edx
cmp eax, 2
jb 0x40c388
mov edx, dword [ebp - 0xd8]
mov ecx, ebx
mov eax, dword [ebp - 0xf0]
sub edx, eax
mov edi, dword [ebp - 0xd0]
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 0xf4], 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 0x40c343
mov eax, dword ds:[ebp - 0xf4]
mov dword [ebp - 0xd0], edi
mov edi, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0xd8]
jae 0x40c39c
mov edx, dword [ebp - 0xd0]
movzx eax, byte [edx]
add esi, eax
add edi, esi
inc edx
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xb0]
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 - 0xd8]
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xd8], ebx
jne 0x40c230
mov ebx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa4]
shl edi, 0x10
lea ecx, [edi + esi]
mov dword [eax + 0x1c], ecx
test ebx, ebx
jne 0x40c417
test byte [ebp + 0x18], 1
je 0x40c417
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.00420701
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x100]
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.00420701
mov esp, ebp
pop ebp
ret 0x14