Function at 0x514080
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5161c7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
cmp word [ebx + 0x1e], 1
jne 0x5140ed
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
mov dword [ebp - 0xa4], eax
fild dword [ebp - 0xa4]
fild dword [ebx + 0xc]
fdiv dword [0x5161d8]
fmulp st(1)
call fcn.00402f88
mov dword [ebp - 0x3c], eax
jmp 0x514103
fild dword [ebp + 0x10]
fild dword [ebx + 0xc]
fdiv dword [0x5161d8]
fmulp st(1)
call fcn.00402f88
mov dword [ebp - 0x3c], eax
cmp dword [ebx + 0xc], 4
jne 0x51410f
test byte [ebp + 0x10], 1
jne 0x514128
cmp dword [ebx + 0xc], 1
jne 0x51412b
mov eax, dword [ebp + 0x10]
and eax, 0x80000007
jns 0x514124
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
je 0x51412b
inc dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x48], eax
cmp word [ebx + 0x22], 7
jne 0x5142cf
cmp dword [ebx + 0x6c], 0
jne 0x5142cf
mov dl, 1
mov eax, dword [0x41c828]
call fcn.00403cf8
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x50]
call fcn.00421210
mov dl, 1
mov eax, dword [0x63d47c]
call fcn.006459ec
mov dword [ebp - 0x58], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x58]
mov esi, dword [eax]
call dword [esi + 0x24]
cmp dword [ebx + 0x28], 1
je 0x514199
cmp dword [ebx + 0x38], 1
jne 0x5141ad
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0xa0]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x5141f5
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5141de
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x59], 0
mov eax, dword [ebx + 0x178]
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
lea eax, [ebx + 0x178]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
mov al, byte [ebp - 0x59]
push eax
push 0
push 1
push 0
push 1
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 0x50]
call fcn.004f5eec
mov eax, dword [ebx + 0x178]
mov edx, esi
call fcn.0062000c
mov eax, dword [ebx + 0x178]
mov edx, edi
call fcn.0062003c
mov eax, dword [ebp - 0x78]
cmp byte [eax], 0
jne 0x5142ba
cmp byte [ebp - 0x59], 0
je 0x514293
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x514293
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.005f72c8
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x51426e
push 0
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
call fcn.00649938
mov eax, dword [ebp - 0x58]
call fcn.00403d28
mov eax, dword [ebp - 0x50]
call fcn.00403d28
jmp 0x516187
cmp word [ebx + 0x22], 7
jne 0x51447a
cmp dword [ebx + 0x6c], 0
je 0x51447a
mov dl, 1
mov eax, dword [0x41c828]
call fcn.00403cf8
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x50]
call fcn.00421210
mov dl, 1
mov eax, dword [0x41c828]
call fcn.00403cf8
mov dword [ebp - 0x54], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x54]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x54]
call fcn.00421210
mov dl, 1
mov eax, dword [0x63d47c]
call fcn.006459ec
mov dword [ebp - 0x58], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x58]
mov esi, dword [eax]
call dword [esi + 0x24]
cmp dword [ebx + 0x28], 1
je 0x514361
cmp dword [ebx + 0x38], 1
jne 0x514375
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0xa0]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x5143bd
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5143a6
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x59], 0
lea eax, [ebx + 0x178]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
mov al, byte [ebp - 0x59]
push eax
push 0
push 1
push 0
push 1
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
call fcn.004f5eec
mov eax, dword [ebp - 0x78]
cmp byte [eax], 0
jne 0x51445d
cmp byte [ebp - 0x59], 0
je 0x514436
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x514436
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.005f72c8
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x514411
push 0
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
call fcn.00649938
mov eax, dword [ebp - 0x58]
call fcn.00403d28
mov eax, dword [ebp - 0x50]
call fcn.00403d28
mov eax, dword [ebp - 0x54]
call fcn.00403d28
jmp 0x516187
cmp word [ebx + 0x1c], 2
jne 0x514650
cmp dword [ebx + 8], 3
je 0x514495
cmp dword [ebx + 8], 4
jne 0x514650
cmp dword [ebx + 0xc], 8
jne 0x514650
cmp dword [ebx + 8], 4
jne 0x5144ae
cmp dword [ebx + 0x184], 2
je 0x5144bb
cmp dword [ebx + 8], 4
jne 0x5144c4
cmp word [ebx + 0x1c], 2
jne 0x5144c4
cmp byte [ebx + 0x180], 0
je 0x5144c8
xor eax, eax
jmp 0x5144ca
mov al, 1
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0
je 0x5144dd
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x5144f2
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x514638
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x514621
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
cmp byte [ebp - 0x49], 0
je 0x5145c5
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5145e3
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov dx, word [eax]
mov word [esi], dx
mov dl, byte [eax + 2]
mov byte [esi + 2], dl
mov edx, esi
lea eax, [esi + 2]
call fcn.005eafec
add dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.00640890
inc dword [ebp - 0x24]
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x51457f
jmp 0x5145e3
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 0x24]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x514614
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x514638
jmp 0x51462c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x514638
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x514509
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 2
jne 0x5148f0
cmp dword [ebx + 8], 3
je 0x51466b
cmp dword [ebx + 8], 4
jne 0x5148f0
cmp dword [ebx + 0xc], 0x10
jne 0x5148f0
cmp word [ebx + 0x22], 1
je 0x51468c
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
add eax, eax
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5148d8
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x5148c1
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 8
jne 0x5147e0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x1c]
cdq
idiv dword [ebx + 8]
add eax, eax
lea eax, [eax + eax*2]
add dword [ebp - 0x64], eax
cmp byte [ebx + 0x174], 0
je 0x51477c
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514883
inc edi
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov edx, dword [ebp - 0x64]
mov word [edx], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov edx, dword [ebp - 0x64]
mov word [edx + 2], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov edx, dword [ebp - 0x64]
mov word [edx + 4], ax
add dword [ebp - 0x1c], 2
cmp dword [ebx + 8], 4
jne 0x514770
add dword [ebp - 0x1c], 2
add dword [ebp - 0x64], 6
dec edi
jne 0x514734
jmp 0x514883
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514883
inc edi
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
call fcn.0063e584
mov edx, dword [ebp - 0x64]
mov word [edx], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
call fcn.0063e584
mov edx, dword [ebp - 0x64]
mov word [edx + 2], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
call fcn.0063e584
mov edx, dword [ebp - 0x64]
mov word [edx + 4], ax
add dword [ebp - 0x1c], 2
cmp dword [ebx + 8], 4
jne 0x5147d4
add dword [ebp - 0x1c], 2
add dword [ebp - 0x64], 6
dec edi
jne 0x514789
jmp 0x514883
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
cmp dword [ebx + 8], 4
jne 0x51483c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x51483c
inc edi
mov dx, word [eax]
mov ecx, dword [ebp - 0x64]
mov word [ecx], dx
add eax, 2
mov dx, word [eax]
mov ecx, dword [ebp - 0x64]
mov word [ecx + 2], dx
add eax, 2
mov dx, word [eax]
mov ecx, dword [ebp - 0x64]
mov word [ecx + 4], dx
add eax, 2
add eax, 2
add dword [ebp - 0x64], 6
dec edi
jne 0x51480c
cmp byte [ebx + 0x174], 0
jne 0x514865
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
mov dl, 7
mov eax, dword [ebp - 0x1c]
call edi
jmp 0x514883
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
mov dl, 6
mov eax, dword [ebp - 0x1c]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5148b4
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x5148d8
jmp 0x5148cc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5148d8
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x5146a3
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 2
jne 0x514a47
cmp dword [ebx + 8], 1
jne 0x514a47
cmp dword [ebx + 0xc], 0x10
jne 0x514a47
cmp word [ebx + 0x22], 1
je 0x514924
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x514a2f
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x514a18
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5149da
inc edi
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
shr eax, 0xa
shl eax, 3
mov byte [esi + 2], al
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
shr eax, 5
and al, 0x1f
shl eax, 3
mov byte [esi + 1], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
and al, 0x1f
shl eax, 3
mov byte [esi], al
add dword [ebp - 0x24], 2
add esi, 3
dec edi
jne 0x5149a4
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x514a0b
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x514a2f
jmp 0x514a23
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x514a2f
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x51493b
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 3
jne 0x514bcb
cmp dword [ebx + 0xc], 1
jne 0x514bcb
cmp dword [ebx + 8], 1
jne 0x514bcb
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x514bbe
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x514ba7
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 2
jne 0x514b20
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514b69
inc edi
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call fcn.005f5294
test eax, eax
je 0x514b14
mov byte [esi], 1
jmp 0x514b17
mov byte [esi], 0
inc esi
inc dword [ebp - 0x14]
dec edi
jne 0x514b00
jmp 0x514b69
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514b69
inc edi
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call fcn.005f5294
test eax, eax
je 0x514b51
mov eax, dword [ebx + 0x44]
mov dx, word [eax + 3]
mov word [esi], dx
mov dl, byte [eax + 5]
mov byte [esi + 2], dl
jmp 0x514b60
mov eax, dword [ebx + 0x44]
mov dx, word [eax]
mov word [esi], dx
mov dl, byte [eax + 2]
mov byte [esi + 2], dl
add esi, 3
inc dword [ebp - 0x14]
dec edi
jne 0x514b30
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x514b9a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x514bbe
jmp 0x514bb2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x514bbe
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x514a8a
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 3
jne 0x514e9c
cmp dword [ebx + 0xc], 8
jg 0x514e9c
cmp dword [ebx + 8], 2
jne 0x514d47
cmp dword [ebx + 0xc], 8
jne 0x514d47
cmp word [ebx + 0x22], 1
je 0x514c08
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x514d2f
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x514d18
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514cda
inc edi
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 0x44]
mov cx, word [edx + eax]
mov word [esi], cx
mov cl, byte [edx + eax + 2]
mov byte [esi + 2], cl
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov edx, 0xff
sub edx, eax
push edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x14]
call fcn.00640890
inc dword [ebp - 0x24]
add esi, 3
inc dword [ebp - 0x14]
dec edi
jne 0x514c8f
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x514d0b
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x514d2f
jmp 0x514d23
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x514d2f
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x514c1f
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x22], 1
jne 0x514d54
cmp dword [ebx + 0xc], 8
jge 0x514d61
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x514e7e
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x514e67
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 2
jne 0x514dfd
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514e29
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
inc dword [ebp - 0x24]
inc esi
dec edi
jne 0x514ded
jmp 0x514e29
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514e29
inc edi
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 0x44]
mov cx, word [edx + eax]
mov word [esi], cx
mov cl, byte [edx + eax + 2]
mov byte [esi + 2], cl
inc dword [ebp - 0x24]
add esi, 3
dec edi
jne 0x514e06
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x514e5a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x514e7e
jmp 0x514e72
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x514e7e
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x514d78
cmp word [ebx + 0x22], 1
jne 0x514e8f
cmp dword [ebx + 0xc], 8
jge 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 1
ja 0x515050
cmp dword [ebx + 8], 1
jne 0x515050
cmp dword [ebx + 0xc], 8
je 0x514ec1
cmp dword [ebx + 0xc], 4
jne 0x515050
cmp word [ebx + 0x22], 1
jne 0x514ece
cmp dword [ebx + 0xc], 4
jne 0x514edc
mov eax, dword [ebp + 0x10]
add eax, 4
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x515032
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x51501b
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x514f78
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514fdd
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
inc dword [ebp - 0x24]
inc esi
dec edi
jne 0x514f68
jmp 0x514fdd
cmp word [ebx + 0x1c], 0
jne 0x514fb4
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514fdd
inc edi
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
inc dword [ebp - 0x24]
add esi, 3
dec edi
jne 0x514f88
jmp 0x514fdd
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x514fdd
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
inc dword [ebp - 0x24]
add esi, 3
dec edi
jne 0x514fbd
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x51500e
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x515032
jmp 0x515026
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x515032
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x514ef3
cmp word [ebx + 0x22], 1
jne 0x515043
cmp dword [ebx + 0xc], 4
jne 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 1
ja 0x515259
cmp dword [ebx + 8], 2
jne 0x515259
cmp dword [ebx + 0xc], 8
jne 0x515259
mov al, byte [ebx + 0x180]
xor al, 1
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0
je 0x51508a
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x51509e
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x51523b
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x515224
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp word [ebx + 0x1c], 0
jne 0x515189
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5151e6
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
cmp byte [ebp - 0x49], 0
je 0x51517a
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.00640890
inc dword [ebp - 0x24]
jmp 0x51517e
add dword [ebp - 0x24], 2
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x515130
jmp 0x5151e6
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5151e6
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
cmp byte [ebp - 0x49], 0
je 0x5151d9
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.00640890
inc dword [ebp - 0x24]
jmp 0x5151dd
add dword [ebp - 0x24], 2
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x515199
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x515217
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x51523b
jmp 0x51522f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x51523b
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x5150b5
cmp word [ebx + 0x22], 1
jne 0x51524c
cmp dword [ebx + 0xc], 4
jne 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 1
ja 0x5154f3
cmp dword [ebx + 8], 1
jne 0x5154f3
cmp dword [ebx + 0xc], 0x10
jne 0x5154f3
cmp word [ebx + 0x22], 1
je 0x51528c
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5154db
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x5154c4
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.00405054
mov eax, dword [ebp - 0xa8]
mov edx, 0x5161e4
call fcn.00404f40
jne 0x51533a
mov dword [ebp - 0x18], 4
jmp 0x515341
mov dword [ebp - 0x18], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 4
jne 0x5153da
cmp word [ebx + 0x1c], 0
jne 0x51539b
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515486
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov dx, 0xffff
sub dx, word [eax]
mov word [esi], dx
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x515365
jmp 0x515486
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515486
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
mov word [esi], ax
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x5153a8
jmp 0x515486
cmp word [ebx + 0x1c], 0
jne 0x51543a
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515486
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
mov edx, 0xffff
sub edx, eax
shr edx, cl
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x5153ee
jmp 0x515486
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515486
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
shr eax, cl
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x515443
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5154b7
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x5154db
jmp 0x5154cf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5154db
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x5152a3
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 1
ja 0x51579e
cmp dword [ebx + 8], 2
jne 0x51579e
cmp dword [ebx + 0xc], 0x10
jne 0x51579e
cmp word [ebx + 0x22], 1
je 0x515527
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x515786
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x51576f
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.00405054
mov eax, dword [ebp - 0xac]
mov edx, 0x5161e4
call fcn.00404f40
jne 0x5155d5
mov dword [ebp - 0x18], 4
jmp 0x5155dc
mov dword [ebp - 0x18], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 4
jne 0x51567d
cmp word [ebx + 0x1c], 0
jne 0x51563a
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515731
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov dx, 0xffff
sub dx, word [eax]
mov word [esi], dx
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x515600
jmp 0x515731
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515731
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
mov word [esi], ax
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x515647
jmp 0x515731
cmp word [ebx + 0x1c], 0
jne 0x5156e1
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515731
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
mov edx, 0xffff
sub edx, eax
shr edx, cl
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x515691
jmp 0x515731
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515731
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.00655f30
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
shr eax, cl
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x5156ea
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x515762
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x515786
jmp 0x51577a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x515786
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x51553e
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 1
ja 0x515934
cmp dword [ebx + 8], 1
jne 0x515934
cmp dword [ebx + 0xc], 1
jne 0x515934
mov eax, dword [ebp + 0x10]
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
call fcn.00402a70
mov dword [ebp - 0x28], eax
mov cl, 0xff
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
call fcn.00408744
xor eax, eax
mov dword [ebp - 0x40], eax
cmp word [ebx + 0x1c], 0
jne 0x5157fa
cmp word [ebx + 0x22], 1
je 0x51580f
cmp word [ebx + 0x22], 5
jae 0x51580f
cmp word [ebx + 0x1c], 1
jne 0x515815
cmp word [ebx + 0x22], 3
je 0x51580f
cmp word [ebx + 0x22], 4
jne 0x515815
mov byte [ebp - 0x41], 1
jmp 0x515819
mov byte [ebp - 0x41], 0
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x51591f
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x515908
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov al, byte [ebp - 0x41]
sub al, 1
jb 0x5158bc
jne 0x5158ca
mov edi, dword [ebp - 0x3c]
dec edi
test edi, edi
jl 0x5158ca
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
not al
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x24]
inc dword [ebp - 0x2c]
dec edi
jne 0x5158a5
jmp 0x5158ca
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
call fcn.0040873c
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5158fb
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x51591f
jmp 0x515913
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x51591f
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x515830
mov eax, dword [ebp - 0x28]
call fcn.00402a90
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 5
jne 0x515b00
cmp dword [ebx + 8], 4
jne 0x515b00
cmp dword [ebx + 0xc], 8
jne 0x515b00
cmp word [ebx + 0x22], 1
je 0x515968
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x515ae8
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x515ad1
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x515a36
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515a93
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 3], dl
inc eax
add dword [ebp - 0x60], 4
dec edi
jne 0x515a02
jmp 0x515a93
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515a75
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
dec edi
jne 0x515a56
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x515ac4
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x515ae8
jmp 0x515adc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x515ae8
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x51597f
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 5
jne 0x515df5
cmp dword [ebx + 8], 5
jl 0x515df5
cmp dword [ebx + 0xc], 8
jne 0x515df5
cmp dword [ebx + 8], 4
jle 0x515b37
cmp dword [ebx + 0x184], 0
jle 0x515b37
cmp byte [ebx + 0x180], 0
je 0x515b3b
xor eax, eax
jmp 0x515b3d
mov al, 1
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0
je 0x515b50
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x515b65
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x515ddd
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x515dc6
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x515ca6
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x60], eax
cmp byte [ebp - 0x49], 0
je 0x515c15
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x17c]
call fcn.00642570
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x34], eax
jmp 0x515c1a
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515d88
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 3], dl
inc eax
cmp byte [ebp - 0x49], 0
je 0x515c82
mov dl, byte [eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx], dl
inc dword [ebp - 0x34]
inc eax
mov edx, dword [ebx + 8]
sub edx, 4
sub edx, 2
jl 0x515c9a
inc edx
mov dword [ebp - 0x18], 2
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x515c79
jmp 0x515c9a
mov edx, dword [ebx + 8]
sub edx, 4
test edx, edx
jle 0x515c9a
mov dword [ebp - 0x18], 1
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x515c93
add dword [ebp - 0x60], 4
dec edi
jne 0x515c2a
jmp 0x515d88
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
cmp byte [ebp - 0x49], 0
je 0x515cdc
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x17c]
call fcn.00642570
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x34], eax
jmp 0x515ce1
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x60], edx
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515d6a
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 3], dl
inc eax
cmp byte [ebp - 0x49], 0
je 0x515d4b
mov dl, byte [eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx], dl
inc dword [ebp - 0x34]
inc eax
mov edx, dword [ebx + 8]
sub edx, 4
sub edx, 2
jl 0x515d63
inc edx
mov dword [ebp - 0x18], 2
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x515d42
jmp 0x515d63
mov edx, dword [ebx + 8]
sub edx, 4
test edx, edx
jle 0x515d63
mov dword [ebp - 0x18], 1
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x515d5c
add dword [ebp - 0x60], 4
dec edi
jne 0x515cf3
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x515db9
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x515ddd
jmp 0x515dd1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x515ddd
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x515b7c
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 5
jne 0x516064
cmp dword [ebx + 8], 4
jne 0x516064
cmp dword [ebx + 0xc], 0x10
jne 0x516064
cmp word [ebx + 0x22], 1
je 0x515e29
mov eax, dword [ebp + 0x10]
shl eax, 3
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x51604c
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x516035
cmp byte [ebx + 0x174], 0
jne 0x515e8e
mov edx, dword [ebp + 0x10]
shl edx, 2
mov eax, dword [ebp - 0x20]
call fcn.0051404c
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x515f4a
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jns 0x515ec7
add eax, 3
sar eax, 2
shl eax, 2
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515ff7
inc edi
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax], dl
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax + 1], dl
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax + 2], dl
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax + 3], dl
add dword [ebp - 0x1c], 2
add dword [ebp - 0x60], 4
dec edi
jne 0x515ee3
jmp 0x515ff7
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a70
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x515fd1
inc edi
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
dec edi
jne 0x515f7e
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x30]
call edi
mov eax, dword [ebp - 0x30]
call fcn.00402a90
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x516028
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x51604c
jmp 0x516040
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x51604c
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x515e40
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
jmp 0x516187
cmp word [ebx + 0x1c], 8
jne 0x516187
cmp dword [ebx + 8], 3
jne 0x516187
cmp dword [ebx + 0xc], 8
jne 0x516187
cmp word [ebx + 0x22], 1
je 0x516098
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
call fcn.00402a70
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x516178
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00513858
test al, al
je 0x516161
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.00513c98
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x8a99d0]
mov edi, dword [edi]
mov ecx, esi
mov dl, 4
mov eax, dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x516154
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f88
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x516178
jmp 0x51616c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x516178
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x5160af
cmp word [ebx + 0x22], 1
je 0x516187
mov eax, dword [ebp - 0x20]
call fcn.00402a90
cmp word [ebx + 0x22], 5
jne 0x51619b
lea ecx, [ebp - 0x48]
xor edx, edx
xor eax, eax
call dword [ebx + 0x170]
cmp dword [ebp - 0x68], 0
je 0x5161a9
mov eax, dword [ebp - 0x68]
call fcn.00402a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5161ce
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00404b58
ret