Function at 0x4ffab0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x5ff004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xdc], edx
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
add eax, edx
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xe4]
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x94], edx
mov eax, dword [eax]
push edi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xb8], esi
lea edx, [eax + esi]
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0xd0], edx
mov edx, dword [ebp + 0x18]
and edx, 4
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xe8], edx
je 0x4ffb46
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0xa4], 0
jmp 0x4ffb62
sub eax, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0xa4], eax
lea edx, [eax - 1]
mov dword [ebp - 0xcc], edx
test edx, eax
jne 0x50158d
cmp esi, dword [ebp + 0xc]
jb 0x50158d
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x38]
mov esi, dword [ebx + 4]
mov ebx, dword [ebx + 0x24]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xb4], ebx
mov edi, dword [eax + 0x28]
mov dword [ebp - 0xc8], edi
mov edi, dword [eax + 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0xc4], edi
mov edi, dword [ebp - 0x94]
cmp eax, 0x35
ja case.0x4ffbb9.4
movzx eax, byte [eax + 0x501640]
jmp dword [eax*4 + 0x5015bc]
mov eax, dword [ebp - 0x8c]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0xc8], 0
xor esi, esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xac], ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x1c], 1
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x90], edx
test al, 1
je 0x5003de
jmp 0x4ffc14
mov eax, dword [ebp + 0x18]
mov ecx, edi
cmp ecx, dword [ebp - 0xa8]
jb 0x4ffc34
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 1
jmp 0x501254
movzx eax, byte [ecx]
inc edi
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], edi
mov dword [ecx + 8], eax
jmp 0x4ffc4f
mov ecx, dword [ebp - 0x8c]
cmp edi, dword [ebp - 0xa8]
jb 0x4ffc7c
mov eax, dword [ebp + 0x18]
and al, 2
mov dword [ecx], 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 5
add eax, 0xfffffffc
mov dword [ebp - 0x98], eax
mov ecx, eax
jmp 0x501264
mov eax, dword [ebp - 0x8c]
xor edx, edx
movzx ebx, byte [edi]
inc edi
mov dword [ebp - 0xbc], 0x1f
mov dword [ebp - 0x94], edi
mov ecx, dword [eax + 8]
mov dword [eax + 0xc], ebx
mov eax, ecx
shl eax, 8
add eax, ebx
div dword [ebp - 0xbc]
test edx, edx
jne 0x4ffcc0
test bl, 0x20
jne 0x4ffcc0
mov eax, ecx
and al, 0xf
cmp al, 8
jne 0x4ffcc0
xor ebx, ebx
jmp 0x4ffcc5
mov ebx, 1
cmp dword [ebp - 0xe8], 0
mov dword [ebp - 0xb4], ebx
jne 0x4ffd01
shr ecx, 4
mov eax, 1
add ecx, 8
shl eax, cl
cmp eax, 0x8000
ja 0x4ffcf4
cmp dword [ebp - 0xa4], eax
jb 0x4ffcf4
xor eax, eax
jmp 0x4ffcf9
mov eax, 1
or ebx, eax
mov dword [ebp - 0xb4], ebx
test ebx, ebx
jne case.0x4ffbb9.36
mov edx, dword [ebp - 0x90]
jmp 0x5003de
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x24
jmp 0x5012e0
cmp edi, dword [ebp - 0xa8]
jae 0x5010d1
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.0x4ffbb9.25
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add ebx, eax
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xb4], ebx
cmp esi, 0xf
jae 0x4ffe77
mov eax, dword [ebp - 0xa8]
sub eax, edi
cmp eax, 2
jge 0x4ffe47
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 0x4ffdc0
sar eax, 9
test eax, eax
je case.0x4ffbb9.26
cmp esi, eax
jae 0x4ffe7d
jmp case.0x4ffbb9.26
cmp esi, 0xa
jbe case.0x4ffbb9.26
mov ecx, 0xa
mov dword [ebp - 0xa0], 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 + 0x1700]
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], eax
test ecx, ecx
jns 0x4ffe77
mov ecx, dword [ebp - 0xa0]
inc eax
cmp esi, eax
jae 0x4ffdd0
cmp edi, dword [ebp - 0xa8]
jae 0x500e9d
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 0x4ffd90
jmp 0x4ffe77
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 - 0xa0], eax
test eax, eax
js 0x4ffea2
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x4ffee3
mov edi, dword [ebp - 0x8c]
mov ecx, 0xa
mov ebx, dword [ebp - 0xa0]
mov eax, edx
not ebx
shr eax, cl
inc ecx
and eax, 1
add eax, ebx
movsx ebx, word [edi + eax*2 + 0x1700]
test ebx, ebx
js 0x4ffeb3
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0xa0], ebx
mov ebx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xa0]
shr edx, cl
sub esi, ecx
mov ecx, dword [eax*4 + 0x5ef410]
mov dword [ebp - 0xc8], ecx
cmp dword [ebp - 0xc8], 0
mov ecx, dword [eax*4 + 0x5ef390]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xac], ecx
je 0x4fff71
mov ecx, dword [ebp - 0xc8]
cmp esi, ecx
jae 0x4fff4f
lea ebx, [ebx]
cmp edi, dword [ebp - 0xa8]
jae 0x500eb6
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.0x4ffbb9.27
mov eax, 1
sub esi, ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
mov ecx, dword [ebp - 0xac]
add ecx, eax
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xac], ecx
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
sub dword [ebp - 0xc4], edi
mov edi, dword [ebp - 0x94]
test ecx, ecx
je 0x4fffa4
cmp ecx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc4]
ja 0x4fffaa
test ecx, ecx
jne 0x4fffb7
jmp 0x4fffaa
mov ecx, dword [ebp - 0xc4]
cmp dword [ebp - 0xe8], 0
jne case.0x4ffbb9.37
sub ecx, dword [ebp - 0xac]
and ecx, dword [ebp - 0xcc]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xbc], ecx
cmp eax, ecx
ja 0x4fffd8
mov eax, ecx
add eax, ebx
cmp eax, dword [ebp - 0xd0]
jbe 0x50002e
mov ecx, dword [ebp - 0x9c]
mov eax, ebx
dec ebx
test eax, eax
je 0x5000ae
cmp ecx, dword [ebp - 0xd0]
jae 0x500ecf
mov eax, dword [ebp - 0xc4]
sub eax, dword [ebp - 0xac]
and eax, dword [ebp - 0xcc]
mov edi, dword [ebp + 0xc]
mov al, byte [eax + edi]
mov edi, dword [ebp - 0x94]
mov byte [ecx], al
inc ecx
inc dword [ebp - 0xc4]
mov dword [ebp - 0x9c], ecx
jmp 0x4fffe8
cmp ebx, 2
jbe 0x500083
mov edi, dword [ebp - 0x9c]
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp - 0xbc]
shr edx, 1
inc edx
lea esp, [esp]
movzx eax, byte [ecx]
sub ebx, 3
mov byte [edi], al
movzx eax, byte [ecx + 1]
mov byte [edi + 1], al
movzx eax, byte [ecx + 2]
add ecx, 3
mov byte [edi + 2], al
add edi, 3
sub edx, 1
jne 0x500050
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0x94]
test ebx, ebx
je 0x5000ae
mov edx, dword [ebp - 0x9c]
mov al, byte [ecx]
mov byte [edx], al
mov edx, dword [ebp - 0x90]
cmp ebx, 1
jbe 0x5000a8
mov al, byte [ecx + 1]
mov ecx, dword [ebp - 0x9c]
mov byte [ecx + 1], al
add dword [ebp - 0x9c], ebx
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xa8]
sub ecx, edi
cmp ecx, 4
jl 0x500232
sub eax, dword [ebp - 0x9c]
cmp eax, 2
jl 0x500232
cmp esi, 0xf
jae 0x500107
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
mov edi, dword [ebp - 0x94]
shl edx, 8
add edi, 2
or edx, eax
mov dword [ebp - 0x94], 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 + 0x160]
test ebx, ebx
js 0x500127
mov ecx, ebx
sar ecx, 9
jmp 0x500154
mov ecx, 0xa
lea esp, [esp]
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 0x500130
mov edi, dword [ebp - 0x94]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
test ebx, 0x100
jne 0x5003b6
cmp esi, 0xf
jae 0x50019d
movzx edx, byte [edi + 1]
mov ecx, esi
movzx eax, byte [edi]
mov edi, dword [ebp - 0x94]
shl edx, 8
add edi, 2
or edx, eax
mov dword [ebp - 0x94], 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 + 0x160]
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x5001c3
mov ecx, eax
sar ecx, 9
jmp 0x500206
mov ecx, 0xa
mov dword [ebp - 0xa0], ecx
mov edi, edi
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 + 0x960]
mov ecx, dword [ebp - 0xa0]
inc ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
test eax, eax
js 0x5001d0
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], edx
mov byte [ecx], bl
inc ecx
test eax, 0x100
jne 0x5003ae
add dword [ebp - 0x9c], 2
mov byte [ecx], al
jmp 0x5000ae
cmp esi, 0xf
jae 0x50032b
cmp ecx, 2
jge 0x5002fb
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 0x500274
sar eax, 9
test eax, eax
je case.0x4ffbb9.23
cmp esi, eax
jae 0x50032b
jmp case.0x4ffbb9.23
cmp esi, 0xa
jbe case.0x4ffbb9.23
mov ecx, 0xa
mov dword [ebp - 0xa0], 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 - 0xa0]
mov edi, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], eax
test ecx, ecx
jns 0x50032b
mov ecx, dword [ebp - 0xa0]
inc eax
cmp esi, eax
jae 0x500284
cmp edi, dword [ebp - 0xa8]
jae 0x500eea
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 0x500244
jmp 0x50032b
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 0x500351
mov ecx, ebx
sar ecx, 9
and ebx, 0x1ff
jmp 0x50037a
mov ecx, 0xa
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 0x500356
mov edi, dword [ebp - 0x94]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
cmp ebx, 0x100
jae 0x5003b6
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xd0]
cmp ecx, eax
jae 0x500f03
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x9c], ecx
jmp 0x5000b4
mov dword [ebp - 0x9c], ecx
mov ebx, eax
and ebx, 0x1ff
mov dword [ebp - 0xb4], ebx
cmp ebx, 0x100
jne 0x500e69
mov eax, dword [ebp - 0x8c]
test byte [eax + 0x14], 1
jne 0x501039
cmp esi, 3
jae 0x50040d
cmp edi, dword [ebp - 0xa8]
jae 0x500f1e
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.0x4ffbb9.3
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 0x90], edx
lea edi, [ecx + 0x18]
mov dword [ecx + 0x14], eax
shr eax, 1
mov dword [ebp - 0xd8], edi
mov edi, dword [ebp - 0x94]
mov dword [ecx + 0x18], eax
jne 0x50067d
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x500478
cmp edi, dword [ebp - 0xa8]
jae 0x500f37
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.0x4ffbb9.5
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
xor ebx, ebx
cmp ebx, 4
jae 0x500502
test esi, esi
je case.0x4ffbb9.7
cmp esi, 8
jae 0x5004c1
cmp edi, dword [ebp - 0xa8]
jae 0x500f50
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.0x4ffbb9.6
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 0x500489
cmp edi, dword [ebp - 0xa8]
jae 0x500f69
mov ecx, dword [ebp - 0x8c]
mov al, byte [edi]
inc edi
mov dword [ebp - 0x94], edi
mov byte [ecx + ebx + 0x2920], al
inc ebx
jmp 0x500489
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 - 0xb4], ebx
movzx eax, byte [eax + 0x2922]
or ecx, eax
xor ecx, 0xffff
cmp ebx, ecx
jne case.0x4ffbb9.39
mov ecx, dword [ebp - 0x9c]
test ebx, ebx
je 0x500672
test esi, esi
je case.0x4ffbb9.9
cmp esi, 8
jae 0x500589
cmp edi, dword [ebp - 0xa8]
jae 0x500f82
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.0x4ffbb9.51
mov ecx, dword [ebp - 0x9c]
movzx eax, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x90], edx
jmp 0x5005ac
mov eax, dword [ebp - 0xac]
cmp ecx, dword [ebp - 0xd0]
jae 0x500f9b
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xb4], ebx
jmp 0x50054e
test ebx, ebx
je 0x500672
mov eax, dword [ebp - 0xd0]
cmp ecx, eax
jb 0x5005fd
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 2
mov dword [eax], 9
jmp 0x5012e0
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xa8]
cmp edi, edx
jae 0x500fb6
sub eax, ecx
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0xa0], eax
mov edx, eax
cmp eax, ecx
jb 0x50061f
mov edx, ecx
cmp edx, ebx
jae 0x500631
cmp eax, ecx
jb 0x500639
mov eax, ecx
mov dword [ebp - 0xa0], eax
jmp 0x500639
mov eax, ebx
mov dword [ebp - 0xa0], ebx
push eax
push edi
push dword [ebp - 0x9c]
call fcn.00504df0
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov ecx, dword [ebp - 0x9c]
add edi, eax
add ecx, eax
mov dword [ebp - 0x94], edi
sub ebx, eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xb4], ebx
jmp 0x5005ca
mov edx, dword [ebp - 0x90]
jmp 0x5003ce
cmp eax, 3
je 0x50110b
cmp eax, 1
jne 0x500754
mov eax, ecx
push 0x90
push 8
mov dword [eax + 0x2c], 0x120
lea edi, [eax + 0x40]
mov dword [eax + 0x30], 0x20
mov dword [eax + 0xde0], 0x5050505
mov dword [eax + 0xde4], 0x5050505
mov dword [eax + 0xde8], 0x5050505
mov dword [eax + 0xdec], 0x5050505
mov dword [eax + 0xdf0], 0x5050505
mov dword [eax + 0xdf4], 0x5050505
mov dword [eax + 0xdf8], 0x5050505
push edi
mov dword [eax + 0xdfc], 0x5050505
call fcn.00504370
push 0x70
add edi, 0x90
push 9
push edi
call fcn.00504370
mov eax, 0x18
add edi, 0x70
push eax
push 7
push edi
call fcn.00504370
mov edx, dword [ebp - 0xd8]
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 - 0x8c]
mov dword [ebp - 0xcc], eax
jmp 0x500889
xor ebx, ebx
cmp ebx, 3
jae 0x5007ec
movsx eax, byte [ebx + 0x5f89e0]
cmp esi, eax
jae 0x50079a
cmp edi, dword [ebp - 0xa8]
jae 0x500fd5
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
inc edi
or edx, eax
mov dword [ebp - 0x94], edi
movsx eax, byte [ebx + 0x5f89e0]
add esi, 8
mov dword [ebp - 0x90], edx
cmp esi, eax
jb case.0x4ffbb9.11
mov cl, byte [ebx + 0x5f89e0]
mov edx, 1
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 + 0x5f89e0]
mov eax, dword [ebx*4 + 0x5eef04]
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 [ecx + ebx*4 + 0x2c], eax
inc ebx
jmp 0x500756
mov eax, dword [ebp - 0x8c]
push 0x120
add eax, 0x1b80
push 0
push eax
call fcn.00504370
mov edx, dword [ebp - 0x90]
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb4], ebx
cmp ebx, dword [eax + 0x34]
jae 0x50087d
cmp esi, 3
jae 0x50084f
cmp edi, dword [ebp - 0xa8]
jae 0x500fee
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.0x4ffbb9.14
movzx eax, byte [ebx + 0x5eeb90]
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 byte [eax + edi + 0x1b80], cl
mov edi, dword [ebp - 0x94]
jmp 0x50080f
mov edi, eax
mov dword [edi + 0x34], 0x13
lea edx, [edi + 0x18]
mov eax, dword [edx]
mov dword [ebp - 0xd8], edx
test eax, eax
js 0x500e58
imul eax, eax, 0xda0
push 0x40
push 0
add eax, 0x40
add eax, edi
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x88]
push eax
call fcn.00504370
mov eax, dword [ebp - 0x98]
push 0x800
add eax, 0x120
push 0
push eax
call fcn.00504370
mov eax, dword [ebp - 0x98]
push 0x480
add eax, 0x920
push 0
push eax
call fcn.00504370
mov eax, dword [ebp - 0xd8]
add esp, 0x24
xor ecx, ecx
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov edx, dword [edi + eax*4 + 0x2c]
mov dword [ebp - 0xbc], edx
test edx, edx
je 0x500926
jmp 0x500910
mov eax, dword [ebp - 0x98]
movzx eax, byte [ecx + eax]
inc ecx
inc dword [ebp + eax*4 - 0x88]
cmp ecx, edx
jb 0x500910
xor edx, edx
mov eax, 4
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x44], ecx
mov edi, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp + eax - 0x88]
add ecx, eax
add edx, eax
add ecx, ecx
mov eax, dword [ebp - 0xb0]
mov dword [ebp + eax - 0x44], ecx
mov eax, dword [ebp + eax - 0x84]
add ecx, eax
add edi, eax
add ecx, ecx
mov eax, dword [ebp - 0xb0]
mov dword [ebp + eax - 0x40], ecx
mov eax, dword [ebp + eax - 0x80]
add ecx, eax
add dword [ebp - 0xa0], eax
add ecx, ecx
mov eax, dword [ebp - 0xb0]
mov dword [ebp + eax - 0x3c], ecx
add eax, 0xc
mov dword [ebp - 0xb0], eax
cmp eax, 0x3c
jbe 0x500943
mov eax, dword [ebp - 0xa0]
add eax, edi
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0x8c]
add edx, eax
cmp ecx, 0x10000
je 0x5009be
cmp edx, 1
ja 0x501120
xor ecx, ecx
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xbc], ecx
jbe 0x500baa
lea esp, [esp]
mov eax, dword [ebp - 0x98]
xor edx, edx
movzx edi, byte [ecx + eax]
test edi, edi
je 0x500b83
mov ecx, dword [ebp + edi*4 - 0x48]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xe0], edi
lea eax, [ecx + 1]
mov dword [ebp + edi*4 - 0x48], eax
jmp 0x500a10
mov eax, dword [ebp - 0xcc]
and ecx, 1
add edx, edx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xe0]
or edx, ecx
mov ecx, dword [ebp - 0xbc]
dec eax
shr ecx, 1
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xbc], ecx
test eax, eax
jne 0x500a10
cmp edi, 0xa
ja 0x500ace
mov ecx, dword [ebp - 0xa0]
mov eax, edi
mov ebx, dword [ebp - 0xa4]
shl eax, 9
or eax, ecx
mov dword [ebp - 0xcc], ebx
movzx eax, ax
mov dword [ebp - 0xe0], eax
cmp edx, 0x400
jae 0x500b83
mov ecx, edi
mov dword [ebp - 0xcc], ebx
mov edi, dword [ebp - 0xe0]
mov eax, 1
shl eax, cl
mov dword [ebp - 0xbc], eax
add eax, eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x98]
lea eax, [eax + edx*2]
add eax, 0x120
mov word [eax], di
add edx, ecx
add eax, dword [ebp - 0xc0]
cmp edx, 0x400
jb 0x500ab0
mov ecx, dword [ebp - 0xa0]
jmp 0x500b83
mov ecx, dword [ebp - 0x98]
mov eax, edx
and eax, 0x3ff
movsx ecx, word [ecx + eax*2 + 0x120]
test ecx, ecx
jne 0x500b06
mov ebx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xb0]
mov word [ebx + eax*2 + 0x120], cx
mov eax, ecx
sub eax, 2
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa4]
shr edx, 9
mov dword [ebp - 0xcc], eax
cmp edi, 0xb
jbe 0x500b68
add edi, 0xfffffff5
mov dword [ebp - 0xcc], eax
shr edx, 1
mov eax, edx
and eax, 1
sub eax, ecx
mov ecx, dword [ebp - 0x98]
movzx ecx, word [ecx + eax*2 + 0x91e]
test cx, cx
jne 0x500b60
mov ebx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xb0]
mov word [ebx + eax*2 + 0x91e], cx
mov eax, ecx
sub eax, 2
mov dword [ebp - 0xb0], eax
jmp 0x500b63
movsx ecx, cx
sub edi, 1
jne 0x500b23
mov eax, dword [ebp - 0x98]
shr edx, 1
and edx, 1
sub edx, ecx
mov ecx, dword [ebp - 0xa0]
mov word [eax + edx*2 + 0x91e], cx
mov edx, dword [ebp - 0xd8]
inc ecx
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0xa0], ecx
mov eax, dword [edx]
cmp ecx, dword [edi + eax*4 + 0x2c]
jb 0x5009e0
mov ebx, dword [ebp - 0xb4]
jmp 0x500bb6
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xd8]
cmp eax, 2
jne 0x500e51
xor ebx, ebx
mov edx, dword [ebp - 0x90]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x2c]
add eax, ecx
mov dword [ebp - 0xb4], ebx
cmp ebx, eax
jae 0x500e1a
mov edi, dword [ebp - 0x94]
cmp esi, 0xf
jae 0x500ce7
mov eax, dword [ebp - 0xa8]
sub eax, edi
cmp eax, 2
jge 0x500cb7
mov ecx, dword [ebp - 0x8c]
mov eax, edx
and eax, 0x3ff
movsx eax, word [ecx + eax*2 + 0x1ca0]
mov dword [ebp - 0xbc], eax
test eax, eax
js 0x500c2d
sar eax, 9
test eax, eax
je case.0x4ffbb9.16
cmp esi, eax
jae 0x500ced
jmp case.0x4ffbb9.16
cmp esi, 0xa
jbe case.0x4ffbb9.16
mov ecx, 0xa
mov dword [ebp - 0xa4], ecx
lea ecx, [ecx]
mov edi, dword [ebp - 0x8c]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0xbc]
and eax, 1
not ecx
add eax, ecx
movsx ecx, word [edi + eax*2 + 0x24a0]
mov eax, dword [ebp - 0xa4]
mov edi, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xa4], eax
test ecx, ecx
jns 0x500ce7
mov ecx, dword [ebp - 0xa4]
inc eax
cmp esi, eax
jae 0x500c40
cmp edi, dword [ebp - 0xa8]
jae 0x501007
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 0x500bfd
jmp 0x500ce7
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 - 0xac], eax
test eax, eax
js 0x500d18
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
mov dword [ebp - 0xac], eax
jmp 0x500d4f
mov edi, dword [ebp - 0x8c]
mov ecx, 0xa
not dword [ebp - 0xac]
mov eax, edx
shr eax, cl
inc ecx
and eax, 1
add eax, dword [ebp - 0xac]
movsx eax, word [edi + eax*2 + 0x24a0]
mov dword [ebp - 0xac], eax
test eax, eax
js 0x500d23
mov edi, dword [ebp - 0x94]
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x90], edx
cmp eax, 0x10
jae 0x500d71
mov edi, dword [ebp - 0x8c]
mov byte [edi + ebx + 0x2924], al
inc ebx
jmp 0x500bc7
jne 0x500d7b
test ebx, ebx
je case.0x4ffbb9.17
movsx ecx, byte [eax + 0x5f89cc]
mov dword [ebp - 0xc8], ecx
cmp esi, ecx
jae 0x500dc1
cmp edi, dword [ebp - 0xa8]
jae 0x501020
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.0x4ffbb9.18
mov eax, dword [ebp - 0xac]
movsx eax, byte [eax + 0x5f89d4]
mov edi, 1
shl edi, cl
sub esi, ecx
dec edi
and edi, edx
shr edx, cl
add edi, eax
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0xac], 0x10
mov eax, dword [ebp - 0x8c]
jne 0x500df9
movzx ecx, byte [eax + ebx + 0x2923]
add eax, ebx
jmp 0x500dfd
xor ecx, ecx
add eax, ebx
push edi
push ecx
add eax, 0x2924
push eax
call fcn.00504370
add esp, 0xc
add ebx, edi
mov edi, dword [ebp - 0x8c]
jmp 0x500bc1
jne 0x50115c
push ecx
lea eax, [edi + 0x2924]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00504df0
mov eax, dword [edi + 0x2c]
push dword [edi + 0x30]
add eax, 0x2924
add eax, edi
push eax
lea eax, [edi + 0xde0]
push eax
call fcn.00504df0
add esp, 0x18
lea edx, [edi + 0x18]
dec dword [edx]
jmp 0x500889
mov edx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x94]
jmp 0x5000ae
lea eax, [ebx*4 - 0x404]
mov ecx, dword [eax + 0x5ef510]
mov ebx, dword [eax + 0x5ef310]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xb4], ebx
test ecx, ecx
je 0x4ffd76
cmp esi, ecx
jae 0x4ffd5a
jmp case.0x4ffbb9.25
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x1a
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x1b
jmp 0x501254
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x35
jmp 0x5012e0
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x17
jmp 0x501254
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x18
jmp 0x5012e0
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 3
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 5
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 6
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 7
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x33
jmp 0x501254
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 2
mov dword [eax], 0x34
jmp 0x5012e0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x90]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x26
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0xb
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0xe
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x10
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x12
jmp 0x501254
mov eax, esi
and eax, 7
cmp esi, eax
jae 0x501070
cmp edi, dword [ebp - 0xa8]
jae 0x501198
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.0x4ffbb9.32
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 0x5010a3
lea esp, [esp]
cmp esi, 8
jb 0x50109d
dec edi
sub esi, 8
cmp edi, eax
ja 0x501090
mov dword [ebp - 0x94], edi
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.0051eef0
mov edx, dword [ebp - 0x90]
dec eax
and edx, eax
test byte [ebp + 0x18], 1
mov dword [ebp - 0x90], edx
je case.0x4ffbb9.34
xor ebx, ebx
jmp 0x501202
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x19
jmp 0x501254
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x27
jmp 0x5012e0
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [ecx], 0xa
jmp 0x5012e0
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x23
jmp 0x5012e0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x11
jmp 0x5012e0
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x15
jmp 0x5012e0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0xffffffff
mov dword [eax], 0x25
jmp 0x5012e0
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x20
jmp 0x501254
cmp edi, dword [ebp - 0xa8]
jae 0x501240
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.0x4ffbb9.41
movzx ecx, dl
shr edx, 8
sub esi, 8
mov dword [ebp - 0x90], edx
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.0x4ffbb9.34
test esi, esi
jne 0x501223
cmp edi, dword [ebp - 0xa8]
jae 0x50122a
movzx ecx, byte [edi]
inc edi
mov dword [ebp - 0x94], edi
jmp 0x5011ea
cmp esi, 8
jae 0x5011db
jmp case.0x4ffbb9.41
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x2a
jmp 0x501254
mov eax, dword [ebp + 0x18]
and al, 2
movzx ecx, al
mov eax, dword [ebp - 0x8c]
mov dword [eax], 0x29
neg ecx
sbb ecx, ecx
and ecx, 5
add ecx, 0xfffffffc
mov dword [ebp - 0x98], ecx
mov eax, ecx
cmp ecx, 1
je case.0x4ffbb9.4
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], ecx
cmp eax, 0xfffffffc
je case.0x4ffbb9.4
jmp 0x5012e0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], 0
mov dword [eax], 0x22
mov eax, dword [ebp - 0xdc]
cmp edi, eax
jbe case.0x4ffbb9.4
lea ebx, [ebx]
cmp esi, 8
jb 0x5012fd
dec edi
sub esi, 8
cmp edi, eax
ja 0x5012f0
mov dword [ebp - 0x94], edi
mov ecx, dword [ebp - 0x8c]
mov eax, 1
xor edx, edx
mov dword [ecx + 4], esi
mov ecx, esi
call fcn.0051eef0
mov ecx, dword [ebp - 0x8c]
dec eax
and eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xd4]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0xac]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0xc8]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0xc4]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0xdc]
mov dword [ecx + 0x24], ebx
mov ebx, dword [ebp - 0x98]
mov dword [edx], eax
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xe4]
sub edx, dword [ebp - 0xb8]
test byte [ebp + 0x18], 9
mov dword [ebp - 0x9c], edx
mov dword [eax], edx
je 0x50157a
test ebx, ebx
js 0x50157a
mov edi, dword [ecx + 0x1c]
mov eax, 0x5e6ea9af
mul edx
movzx esi, di
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, dword [ebp - 0x9c]
shr edi, 0x10
mov dword [ebp - 0xa4], edi
sub edx, eax
cmp dword [ebp - 0x9c], 0
mov dword [ebp - 0xb0], edx
je 0x50155d
mov ecx, edx
lea ebx, [ebx]
xor edx, edx
mov dword [ebp - 0xbc], edx
cmp ecx, 7
jbe 0x501487
mov eax, dword [ebp - 0xb8]
mov ebx, 7
sub ebx, eax
mov edi, edi
movzx eax, byte [eax]
add edx, 8
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 1]
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 2]
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 3]
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 4]
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 5]
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 6]
add esi, eax
mov eax, dword [ebp - 0xb8]
add edi, esi
movzx eax, byte [eax + 7]
add esi, eax
mov eax, dword [ebp - 0xb8]
add eax, 8
add edi, esi
mov dword [ebp - 0xb8], eax
add eax, ebx
cmp eax, ecx
mov eax, dword [ebp - 0xb8]
jb 0x5013f0
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xa4], edi
mov eax, dword [ebp - 0xb0]
xor ebx, ebx
xor ecx, ecx
cmp edx, eax
jae 0x50150a
sub eax, edx
cmp eax, 2
jb 0x5014f1
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xbc]
sub edx, eax
mov edi, dword [ebp - 0xb8]
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 0xc0], eax
nop
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 0x5014c0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xb8], edi
mov edi, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xb0]
jae 0x501505
mov edx, dword [ebp - 0xb8]
movzx eax, byte [edx]
add esi, eax
add edi, esi
inc edx
mov dword [ebp - 0xb8], edx
lea eax, [ecx + ebx]
add edi, eax
mov eax, 0x80078071
mov ecx, dword [ebp - 0xb0]
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 dword [ebp - 0x9c], ecx
mov ecx, 0x15b0
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb0], ecx
jne 0x5013d0
mov ecx, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x98]
shl edi, 0x10
lea eax, [edi + esi]
mov dword [ecx + 0x1c], eax
test ebx, ebx
jne 0x50157a
test byte [ebp + 0x18], 1
je 0x50157a
cmp eax, dword [ecx + 0x10]
je 0x50157a
mov ebx, 0xfffffffe
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], 0
xor ecx, ebp
pop esi
mov dword [edx], 0
mov eax, 0xfffffffd
pop ebx
call fcn.00502eb4
mov esp, ebp
pop ebp
ret