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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x521de7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
cmp word [ebx + 0x1e], 1
jne 0x520439
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
fild dword [ebp - 0x94]
fild dword [ebx + 0xc]
fdiv dword [0x521df8]
fmulp st(1)
call fcn.00402ccc
mov dword [ebp - 0x30], eax
jmp 0x52044f
fild dword [ebp + 0x10]
fild dword [ebx + 0xc]
fdiv dword [0x521df8]
fmulp st(1)
call fcn.00402ccc
mov dword [ebp - 0x30], eax
cmp dword [ebx + 0xc], 4
jne 0x52045b
test byte [ebp + 0x10], 1
jne 0x520474
cmp dword [ebx + 0xc], 1
jne 0x520477
mov eax, dword [ebp + 0x10]
and eax, 0x80000007
jns 0x520470
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
je 0x520477
inc dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp word [ebx + 0x22], 7
jne 0x520619
cmp dword [ebx + 0x6c], 0
jne 0x520619
mov dl, 1
mov eax, dword [0x419d80]
call fcn.00403a3c
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x44]
call fcn.0041e620
mov dl, 1
mov eax, dword [0x5a1a08]
call fcn.005a7948
mov dword [ebp - 0x4c], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax]
call dword [esi + 0x24]
cmp dword [ebx + 0x28], 1
je 0x5204e5
cmp dword [ebx + 0x38], 1
jne 0x5204f9
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x90]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x520541
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x52052a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00402ccc
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 - 0x90], eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x4d], 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 - 0x90]
push eax
push 0
mov al, byte [ebp - 0x4d]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0050a2d4
mov eax, dword [ebx + 0x178]
mov edx, esi
call fcn.0058cbb8
mov eax, dword [ebx + 0x178]
mov edx, edi
call fcn.0058cbe8
mov eax, dword [ebp - 0x68]
cmp byte [eax], 0
jne 0x520604
cmp byte [ebp - 0x4d], 0
je 0x5205dd
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x5205dd
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.00579890
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5205b8
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 - 0x4c]
call fcn.005aae60
mov eax, dword [ebp - 0x4c]
call fcn.00403a6c
mov eax, dword [ebp - 0x44]
call fcn.00403a6c
jmp 0x521dba
cmp word [ebx + 0x22], 7
jne 0x5207c7
cmp dword [ebx + 0x6c], 0
je 0x5207c7
mov dl, 1
mov eax, dword [0x419d80]
call fcn.00403a3c
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x44]
call fcn.0041e620
mov dl, 1
mov eax, dword [0x419d80]
call fcn.00403a3c
mov dword [ebp - 0x48], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x48]
call fcn.0041e620
mov dl, 1
mov eax, dword [0x5a1a08]
call fcn.005a7948
mov dword [ebp - 0x4c], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax]
call dword [esi + 0x24]
cmp dword [ebx + 0x28], 1
je 0x5206ab
cmp dword [ebx + 0x38], 1
jne 0x5206bf
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x90]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x520707
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5206f0
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00402ccc
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 - 0x90], eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x68], eax
cmp word [ebx + 0x1c], 2
sete byte [ebp - 0x4d]
lea eax, [ebx + 0x178]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
mov al, byte [ebp - 0x4d]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
call fcn.0050a2d4
mov eax, dword [ebp - 0x68]
cmp byte [eax], 0
jne 0x5207aa
cmp byte [ebp - 0x4d], 0
je 0x520783
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x520783
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.00579890
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x52075e
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 - 0x4c]
call fcn.005aae60
mov eax, dword [ebp - 0x4c]
call fcn.00403a6c
mov eax, dword [ebp - 0x44]
call fcn.00403a6c
mov eax, dword [ebp - 0x48]
call fcn.00403a6c
jmp 0x521dba
cmp word [ebx + 0x1c], 2
jne 0x52097e
cmp dword [ebx + 8], 3
je 0x5207e2
cmp dword [ebx + 8], 4
jne 0x52097e
cmp dword [ebx + 0xc], 8
jne 0x52097e
cmp dword [ebx + 8], 4
jne 0x5207fb
cmp dword [ebx + 0x184], 2
je 0x520808
cmp dword [ebx + 8], 4
jne 0x520811
cmp word [ebx + 0x1c], 2
jne 0x520811
cmp byte [ebx + 0x180], 0
je 0x520815
xor eax, eax
jmp 0x520817
mov al, 1
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
je 0x52082a
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x52083f
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x520966
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x52094f
mov edi, dword [ebp - 0x1c]
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 - 0x3d], 0
je 0x5208f1
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x520911
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x10], 0
mov ax, word [edi]
mov word [esi], ax
mov al, byte [edi + 2]
mov byte [esi + 2], al
mov edx, esi
lea eax, [esi + 2]
call fcn.005708b8
add edi, 3
xor eax, eax
mov al, byte [edi]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.005a4084
inc edi
add esi, 3
inc dword [ebp - 0x10]
dec dword [ebp - 0x5c]
jne 0x5208b1
jmp 0x520911
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov eax, dword [0x660034]
mov eax, dword [eax]
mov ecx, esi
xor edx, edx
mov esi, edi
mov edi, eax
mov eax, esi
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x520942
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x520966
jmp 0x52095a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x520966
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x520856
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 2
jne 0x520b93
cmp dword [ebx + 8], 3
je 0x520999
cmp dword [ebx + 8], 4
jne 0x520b93
cmp dword [ebx + 0xc], 0x10
jne 0x520b93
cmp word [ebx + 0x22], 1
je 0x5209ba
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
add eax, eax
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x520b7b
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x520b64
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 8
jne 0x520ac7
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]
cdq
idiv dword [ebx + 8]
add eax, eax
lea eax, [eax + eax*2]
add esi, eax
cmp byte [ebx + 0x174], 0
je 0x520a78
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x520b26
inc eax
mov dword [ebp - 0x5c], eax
mov ax, word [edi]
mov word [esi], ax
add edi, 2
mov ax, word [edi]
mov word [esi + 2], ax
add edi, 2
mov ax, word [edi]
mov word [esi + 4], ax
add edi, 2
cmp dword [ebx + 8], 4
jne 0x520a6b
add edi, 2
add esi, 6
dec dword [ebp - 0x5c]
jne 0x520a45
jmp 0x520b26
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x520b26
inc eax
mov dword [ebp - 0x5c], eax
mov ax, word [edi]
call fcn.005a287c
mov word [esi], ax
add edi, 2
mov ax, word [edi]
call fcn.005a287c
mov word [esi + 2], ax
add edi, 2
mov ax, word [edi]
call fcn.005a287c
mov word [esi + 4], ax
add edi, 2
cmp dword [ebx + 8], 4
jne 0x520abd
add edi, 2
add esi, 6
dec dword [ebp - 0x5c]
jne 0x520a88
jmp 0x520b26
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 [ebx + 0x174], 0
jne 0x520b06
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov eax, dword [0x660034]
mov eax, dword [eax]
mov ecx, esi
mov dl, 7
mov esi, edi
mov edi, eax
mov eax, esi
call edi
jmp 0x520b26
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov eax, dword [0x660034]
mov eax, dword [eax]
mov ecx, esi
mov dl, 6
mov esi, edi
mov edi, eax
mov eax, esi
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x520b57
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x520b7b
jmp 0x520b6f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x520b7b
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5209d1
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 2
jne 0x520cca
cmp dword [ebx + 8], 1
jne 0x520cca
cmp dword [ebx + 0xc], 0x10
jne 0x520cca
cmp word [ebx + 0x22], 1
je 0x520bc7
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x520cb2
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x520c9b
mov edi, dword [ebp - 0x1c]
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 + 0x10]
dec eax
test eax, eax
jl 0x520c5d
inc eax
mov dword [ebp - 0x5c], eax
mov eax, edi
movzx edx, word [eax]
shr edx, 0xa
shl edx, 3
mov byte [esi + 2], dl
movzx edx, word [eax]
shr edx, 5
and dl, 0x1f
shl edx, 3
mov byte [esi + 1], dl
mov al, byte [eax]
and al, 0x1f
shl eax, 3
mov byte [esi], al
add edi, 2
add esi, 3
dec dword [ebp - 0x5c]
jne 0x520c2c
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x520c8e
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x520cb2
jmp 0x520ca6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x520cb2
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x520bde
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 3
jne 0x520f5b
cmp dword [ebx + 0xc], 8
jg 0x520f5b
cmp dword [ebx + 8], 2
jne 0x520e25
cmp dword [ebx + 0xc], 8
jne 0x520e25
cmp word [ebx + 0x22], 1
je 0x520d07
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x520e0d
inc eax
mov dword [ebp - 0x58], 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
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x520df6
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x520db8
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov al, byte [edi]
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 edi
xor eax, eax
mov al, byte [edi]
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.005a4084
inc edi
add esi, 3
inc dword [ebp - 0x14]
dec dword [ebp - 0x5c]
jne 0x520d73
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x520de9
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x520e0d
jmp 0x520e01
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x520e0d
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x520d1e
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x22], 1
jne 0x520e32
cmp dword [ebx + 0xc], 8
jge 0x520e3d
mov eax, dword [ebp + 0x10]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x520f3d
inc eax
mov dword [ebp - 0x58], 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
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x520f26
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 2
jne 0x520ebb
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x520ee8
inc eax
mov dword [ebp - 0x5c], eax
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
dec dword [ebp - 0x5c]
jne 0x520eae
jmp 0x520ee8
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x520ee8
inc eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov al, byte [edi]
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 edi
add esi, 3
dec dword [ebp - 0x5c]
jne 0x520ec7
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x520f19
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x520f3d
jmp 0x520f31
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x520f3d
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x520e54
cmp word [ebx + 0x22], 1
jne 0x520f4e
cmp dword [ebx + 0xc], 8
jge 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 1
ja 0x5210e9
cmp dword [ebx + 8], 1
jne 0x5210e9
cmp dword [ebx + 0xc], 8
je 0x520f80
cmp dword [ebx + 0xc], 4
jne 0x5210e9
cmp word [ebx + 0x22], 1
jne 0x520f8d
cmp dword [ebx + 0xc], 4
jne 0x520f98
mov eax, dword [ebp + 0x10]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5210cb
inc eax
mov dword [ebp - 0x58], 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
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x5210b4
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x521016
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x521076
inc eax
mov dword [ebp - 0x5c], eax
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
dec dword [ebp - 0x5c]
jne 0x521009
jmp 0x521076
cmp word [ebx + 0x1c], 0
jne 0x521053
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x521076
inc eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov al, byte [edi]
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 edi
add esi, 3
dec dword [ebp - 0x5c]
jne 0x521029
jmp 0x521076
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x521076
inc eax
mov dword [ebp - 0x5c], eax
mov al, byte [edi]
mov byte [esi + 2], al
mov al, byte [edi]
mov byte [esi + 1], al
mov al, byte [edi]
mov byte [esi], al
inc edi
add esi, 3
dec dword [ebp - 0x5c]
jne 0x52105f
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5210a7
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x5210cb
jmp 0x5210bf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5210cb
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x520faf
cmp word [ebx + 0x22], 1
jne 0x5210dc
cmp dword [ebx + 0xc], 4
jne 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 1
ja 0x5212c5
cmp dword [ebx + 8], 2
jne 0x5212c5
cmp dword [ebx + 0xc], 8
jne 0x5212c5
mov al, byte [ebx + 0x180]
xor al, 1
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
je 0x521123
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x521137
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5212a7
inc eax
mov dword [ebp - 0x58], 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
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x521290
mov edi, dword [ebp - 0x1c]
cmp word [ebx + 0x1c], 0
jne 0x521200
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x521252
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov al, byte [edi]
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 - 0x3d], 0
je 0x5211f0
inc edi
xor eax, eax
mov al, byte [edi]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.005a4084
inc edi
jmp 0x5211f3
add edi, 2
add esi, 3
inc dword [ebp - 0x10]
dec dword [ebp - 0x5c]
jne 0x5211ae
jmp 0x521252
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x521252
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x10], 0
mov al, byte [edi]
mov byte [esi + 2], al
mov al, byte [edi]
mov byte [esi + 1], al
mov al, byte [edi]
mov byte [esi], al
cmp byte [ebp - 0x3d], 0
je 0x521244
inc edi
xor eax, eax
mov al, byte [edi]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.005a4084
inc edi
jmp 0x521247
add edi, 2
add esi, 3
inc dword [ebp - 0x10]
dec dword [ebp - 0x5c]
jne 0x521213
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x521283
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x5212a7
jmp 0x52129b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5212a7
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x52114e
cmp word [ebx + 0x22], 1
jne 0x5212b8
cmp dword [ebx + 0xc], 4
jne 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 1
ja 0x521558
cmp dword [ebx + 8], 1
jne 0x521558
cmp dword [ebx + 0xc], 0x10
jne 0x521558
cmp word [ebx + 0x22], 1
je 0x5212f8
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x521540
inc eax
mov dword [ebp - 0x58], 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
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x521529
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.00404d6c
mov eax, dword [ebp - 0x98]
mov edx, 0x521e04
call fcn.00404c58
jne 0x52138b
mov dword [ebp - 0x18], 4
jmp 0x521392
mov dword [ebp - 0x18], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 4
jne 0x521435
cmp word [ebx + 0x1c], 0
jne 0x5213f1
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x5214eb
inc eax
mov dword [ebp - 0x5c], eax
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x2c]
mov ax, word [eax]
call fcn.005b51fc
mov edx, dword [ebp - 0x2c]
mov word [edx], ax
mov eax, dword [ebp - 0x2c]
mov dx, 0xffff
sub dx, word [eax]
mov word [esi], dx
add dword [ebp - 0x2c], 2
add esi, 2
dec dword [ebp - 0x5c]
jne 0x5213b9
jmp 0x5214eb
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x5214eb
inc eax
mov dword [ebp - 0x5c], eax
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x2c]
mov ax, word [eax]
call fcn.005b51fc
mov edx, dword [ebp - 0x2c]
mov word [edx], ax
mov eax, dword [ebp - 0x2c]
mov ax, word [eax]
mov word [esi], ax
add dword [ebp - 0x2c], 2
add esi, 2
dec dword [ebp - 0x5c]
jne 0x521401
jmp 0x5214eb
cmp word [ebx + 0x1c], 0
jne 0x52149a
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x5214eb
inc eax
mov dword [ebp - 0x5c], eax
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x2c]
mov ax, word [eax]
call fcn.005b51fc
mov edx, dword [ebp - 0x2c]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
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 - 0x2c], 2
add esi, 3
dec dword [ebp - 0x5c]
jne 0x52144c
jmp 0x5214eb
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x5214eb
inc eax
mov dword [ebp - 0x5c], eax
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x2c]
mov ax, word [eax]
call fcn.005b51fc
mov edx, dword [ebp - 0x2c]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
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 - 0x2c], 2
add esi, 3
dec dword [ebp - 0x5c]
jne 0x5214a6
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x52151c
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x521540
jmp 0x521534
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x521540
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x52130f
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 1
ja 0x5216cb
cmp dword [ebx + 8], 1
jne 0x5216cb
cmp dword [ebx + 0xc], 1
jne 0x5216cb
mov eax, dword [ebp + 0x10]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
call fcn.004027ac
mov dword [ebp - 0x20], eax
mov cl, 0xff
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
call fcn.00407e20
xor eax, eax
mov dword [ebp - 0x34], eax
cmp word [ebx + 0x1c], 0
jne 0x5215b4
cmp word [ebx + 0x22], 1
je 0x5215c9
cmp word [ebx + 0x22], 5
jae 0x5215c9
cmp word [ebx + 0x1c], 1
jne 0x5215cf
cmp word [ebx + 0x22], 2
jbe 0x5215cf
cmp word [ebx + 0x22], 4
jae 0x5215cf
mov byte [ebp - 0x35], 1
jmp 0x5215d3
mov byte [ebp - 0x35], 0
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5216b6
inc eax
mov dword [ebp - 0x58], 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
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x52169f
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
mov al, byte [ebp - 0x35]
sub al, 1
jb 0x521654
jne 0x521661
mov eax, dword [ebp - 0x30]
dec eax
test eax, eax
jl 0x521661
inc eax
mov dword [ebp - 0x5c], eax
mov al, byte [edi]
not al
mov edx, dword [ebp - 0x24]
mov byte [edx], al
inc edi
inc dword [ebp - 0x24]
dec dword [ebp - 0x5c]
jne 0x521640
jmp 0x521661
mov ecx, dword [ebp - 0x30]
mov edx, edi
mov eax, dword [ebp - 0x24]
call fcn.00407e18
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x521692
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x5216b6
jmp 0x5216aa
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5216b6
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5215ea
mov eax, dword [ebp - 0x20]
call fcn.004027cc
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 5
jne 0x521886
cmp dword [ebx + 8], 4
jne 0x521886
cmp dword [ebx + 0xc], 8
jne 0x521886
cmp word [ebx + 0x22], 1
je 0x5216ff
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x52186e
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x521857
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x5217b7
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 - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
dec edx
test edx, edx
jl 0x521819
inc edx
mov dword [ebp - 0x5c], edx
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 3], dl
inc eax
add dword [ebp - 0x54], 4
dec dword [ebp - 0x5c]
jne 0x521781
jmp 0x521819
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 - 0x1c]
mov edx, dword [ebp + 0x10]
dec edx
test edx, edx
jl 0x5217fb
inc edx
mov dword [ebp - 0x5c], edx
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 dword [ebp - 0x5c]
jne 0x5217da
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x660034]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
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 0x52184a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x52186e
jmp 0x521862
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x52186e
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x521716
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 5
jne 0x521a91
cmp dword [ebx + 8], 5
jl 0x521a91
cmp dword [ebx + 0xc], 8
jne 0x521a91
cmp word [ebx + 0x22], 1
je 0x5218ba
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x521a79
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x521a62
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x521991
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 - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
dec edx
test edx, edx
jl 0x521a24
inc edx
mov dword [ebp - 0x5c], edx
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 3], dl
inc eax
mov edx, dword [ebx + 8]
sub edx, 4
test edx, edx
jle 0x521983
mov dword [ebp - 0x18], 1
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x52197c
add dword [ebp - 0x54], 4
dec dword [ebp - 0x5c]
jne 0x521940
jmp 0x521a24
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 - 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp + 0x10]
dec edx
test edx, edx
jl 0x521a06
inc edx
mov dword [ebp - 0x5c], edx
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 3], dl
inc eax
mov edx, dword [ebx + 8]
sub edx, 4
test edx, edx
jle 0x5219fd
mov dword [ebp - 0x18], 1
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x5219f6
add dword [ebp - 0x54], 4
dec dword [ebp - 0x5c]
jne 0x5219ba
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x660034]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
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 0x521a55
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x521a79
jmp 0x521a6d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x521a79
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5218d1
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 5
jne 0x521cb2
cmp dword [ebx + 8], 4
jne 0x521cb2
cmp dword [ebx + 0xc], 0x10
jne 0x521cb2
cmp word [ebx + 0x22], 1
je 0x521ac5
mov eax, dword [ebp + 0x10]
shl eax, 3
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x521c9a
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x521c83
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x521ba6
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 - 0x54], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jns 0x521b31
add eax, 3
sar eax, 2
shl eax, 2
add dword [ebp - 0x54], eax
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
dec eax
test eax, eax
jl 0x521c45
inc eax
mov dword [ebp - 0x5c], eax
movzx eax, word [edi]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x54]
mov byte [eax], dl
add edi, 2
movzx eax, word [edi]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x54]
mov byte [eax + 1], dl
add edi, 2
movzx eax, word [edi]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x54]
mov byte [eax + 2], dl
add edi, 2
movzx eax, word [edi]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x54]
mov byte [eax + 3], dl
add edi, 2
add dword [ebp - 0x54], 4
dec dword [ebp - 0x5c]
jne 0x521b4d
jmp 0x521c45
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 - 0x1c]
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.004027ac
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
dec edx
test edx, edx
jl 0x521c1f
inc edx
mov dword [ebp - 0x5c], edx
movzx edx, word [edi]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add edi, 2
movzx edx, word [edi]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add edi, 2
movzx edx, word [edi]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add edi, 2
movzx edx, word [edi]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add edi, 2
dec dword [ebp - 0x5c]
jne 0x521bda
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x660034]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x28]
call edi
mov eax, dword [ebp - 0x28]
call fcn.004027cc
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x521c76
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x521c9a
jmp 0x521c8e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x521c9a
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x521adc
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
jmp 0x521dba
cmp word [ebx + 0x1c], 8
jne 0x521dba
cmp dword [ebx + 8], 3
jne 0x521dba
cmp dword [ebx + 0xc], 8
jne 0x521dba
cmp word [ebx + 0x22], 1
je 0x521ce6
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
call fcn.004027ac
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x521dab
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.0051fd14
test al, al
je 0x521d94
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 [0x660034]
mov edi, dword [edi]
mov ecx, esi
mov dl, 4
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 0x521d87
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402ccc
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 0x521dab
jmp 0x521d9f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x521dab
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x521cfd
cmp word [ebx + 0x22], 1
je 0x521dba
mov eax, dword [ebp - 0x1c]
call fcn.004027cc
cmp word [ebx + 0x22], 5
jne 0x521dce
lea ecx, [ebp - 0x3c]
xor edx, edx
xor eax, eax
call dword [ebx + 0x170]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521dee
lea eax, [ebp - 0x98]
call fcn.0040485c
ret