Function at 0x401560
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4c7008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xe4], eax
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0x94], edx
mov eax, dword [esi]
add eax, edx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xa8], eax
mov ecx, ebx
mov eax, dword [ebp - 0xe4]
push edi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xc0], ebx
mov eax, dword [eax]
mov dword [ebp - 0xa0], ecx
lea edx, [eax + ebx]
mov dword [ebp - 0xd0], edx
mov edx, dword [ebp + 0x18]
and edx, 4
mov dword [ebp - 0xe8], edx
je 0x4015f3
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0x9c], 0
jmp 0x40160f
sub eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x9c], eax
lea edx, [eax - 1]
mov dword [ebp - 0xcc], edx
test eax, edx
jne 0x403071
cmp ebx, dword [ebp + 0xc]
jb 0x403071
mov eax, dword [ebp - 0x8c]
mov ebx, dword [eax + 0x20]
mov edi, dword [eax + 0x28]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 4]
mov dword [ebp - 0xc8], edi
mov edi, dword [eax + 0x3c]
mov dword [ebp - 0xb0], ebx
mov ebx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0xd4], edi
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xbc], ebx
cmp eax, 0x35
ja case.0x401670.32
movzx eax, byte [eax + 0x403120]
mov dword [ebp - 0xac], 1
jmp dword [eax*4 + 0x40309c]
mov ecx, dword [ebp - 0x8c]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xbc], ebx
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x90], edx
mov dword [ecx + 0x1c], 1
mov dword [ecx + 0x10], 1
test al, 1
je 0x40223b
jmp 0x4016d1
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp + 0x18]
mov ebx, edi
cmp ebx, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xbc]
jb 0x401704
test al, 2
mov dword [ebp - 0xb8], 1
mov eax, 0xfffffffc
mov dword [ecx], 1
cmovne eax, dword [ebp - 0xb8]
jmp 0x402d39
movzx eax, byte [edi]
inc edi
mov dword [ecx + 8], eax
mov dword [ebp - 0x94], edi
jmp 0x401719
mov ecx, dword [ebp - 0x8c]
cmp edi, dword [ebp - 0xa8]
jb 0x401746
test byte [ebp + 0x18], 2
mov eax, 0xfffffffc
mov dword [ebp - 0xb8], 1
cmovne eax, dword [ebp - 0xb8]
mov dword [ecx], 2
jmp 0x402d39
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 - 0x94], edi
test edx, edx
jne 0x401784
test bl, 0x20
jne 0x401784
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x401784
xor ebx, ebx
jmp 0x401789
mov ebx, 1
cmp dword [ebp - 0xe8], 0
mov dword [ebp - 0xbc], ebx
jne 0x4017c5
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x4017b8
cmp dword [ebp - 0x9c], eax
jb 0x4017b8
xor eax, eax
jmp 0x4017bd
mov eax, 1
or ebx, eax
mov dword [ebp - 0xbc], ebx
test ebx, ebx
jne case.0x401670.23
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
jmp 0x40223b
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x24
jmp 0x402daf
cmp edi, dword [ebp - 0xa8]
jae 0x402bb6
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xc8]
or edx, eax
add esi, 8
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edx
cmp esi, ecx
jb case.0x401670.13
mov eax, dword [ebp - 0xac]
sub esi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0xd8], esi
and eax, edx
shr edx, cl
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
movsx eax, byte [edx + 0x4231c0]
add ecx, eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], ecx
cmp edx, 0x10
jne 0x40187d
movzx edx, byte [eax + ebx + 0x2923]
add eax, ebx
jmp 0x401881
xor edx, edx
add eax, ebx
push ecx
push edx
add eax, 0x2924
push eax
call fcn.00408090
mov ecx, dword [ebp - 0x8c]
add esp, 0xc
add ebx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0xbc], ebx
mov eax, dword [eax + 0x30]
add eax, ecx
cmp ebx, eax
jae 0x401a6c
cmp esi, 0xf
jae 0x4019c7
mov eax, dword [ebp - 0xa8]
sub eax, edi
cmp eax, 2
jge 0x401997
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1ca0]
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x401909
sar eax, 9
test eax, eax
je case.0x401670.11
cmp esi, eax
jae 0x4019cd
jmp case.0x401670.11
cmp esi, 0xa
jbe case.0x401670.11
mov ecx, 0xa
mov dword [ebp - 0x9c], ecx
nop dword [eax]
mov edi, dword [ebp - 0x8c]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xa4]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x24a0]
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x9c], eax
test ecx, ecx
jns 0x4019c7
mov ecx, dword [ebp - 0x9c]
inc eax
cmp esi, eax
jae 0x401920
cmp edi, dword [ebp - 0xa8]
jae 0x4029b5
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 0xf
jb 0x4018d9
jmp 0x4019c7
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
mov edi, dword [ebp - 0x94]
shl edx, cl
add edi, 2
mov ecx, esi
mov dword [ebp - 0x94], edi
shl eax, cl
or edx, eax
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 + 0x1ca0]
mov dword [ebp - 0xb0], eax
test eax, eax
js 0x4019f8
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0xb0], eax
jmp 0x401a40
mov edi, dword [ebp - 0x8c]
mov ecx, 0xa
mov ebx, dword [ebp - 0xb0]
nop dword [eax]
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x24a0]
test ebx, ebx
js 0x401a10
mov edi, dword [ebp - 0x94]
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 - 0xd8], esi
cmp eax, 0x10
jae 0x402991
mov ecx, dword [ebp - 0x8c]
mov byte [ecx + ebx + 0x2924], al
inc ebx
jmp 0x4018a3
jne case.0x401670.14
push ecx
mov ecx, dword [ebp - 0x8c]
lea eax, [ecx + 0x2924]
push eax
lea eax, [ecx + 0x40]
push eax
call fcn.00407b10
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx + 0x2c]
push dword [ecx + 0x30]
add eax, 0x2924
add eax, ecx
push eax
lea eax, [ecx + 0xde0]
push eax
call fcn.00407b10
mov ecx, dword [ebp - 0x8c]
add esp, 0x18
lea eax, [ecx + 0x18]
dec dword [eax]
mov dword [ebp - 0xc4], eax
mov eax, dword [eax]
test eax, eax
jns 0x4026ad
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa8]
sub eax, edi
mov dword [ebp - 0xb8], eax
cmp eax, 4
jl 0x401c43
mov eax, dword [ebp - 0xd0]
sub eax, ecx
cmp eax, 2
jl 0x401c3d
cmp esi, 0xf
jae 0x401b15
movzx eax, word [edi]
mov ecx, esi
shl eax, cl
add edi, 2
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 0x10
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx ebx, word [ecx + eax*2 + 0x160]
test ebx, ebx
js 0x401b35
mov ecx, ebx
sar ecx, 9
jmp 0x401b64
mov ecx, 0xa
nop word [eax + eax]
mov edi, dword [ebp - 0x8c]
mov eax, edx
shr eax, cl
not ebx
and eax, 1
inc ecx
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x960]
test ebx, ebx
js 0x401b40
mov edi, dword [ebp - 0x94]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
test ebx, 0x100
jne 0x401dd4
cmp esi, 0xf
jae 0x401b94
movzx eax, word [edi]
mov ecx, esi
shl eax, cl
add edi, 2
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 0x10
mov edi, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [edi + eax*2 + 0x160]
mov dword [ebp - 0x9c], eax
test eax, eax
js 0x401bba
mov ecx, eax
sar ecx, 9
jmp 0x401bf5
mov ecx, 0xa
mov dword [ebp - 0xa4], ecx
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x9c]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0xa4]
inc ecx
mov dword [ebp - 0xa4], ecx
movsx eax, word [edi + eax*2 + 0x960]
mov dword [ebp - 0x9c], eax
test eax, eax
js 0x401bc5
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], edx
mov byte [ecx], bl
lea edi, [ecx + 1]
mov dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0x94]
test eax, 0x100
jne 0x401dc6
mov edi, dword [ebp - 0x9c]
add ecx, 2
mov dword [ebp - 0xa0], ecx
mov byte [edi], al
mov edi, dword [ebp - 0x94]
jmp 0x401ad3
mov eax, dword [ebp - 0xb8]
cmp esi, 0xf
jae 0x401d3c
cmp eax, 2
jge 0x401d0c
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x160]
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x401c85
sar eax, 9
test eax, eax
je case.0x401670.15
cmp esi, eax
jae 0x401d3c
jmp case.0x401670.15
cmp esi, 0xa
jbe case.0x401670.15
mov ecx, 0xa
mov dword [ebp - 0x9c], ecx
mov edi, dword [ebp - 0x8c]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xa4]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x960]
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x9c], eax
test ecx, ecx
jns 0x401d3c
mov ecx, dword [ebp - 0x9c]
inc eax
cmp esi, eax
jae 0x401c95
cmp edi, dword [ebp - 0xa8]
jae 0x4029c6
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 0xf
jb 0x401c55
jmp 0x401d3c
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
mov edi, dword [ebp - 0x94]
shl edx, cl
add edi, 2
mov ecx, esi
mov dword [ebp - 0x94], edi
shl eax, cl
or edx, eax
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 + 0x160]
test ebx, ebx
js 0x401d62
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x401d94
mov ecx, 0xa
nop word [eax + eax]
mov edi, dword [ebp - 0x8c]
mov eax, edx
shr eax, cl
not ebx
and eax, 1
inc ecx
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x960]
test ebx, ebx
js 0x401d70
mov edi, dword [ebp - 0x94]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
cmp ebx, 0x100
jae 0x401dd4
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0xd0]
jae 0x4029d7
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0xa0], ecx
jmp 0x401ad3
mov ecx, dword [ebp - 0x9c]
mov ebx, eax
mov dword [ebp - 0xa0], ecx
and ebx, 0x1ff
mov dword [ebp - 0xbc], ebx
cmp ebx, 0x100
je 0x40222b
lea eax, [ebx*4 - 0x404]
mov ecx, dword [eax + 0x4c5578]
mov ebx, dword [eax + 0x4c5690]
mov dword [ebp - 0xc8], ecx
test ecx, ecx
je 0x401e53
cmp esi, ecx
jae 0x401e3c
cmp edi, dword [ebp - 0xa8]
jae 0x402ba5
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xc8]
or edx, eax
add esi, 8
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edx
cmp esi, ecx
jb case.0x401670.17
mov eax, dword [ebp - 0xac]
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 0x401f57
mov eax, dword [ebp - 0xa8]
sub eax, edi
cmp eax, 2
jge 0x401f27
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0xf00]
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x401e9d
sar eax, 9
test eax, eax
je case.0x401670.18
cmp esi, eax
jae 0x401f5d
jmp case.0x401670.18
cmp esi, 0xa
jbe case.0x401670.18
mov ecx, 0xa
mov dword [ebp - 0x9c], ecx
nop dword [eax]
mov edi, dword [ebp - 0x8c]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xa4]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x1700]
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x9c], eax
test ecx, ecx
jns 0x401f57
mov ecx, dword [ebp - 0x9c]
inc eax
cmp esi, eax
jae 0x401eb0
cmp edi, dword [ebp - 0xa8]
jae 0x402b62
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 0xf
jb 0x401e6d
jmp 0x401f57
movzx edx, byte [edi + 1]
lea ecx, [esi + 8]
movzx eax, byte [edi]
mov edi, dword [ebp - 0x94]
shl edx, cl
add edi, 2
mov ecx, esi
mov dword [ebp - 0x94], edi
shl eax, cl
or edx, eax
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 + 0xf00]
mov dword [ebp - 0x9c], eax
test eax, eax
js 0x401f82
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x401fc6
mov ecx, 0xa
mov dword [ebp - 0xa4], ecx
nop dword [eax]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x9c]
and eax, 1
not ecx
add eax, ecx
mov ecx, dword [ebp - 0x8c]
movsx eax, word [ecx + eax*2 + 0x1700]
mov ecx, dword [ebp - 0xa4]
inc ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], ecx
test eax, eax
js 0x401f90
shr edx, cl
sub esi, ecx
mov ecx, dword [eax*4 + 0x4c5610]
mov eax, dword [eax*4 + 0x4c54f8]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xb0], eax
test ecx, ecx
je 0x402042
cmp esi, ecx
jae 0x402021
cmp edi, dword [ebp - 0xa8]
jae 0x402b73
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
mov ecx, dword [ebp - 0xc8]
or edx, eax
add esi, 8
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edx
cmp esi, ecx
jb case.0x401670.19
mov eax, dword [ebp - 0xac]
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x90], edx
mov ecx, dword [ebp - 0xa0]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xd4], ecx
test eax, eax
je 0x402063
cmp eax, ecx
ja 0x402063
test ecx, ecx
jne 0x402070
cmp dword [ebp - 0xe8], 0
jne case.0x401670.24
mov edi, dword [ebp - 0x94]
sub ecx, eax
and ecx, dword [ebp - 0xcc]
add ecx, dword [ebp + 0xc]
cmp dword [ebp - 0xa0], ecx
mov eax, ecx
mov dword [ebp - 0x9c], ecx
cmova eax, dword [ebp - 0xa0]
add eax, ebx
cmp eax, dword [ebp - 0xd0]
jbe 0x4020ec
mov ecx, dword [ebp - 0xa0]
mov eax, ebx
dec ebx
test eax, eax
je 0x401ad3
cmp ecx, dword [ebp - 0xd0]
jae 0x402b84
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xb0]
and eax, dword [ebp - 0xcc]
mov edx, dword [ebp + 0xc]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x90]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0xd4]
mov dword [ebp - 0xa0], ecx
jmp 0x4020a6
cmp ebx, 9
jb 0x402199
cmp ebx, dword [ebp - 0xb0]
ja 0x40219e
mov eax, ebx
and eax, 0xfffffff8
add eax, ecx
mov dword [ebp - 0xb8], eax
nop
mov eax, dword [ecx]
mov edi, dword [ebp - 0xa0]
mov ecx, dword [ecx + 4]
mov dword [edi], eax
mov eax, edi
mov dword [eax + 4], ecx
add eax, 8
mov ecx, dword [ebp - 0x9c]
add ecx, 8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [ebp - 0xb8]
jb 0x402110
mov edi, dword [ebp - 0x94]
and ebx, 7
cmp ebx, 3
jae 0x402199
test ebx, ebx
je 0x401acd
mov edx, dword [ebp - 0xa0]
mov al, byte [ecx]
mov byte [edx], al
mov edx, dword [ebp - 0x90]
cmp ebx, 1
jbe 0x402186
mov al, byte [ecx + 1]
mov ecx, dword [ebp - 0xa0]
mov byte [ecx + 1], al
add ecx, ebx
mov dword [ebp - 0xa0], ecx
jmp 0x401ad3
mov ecx, dword [ebp - 0xa0]
add ecx, ebx
mov dword [ebp - 0xa0], ecx
jmp 0x401ad3
cmp ebx, 2
jbe 0x4021f1
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp - 0x9c]
mov eax, edx
mov edx, dword [ebp - 0xa0]
shr eax, 1
inc eax
mov dword [ebp - 0xa4], eax
nop
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 - 0xa4], 1
jne 0x4021c0
mov dword [ebp - 0xa0], edx
mov edx, dword [ebp - 0x90]
test ebx, ebx
je 0x401acd
mov edi, dword [ebp - 0xa0]
mov al, byte [ecx]
mov byte [edi], al
mov edi, dword [ebp - 0x94]
cmp ebx, 1
jbe 0x402186
mov al, byte [ecx + 1]
mov ecx, dword [ebp - 0xa0]
mov byte [ecx + 1], al
add ecx, ebx
mov dword [ebp - 0xa0], ecx
jmp 0x401ad3
mov ecx, dword [ebp - 0x8c]
test byte [ecx + 0x14], 1
jne 0x402aa1
cmp esi, 3
jae 0x402270
cmp edi, dword [ebp - 0xa8]
jae 0x4029f8
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 3
jb case.0x401670.3
mov ecx, dword [ebp - 0x8c]
mov eax, edx
lea ecx, [ecx + 0x18]
and eax, 7
shr edx, 3
mov dword [ecx - 4], eax
sub esi, 3
shr eax, 1
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xc4], ecx
mov dword [ecx], eax
jne 0x4024cb
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x4022d4
cmp edi, dword [ebp - 0xa8]
jae 0x402a09
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
mov dword [ebp - 0x94], edi
and eax, 7
mov dword [ebp - 0x90], edx
cmp esi, eax
jb case.0x401670.4
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
xor ebx, ebx
cmp ebx, 4
jae 0x40235e
test esi, esi
je case.0x401670.6
cmp esi, 8
jae 0x40231d
cmp edi, dword [ebp - 0xa8]
jae 0x402a1a
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 8
jb case.0x401670.5
mov eax, dword [ebp - 0x8c]
sub esi, 8
mov byte [eax + ebx + 0x2920], dl
shr edx, 8
inc ebx
mov dword [ebp - 0x90], edx
jmp 0x4022e5
mov ecx, dword [ebp - 0x8c]
cmp edi, dword [ebp - 0xa8]
jae 0x402a2b
mov al, byte [edi]
inc edi
mov byte [ecx + ebx + 0x2920], al
inc ebx
mov dword [ebp - 0x94], edi
jmp 0x4022e5
mov ecx, dword [ebp - 0x8c]
movzx ebx, byte [ecx + 0x2921]
movzx eax, byte [ecx + 0x2920]
movzx ecx, byte [ecx + 0x2923]
shl ebx, 8
or ebx, eax
shl ecx, 8
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], ebx
movzx eax, byte [eax + 0x2922]
or ecx, eax
xor ecx, 0xffff
cmp ebx, ecx
jne case.0x401670.26
mov ecx, dword [ebp - 0xa0]
test ebx, ebx
je 0x4024c0
test esi, esi
je case.0x401670.7
cmp esi, 8
jae 0x4023e5
cmp edi, dword [ebp - 0xa8]
jae 0x402a36
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 8
jb case.0x401670.29
mov ecx, dword [ebp - 0xa0]
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x90], edx
jmp 0x402408
mov eax, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0xd0]
jae 0x402a47
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xbc], ebx
jmp 0x4023aa
test ebx, ebx
je 0x4024c0
mov edx, dword [ebp - 0xd0]
cmp ecx, edx
jb 0x40245f
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 9
jmp 0x402daf
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xa8]
cmp edi, eax
jae 0x402a68
sub eax, edi
mov ecx, edx
sub ecx, dword [ebp - 0xa0]
mov edi, ebx
mov edx, dword [ebp - 0x94]
cmp ecx, eax
cmovae ecx, eax
cmp ecx, ebx
cmovb edi, ecx
push edi
push edx
push dword [ebp - 0xa0]
call fcn.00407b10
mov ecx, dword [ebp - 0xa0]
add esp, 0xc
add dword [ebp - 0x94], edi
add ecx, edi
sub ebx, edi
mov dword [ebp - 0xa0], ecx
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0xbc], ebx
jmp 0x402426
mov edx, dword [ebp - 0x90]
jmp 0x40222b
cmp eax, 3
je case.0x401670.8
cmp eax, 1
jne 0x402567
mov eax, dword [ebp - 0x8c]
movaps xmm0, xmmword [0x4c5720]
push 0x90
push 8
lea edi, [eax + 0x40]
mov dword [eax + 0x2c], 0x120
mov dword [eax + 0x30], 0x20
movups xmmword [eax + 0xde0], xmm0
push edi
movups xmmword [eax + 0xdf0], xmm0
call fcn.00408090
push 0x70
add edi, 0x90
push 9
push edi
call fcn.00408090
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 - 0xc4]
mov ecx, dword [ebp - 0x8c]
movups xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
mov dword [edi + 0x88], 0x8080808
mov dword [edi + 0x8c], 0x8080808
mov edi, dword [ebp - 0x94]
jmp 0x401abd
mov ecx, dword [ebp - 0x8c]
xor ebx, ebx
cmp ebx, 3
jae 0x40260c
movsx eax, byte [ebx + 0x4231cc]
cmp esi, eax
jae 0x4025b3
cmp edi, dword [ebp - 0xa8]
jae 0x402a7f
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
movsx eax, byte [ebx + 0x4231cc]
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, eax
jb case.0x401670.9
mov cl, byte [ebx + 0x4231cc]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
shl edx, cl
dec edx
and edx, edi
mov dword [eax + ebx*4 + 0x2c], edx
movsx ecx, byte [ebx + 0x4231cc]
mov eax, dword [ebx*4 + 0x4c50e8]
sub esi, ecx
shr edi, cl
add eax, edx
mov ecx, dword [ebp - 0x8c]
mov edx, edi
mov dword [ebp - 0x90], edi
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0xd8], esi
mov dword [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x40256f
push 0x120
lea eax, [ecx + 0x1b80]
push 0
push eax
call fcn.00408090
mov edx, dword [ebp - 0x90]
add esp, 0xc
xor ebx, ebx
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], ebx
cmp ebx, dword [ecx + 0x34]
jae 0x40269e
cmp esi, 3
jae 0x40266a
cmp edi, dword [ebp - 0xa8]
jae 0x402a90
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 3
jb case.0x401670.10
movzx eax, byte [ebx + 0x4c570c]
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 - 0xd8], esi
mov byte [eax + edi + 0x1b80], cl
mov edi, dword [ebp - 0x94]
jmp 0x40262a
mov dword [ecx + 0x34], 0x13
lea eax, [ecx + 0x18]
jmp 0x401ab7
imul eax, eax, 0xda0
add ecx, 0x40
push 0x40
push 0
add eax, ecx
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x88]
push eax
call fcn.00408090
mov eax, dword [ebp - 0x98]
push 0xc80
add eax, 0x120
push 0
push eax
call fcn.00408090
mov eax, dword [ebp - 0xc4]
add esp, 0x18
mov edx, dword [ebp - 0x8c]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [edx + eax*4 + 0x2c]
mov dword [ebp - 0xb4], edx
test edx, edx
je 0x402726
nop word [eax + eax]
mov eax, dword [ebp - 0x98]
movzx eax, byte [ecx + eax]
inc ecx
inc dword [ebp + eax*4 - 0x88]
cmp ecx, edx
jb 0x402710
xor edi, edi
mov edx, 4
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp + edx - 0x88]
add ecx, eax
add ecx, ecx
add edi, eax
mov eax, dword [ebp + edx - 0x84]
add dword [ebp - 0xa4], eax
mov dword [ebp + edx - 0x44], ecx
add ecx, eax
mov eax, dword [ebp + edx - 0x80]
add ecx, ecx
add dword [ebp - 0x9c], 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 0x402741
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xa4]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xb8], edi
mov ecx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0x94]
add ecx, eax
cmp dword [ebp - 0xec], 0x10000
je 0x4027bc
cmp ecx, 1
ja case.0x401670.22
cmp dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0x9c], 0
jbe 0x402975
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x9c]
xor edx, edx
movzx ecx, byte [esi + eax]
mov dword [ebp - 0xb4], ecx
test ecx, ecx
je 0x40293c
mov edi, dword [ebp + ecx*4 - 0x48]
mov ebx, ecx
lea eax, [edi + 1]
mov dword [ebp + ecx*4 - 0x48], eax
nop word [eax + eax]
mov ecx, edi
add edx, edx
and ecx, 1
shr edi, 1
or edx, ecx
sub ebx, 1
jne 0x402810
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0xa
ja 0x40288a
mov edi, dword [ebp - 0xcc]
mov eax, ecx
shl eax, 9
or eax, esi
mov dword [ebp - 0xcc], edi
movzx esi, ax
mov eax, dword [ebp - 0x98]
cmp edx, 0x400
jae 0x40293c
mov ebx, 1
mov dword [ebp - 0xcc], edi
shl ebx, cl
lea eax, [eax + edx*2]
add eax, 0x120
lea ecx, [ebx + ebx]
nop dword [eax + eax]
mov word [eax], si
add edx, ebx
add eax, ecx
cmp edx, 0x400
jb 0x402870
mov eax, dword [ebp - 0x98]
jmp 0x40293c
mov edi, dword [ebp - 0x98]
mov eax, edx
mov ebx, dword [ebp - 0xa4]
and eax, 0x3ff
lea edi, [edi + eax*2]
movsx eax, word [edi + 0x120]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x4028c5
mov word [edi + 0x120], bx
mov edi, ebx
sub ebx, 2
mov dword [ebp - 0xa4], ebx
jmp 0x4028cb
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xcc]
shr edx, 9
mov dword [ebp - 0xcc], eax
cmp ecx, 0xb
jbe 0x402927
lea esi, [ecx - 0xb]
mov dword [ebp - 0xcc], eax
shr edx, 1
mov eax, edx
and eax, 1
sub eax, edi
mov edi, dword [ebp - 0x98]
movzx ecx, word [edi + eax*2 + 0x91e]
test cx, cx
jne 0x402913
mov word [edi + eax*2 + 0x91e], bx
mov edi, ebx
sub ebx, 2
jmp 0x402916
movsx edi, cx
sub esi, 1
jne 0x4028e8
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], ebx
mov eax, dword [ebp - 0x98]
shr edx, 1
and edx, 1
sub edx, edi
mov word [eax + edx*2 + 0x91e], si
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x9c]
inc edx
mov dword [ebp - 0x9c], edx
mov esi, dword [ecx]
mov ecx, dword [ebp - 0x8c]
cmp edx, dword [ecx + esi*4 + 0x2c]
jb 0x4027e3
mov esi, dword [ebp - 0xd8]
mov ebx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0x94]
jmp 0x40297b
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc4]
cmp dword [eax], 2
jne 0x401ab5
xor ebx, ebx
jmp 0x40189d
jne 0x40299b
test ebx, ebx
je case.0x401670.12
movsx ecx, byte [eax + 0x4231b8]
mov dword [ebp - 0xc8], ecx
cmp esi, ecx
jae 0x40182a
jmp case.0x401670.13
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x10
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x17
jmp 0x402d29
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x18
jmp 0x402daf
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 3
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 5
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 6
jmp 0x402d29
mov dword [ecx], 7
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x33
jmp 0x402d29
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x34
jmp 0x402daf
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
mov dword [ecx], 0x26
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0xb
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0xe
jmp 0x402d29
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x402ade
nop word [eax + eax]
cmp edi, dword [ebp - 0xa8]
jae 0x402c8b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
add esi, 8
or edx, eax
inc edi
mov eax, esi
mov dword [ebp - 0x94], edi
and eax, 7
mov dword [ebp - 0x90], edx
cmp esi, eax
jb case.0x401670.20
mov eax, dword [ebp - 0xdc]
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
cmp edi, eax
jbe 0x402b0a
cmp esi, 8
jb 0x402b04
dec edi
sub esi, 8
cmp edi, eax
ja 0x402af7
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x90]
xor edx, edx
mov ecx, esi
xor eax, eax
bts edx, ecx
cmp ecx, 0x20
cmovae eax, edx
xor edx, eax
dec edx
and edi, edx
mov dword [ebp - 0x90], edi
test esi, esi
je 0x402b45
push 0x1044
push str.A:DOWNLOADVBS_vbsedit13_executable_srcmain.cpp
push 0x4231d4
call fcn.0040ddcc
add esp, 0xc
test byte [ebp + 0x18], 1
je 0x402d9b
mov edx, dword [ebp - 0x90]
xor ebx, ebx
mov edi, dword [ebp - 0x94]
jmp 0x402cc6
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x1a
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x1b
jmp 0x402d29
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x35
jmp 0x402daf
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x19
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x12
jmp 0x402d29
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x27
jmp 0x402daf
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0xa
jmp 0x402daf
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x23
jmp 0x402daf
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x11
jmp 0x402daf
mov edi, dword [ebp - 0x90]
or eax, 0xffffffff
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x15
jmp 0x402daf
mov edi, dword [ebp - 0x90]
or eax, 0xffffffff
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x25
jmp 0x402daf
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x20
jmp 0x402d29
cmp edi, dword [ebp - 0xa8]
jae 0x402d1d
movzx ecx, byte [edi]
inc edi
mov dword [ebp - 0x94], edi
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x10]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x8c]
inc ebx
mov dword [ecx + 0x10], eax
cmp ebx, 4
jae case.0x401670.21
test esi, esi
je case.0x401670.28
cmp esi, 8
jae 0x402cfe
cmp edi, dword [ebp - 0xa8]
jae 0x402d0f
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, 8
jb case.0x401670.27
movzx ecx, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0x90], edx
jmp 0x402cae
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x29
jmp 0x402d29
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], 0x2a
test byte [ebp + 0x18], 2
mov eax, 0xfffffffc
cmovne eax, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
mov ecx, eax
cmp eax, 1
je case.0x401670.32
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x94], edi
mov edi, edx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xd4], eax
cmp ecx, 0xfffffffc
je 0x402dd5
jmp 0x402daf
mov edi, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x22
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xdc]
cmp edx, eax
jbe 0x402ddb
nop
cmp esi, 8
jb 0x402ddb
dec edx
sub esi, 8
cmp edx, eax
ja 0x402dc0
jmp 0x402ddb
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
bts ecx, esi
mov dword [eax + 4], esi
xor eax, eax
cmp esi, 0x20
cmovae eax, ecx
sub edx, dword [ebp - 0xdc]
xor ecx, eax
mov eax, dword [ebp - 0x8c]
dec ecx
and ecx, edi
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0xc8]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0xe0]
mov dword [eax + 0x24], ebx
mov ebx, dword [ebp - 0x98]
mov dword [ecx], edx
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0xc0]
test byte [ebp + 0x18], 9
mov dword [ebp - 0xa0], ecx
mov dword [edx], ecx
je 0x40305e
test ebx, ebx
js 0x40305e
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 - 0xa4], edi
sub edx, eax
mov dword [ebp - 0xc4], edx
test ecx, ecx
je 0x40303b
mov ebx, edx
xor edx, edx
mov dword [ebp - 0xb8], edx
cmp ebx, 7
jbe 0x402f51
mov eax, 7
sub eax, dword [ebp - 0xc0]
mov dword [ebp - 0xe0], eax
mov ecx, eax
mov eax, dword [ebp - 0xc0]
add edx, 8
movzx eax, byte [eax]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 1]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 2]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 3]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 4]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 5]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 6]
add esi, eax
mov eax, dword [ebp - 0xc0]
add edi, esi
movzx eax, byte [eax + 7]
add esi, eax
mov eax, dword [ebp - 0xc0]
add eax, 8
add edi, esi
mov dword [ebp - 0xc0], eax
add eax, ecx
cmp eax, ebx
jb 0x402eb4
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xa4], edi
mov eax, dword [ebp - 0xc4]
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
cmp edx, eax
jae 0x402fee
sub eax, edx
cmp eax, 2
jb 0x402fd0
mov edx, dword [ebp - 0xc4]
mov ecx, ebx
mov eax, dword [ebp - 0xb8]
sub edx, eax
mov edi, dword [ebp - 0xc0]
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 0xe0], 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 0x402f93
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xc0], edi
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xc4]
jae 0x402fe4
mov edx, dword [ebp - 0xc0]
movzx eax, byte [edx]
add esi, eax
add edi, esi
inc edx
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0x9c]
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 - 0xc4]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xc4], ebx
jne 0x402e90
mov ebx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x8c]
shl edi, 0x10
add edi, esi
mov dword [eax + 0x1c], edi
test ebx, ebx
jne 0x40305e
test byte [ebp + 0x18], 1
je 0x40305e
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.0040661f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], 0
mov eax, 0xfffffffd
mov dword [esi], 0
pop esi
pop ebx
call fcn.0040661f
mov esp, ebp
pop ebp
ret