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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a684d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
cmp word [ebx + 0x1e], 1
jne 0x5a56a9
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fild dword [ebx + 0xc]
fdiv dword [0x5a6860]
fmulp st(1)
call fcn.00403000
mov dword [ebp - 0x34], eax
jmp 0x5a56bf
fild dword [ebp + 0x10]
fild dword [ebx + 0xc]
fdiv dword [0x5a6860]
fmulp st(1)
call fcn.00403000
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0xc], 4
jne 0x5a56cb
test byte [ebp + 0x10], 1
jne 0x5a56e4
cmp dword [ebx + 0xc], 1
jne 0x5a56e7
mov eax, dword [ebp + 0x10]
and eax, 0x80000007
jns 0x5a56e0
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
je 0x5a56e7
inc dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x40], eax
cmp word [ebx + 0x22], 7
jne 0x5a5888
cmp dword [ebx + 0x6c], 0
jne 0x5a5888
mov dl, 1
mov eax, dword [0x419a68]
call fcn.00404478
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x48]
call fcn.0041e958
mov dl, 1
mov eax, dword [0x61dc0c]
call fcn.00622f7c
mov dword [ebp - 0x50], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
call dword [esi + 0x18]
cmp dword [ebx + 0x28], 1
je 0x5a5755
cmp dword [ebx + 0x38], 1
jne 0x5a5769
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x88]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x5a57b1
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a579a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00403000
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 - 0x88], eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x60], eax
cmp word [ebx + 0x1c], 2
sete byte [ebp - 0x51]
mov eax, dword [ebx + 0x174]
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
lea eax, [ebx + 0x174]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
mov al, byte [ebp - 0x51]
push eax
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.00590850
mov eax, dword [ebx + 0x174]
mov edx, esi
call fcn.0063124c
mov eax, dword [ebx + 0x174]
mov edx, edi
call fcn.00631260
mov eax, dword [ebp - 0x60]
cmp byte [eax], 0
jne 0x5a5873
cmp byte [ebp - 0x51], 0
je 0x5a584c
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x5a584c
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.005ffd64
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a5827
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 - 0x50]
call fcn.00625a84
mov eax, dword [ebp - 0x50]
call fcn.004044a8
mov eax, dword [ebp - 0x48]
call fcn.004044a8
jmp 0x5a6820
cmp word [ebx + 0x22], 7
jne 0x5a5a30
cmp dword [ebx + 0x6c], 0
je 0x5a5a30
mov dl, 1
mov eax, dword [0x419a68]
call fcn.00404478
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x48]
call fcn.0041e958
mov dl, 1
mov eax, dword [0x419a68]
call fcn.00404478
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x4c]
call fcn.0041e958
mov dl, 1
mov eax, dword [0x61dc0c]
call fcn.00622f7c
mov dword [ebp - 0x50], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
call dword [esi + 0x18]
cmp dword [ebx + 0x28], 1
je 0x5a591a
cmp dword [ebx + 0x38], 1
jne 0x5a592e
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x88]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x5a5976
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a595f
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00403000
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 - 0x88], eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x60], eax
cmp word [ebx + 0x1c], 2
sete byte [ebp - 0x51]
lea eax, [ebx + 0x174]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
mov al, byte [ebp - 0x51]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
call fcn.00590850
mov eax, dword [ebp - 0x60]
cmp byte [eax], 0
jne 0x5a5a13
cmp byte [ebp - 0x51], 0
je 0x5a59ec
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x5a59ec
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.005ffd64
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a59c7
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 - 0x50]
call fcn.00625a84
mov eax, dword [ebp - 0x50]
call fcn.004044a8
mov eax, dword [ebp - 0x48]
call fcn.004044a8
mov eax, dword [ebp - 0x4c]
call fcn.004044a8
jmp 0x5a6820
cmp word [ebx + 0x1c], 2
jne 0x5a5bfc
mov eax, dword [ebx + 8]
cmp eax, 3
je 0x5a5a4c
cmp eax, 4
jne 0x5a5bfc
cmp dword [ebx + 0xc], 8
jne 0x5a5bfc
cmp dword [ebx + 8], 4
jne 0x5a5a65
cmp dword [ebx + 0x180], 2
je 0x5a5a72
cmp dword [ebx + 8], 4
jne 0x5a5a7b
cmp word [ebx + 0x1c], 2
jne 0x5a5a7b
cmp byte [ebx + 0x17c], 0
je 0x5a5a7f
xor eax, eax
jmp 0x5a5a81
mov al, 1
mov byte [ebp - 0x41], al
cmp byte [ebp - 0x41], 0
je 0x5a5a94
mov eax, dword [ebx + 0x178]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x5a5aa9
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a5be4
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a5bcd
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 - 0x41], 0
je 0x5a5b61
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a5b8f
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.005faa7c
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 + 0x178]
mov edx, dword [ebp - 0x10]
call fcn.00620168
inc dword [ebp - 0x24]
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x5a5b1b
jmp 0x5a5b8f
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a5b8f
inc edi
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.005faa7c
mov eax, dword [ebx + 8]
add dword [ebp - 0x24], eax
add esi, 3
dec edi
jne 0x5a5b6a
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a5bc0
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a5be4
jmp 0x5a5bd8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a5be4
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a5ac0
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 2
jne 0x5a5d83
mov eax, dword [ebx + 8]
cmp eax, 3
je 0x5a5c18
cmp eax, 4
jne 0x5a5d83
cmp dword [ebx + 0xc], 0x10
jne 0x5a5d83
cmp word [ebx + 0x22], 1
je 0x5a5c39
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
add eax, eax
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a5d6b
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a5d54
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 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 [ebx + 0x170], 0
jne 0x5a5cd8
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a5d16
inc edi
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
and al, 0xff
mov byte [esi + 2], al
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
and al, 0xff
mov byte [esi + 1], al
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
and al, 0xff
mov byte [esi], al
add dword [ebp - 0x1c], 2
add esi, 3
dec edi
jne 0x5a5ca7
jmp 0x5a5d16
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a5d16
inc edi
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov byte [esi + 2], al
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov byte [esi + 1], al
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov byte [esi], al
add dword [ebp - 0x1c], 2
add esi, 3
dec edi
jne 0x5a5ce1
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a5d47
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a5d6b
jmp 0x5a5d5f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a5d6b
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a5c50
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 2
jne 0x5a5eba
cmp dword [ebx + 8], 1
jne 0x5a5eba
cmp dword [ebx + 0xc], 0x10
jne 0x5a5eba
cmp word [ebx + 0x22], 1
je 0x5a5db7
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a5ea2
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a5e8b
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 0x5a5e4d
inc edi
mov eax, dword [ebp - 0x24]
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 dword [ebp - 0x24], 2
add esi, 3
dec edi
jne 0x5a5e1c
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a5e7e
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a5ea2
jmp 0x5a5e96
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a5ea2
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a5dce
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 3
jne 0x5a612a
cmp dword [ebx + 0xc], 8
jg 0x5a612a
cmp dword [ebx + 8], 2
jne 0x5a601b
cmp dword [ebx + 0xc], 8
jne 0x5a601b
cmp word [ebx + 0x22], 1
je 0x5a5ef7
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a6003
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a5fec
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a5fae
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 + 0x178]
mov edx, dword [ebp - 0x14]
call fcn.00620168
inc dword [ebp - 0x24]
add esi, 3
inc dword [ebp - 0x14]
dec edi
jne 0x5a5f63
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a5fdf
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a6003
jmp 0x5a5ff7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a6003
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a5f0e
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x22], 1
jne 0x5a6028
cmp dword [ebx + 0xc], 8
jge 0x5a6033
mov eax, dword [ebp + 0x10]
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a610c
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a60f5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a60b7
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 0x5a6094
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a60e8
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a610c
jmp 0x5a6100
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a610c
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a604a
cmp word [ebx + 0x22], 1
jne 0x5a611d
cmp dword [ebx + 0xc], 8
jge 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 1
ja 0x5a629b
cmp dword [ebx + 8], 1
jne 0x5a629b
cmp dword [ebx + 0xc], 8
je 0x5a614f
cmp dword [ebx + 0xc], 4
jne 0x5a629b
cmp word [ebx + 0x22], 1
jne 0x5a615c
cmp dword [ebx + 0xc], 4
jne 0x5a6167
mov eax, dword [ebp + 0x10]
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a627d
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a6266
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp word [ebx + 0x1c], 0
jne 0x5a61ff
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a6228
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 0x5a61d3
jmp 0x5a6228
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a6228
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 0x5a6208
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a6259
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a627d
jmp 0x5a6271
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a627d
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a617e
cmp word [ebx + 0x22], 1
jne 0x5a628e
cmp dword [ebx + 0xc], 4
jne 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 1
ja 0x5a6481
cmp dword [ebx + 8], 1
jne 0x5a6481
cmp dword [ebx + 0xc], 0x10
jne 0x5a6481
cmp word [ebx + 0x22], 1
je 0x5a62ce
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a6469
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a6452
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.004057dc
mov eax, dword [ebp - 0x90]
mov edx, 0x5a686c
call fcn.004056c8
jne 0x5a6361
mov dword [ebp - 0x18], 4
jmp 0x5a6368
mov dword [ebp - 0x18], 8
cmp word [ebx + 0x1c], 0
jne 0x5a63c8
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a6414
inc edi
mov dl, byte [ebx + 0x170]
xor dl, 1
mov eax, dword [ebp - 0x30]
mov ax, word [eax]
call fcn.005a4344
mov edx, dword [ebp - 0x30]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
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 - 0x30], 2
add esi, 3
dec edi
jne 0x5a637c
jmp 0x5a6414
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x5a6414
inc edi
mov dl, byte [ebx + 0x170]
xor dl, 1
mov eax, dword [ebp - 0x30]
mov ax, word [eax]
call fcn.005a4344
mov edx, dword [ebp - 0x30]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
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 - 0x30], 2
add esi, 3
dec edi
jne 0x5a63d1
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a6445
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a6469
jmp 0x5a645d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a6469
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a62e5
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 1
ja 0x5a65f8
cmp dword [ebx + 8], 1
jne 0x5a65f8
cmp dword [ebx + 0xc], 1
jne 0x5a65f8
mov eax, dword [ebp + 0x10]
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
call fcn.00402a94
mov dword [ebp - 0x28], eax
mov cl, 0xff
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
call fcn.00408630
xor eax, eax
mov dword [ebp - 0x38], eax
cmp word [ebx + 0x1c], 0
jne 0x5a64dd
cmp word [ebx + 0x22], 1
je 0x5a64f2
cmp word [ebx + 0x22], 5
jae 0x5a64f2
cmp word [ebx + 0x1c], 1
jne 0x5a64f8
cmp word [ebx + 0x22], 2
jbe 0x5a64f8
cmp word [ebx + 0x22], 4
jae 0x5a64f8
mov byte [ebp - 0x39], 1
jmp 0x5a64fc
mov byte [ebp - 0x39], 0
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a65e3
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a65cc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov al, byte [ebp - 0x39]
sub al, 1
jb 0x5a6580
jne 0x5a658e
mov edi, dword [ebp - 0x34]
dec edi
test edi, edi
jl 0x5a658e
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 0x5a6569
jmp 0x5a658e
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
call fcn.00408628
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x5a65bf
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a65e3
jmp 0x5a65d7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a65e3
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a6513
mov eax, dword [ebp - 0x28]
call fcn.00402ab4
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 5
jne 0x5a671f
cmp dword [ebx + 8], 4
jne 0x5a671f
cmp dword [ebx + 0xc], 8
jne 0x5a671f
cmp word [ebx + 0x22], 1
je 0x5a662c
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a6707
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a66f0
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]
shl edi, 2
dec edi
test edi, edi
jl 0x5a669b
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
dec edi
jne 0x5a6691
push 0
mov eax, dword [ebp + 0x10]
push eax
mov edi, dword [0x7a85b4]
mov edi, dword [edi]
mov ecx, esi
mov dl, 1
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 0x5a66e3
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a6707
jmp 0x5a66fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a6707
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a6643
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
jmp 0x5a6820
cmp word [ebx + 0x1c], 8
jne 0x5a6820
cmp dword [ebx + 8], 3
jne 0x5a6820
cmp dword [ebx + 0xc], 8
jne 0x5a6820
cmp word [ebx + 0x22], 1
je 0x5a6753
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
call fcn.00402a94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x5a6811
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 - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
call fcn.005a50b4
test al, al
je 0x5a67fa
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 0
mov eax, dword [ebp + 0x10]
push eax
mov edi, dword [0x7a85b4]
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 0x5a67ed
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403000
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 0x5a6811
jmp 0x5a6805
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x5a6811
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x5a676a
cmp word [ebx + 0x22], 1
je 0x5a6820
mov eax, dword [ebp - 0x20]
call fcn.00402ab4
cmp word [ebx + 0x22], 5
jne 0x5a6834
lea ecx, [ebp - 0x40]
xor edx, edx
xor eax, eax
call dword [ebx + 0x16c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6854
lea eax, [ebp - 0x90]
call fcn.004052bc
ret