Function at 0x689834
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff34
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x68a81d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0051bdc8
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
call fcn.0046a6e0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xe8], eax
mov dword [ecx + 0xec], edx
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x90]
test al, al
je 0x68a79e
mov eax, dword [ebp - 0xc]
add eax, 0x44
mov dword [ebp - 0x54], eax
xor edx, edx
push ebp
push 0x68a797
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
lea eax, [ebp - 0x94]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
mov edi, dword [ebp - 0xc]
lea esi, [ebp - 0x94]
add edi, 0xd0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xd0
push eax
lea eax, [ebp - 0x98]
mov edx, dword [0x6d7fdc]
call fcn.0043ca78
mov eax, dword [ebp - 0x98]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov si, 0xfffd
call fcn.00408b4c
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x38]
xor edx, edx
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0xe8]
adc edx, dword [ecx + 0xec]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0046a700
lea edx, [ebp - 0x12]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0046b648
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 2
je 0x689981
movzx eax, word [ebp - 0x12]
xchg al, ah
mov word [ebp - 0x12], ax
movzx eax, word [ebp - 0x12]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xf0
mov ecx, 1
mov edx, dword [0x682b78]
call fcn.0040d034
add esp, 4
movzx eax, word [ebp - 0x12]
mov ecx, eax
add ecx, ecx
add ecx, ecx
lea ecx, [ecx + ecx*2]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xf0]
mov eax, dword [ebp - 0x10]
call fcn.0046b648
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 2
je 0x6899d0
mov eax, dword [ebp - 0xc]
call fcn.006896c0
mov eax, dword [ebp - 0xc]
call fcn.00689698
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 1
je 0x689a09
lea eax, [ebp - 4]
push eax
mov ecx, 0x144
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
lea eax, [ebp - 8]
push eax
mov ecx, 0x145
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 1
jne 0x689a16
mov al, 1
jmp 0x689a34
mov eax, dword [ebp - 4]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x689a2d
mov eax, dword [ebp - 0x64]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
sete al
test al, al
je 0x689a3c
mov al, 1
jmp 0x689a5a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x689a53
mov eax, dword [ebp - 0x68]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
sete al
test al, al
je 0x689a86
lea eax, [ebp - 4]
push eax
mov ecx, 0x111
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
lea eax, [ebp - 8]
push eax
mov ecx, 0x117
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x40]
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 2
je 0x689aa5
movzx edx, byte [0x68a82c]
mov eax, ebx
call fcn.00672af4
jmp 0x689ab3
movzx edx, byte [0x68a830]
mov eax, ebx
call fcn.00672af4
mov eax, dword [ebp - 0x54]
movzx edx, byte [eax + 0x11]
mov eax, ebx
call fcn.0067968c
cmp byte [ebx + 5], 0x10
jne 0x689ad2
mov dl, 8
mov eax, ebx
call fcn.00679768
jmp 0x689add
movzx edx, byte [ebx + 5]
mov eax, ebx
call fcn.00679768
mov eax, dword [ebp - 0x54]
movzx edx, byte [eax + 0x10]
mov eax, ebx
call fcn.006796f0
movzx eax, byte [ebx + 0x13c]
cmp eax, 0xf
ja case.0x689afe.0
movzx eax, byte [eax + 0x689b05]
jmp dword [eax*4 + 0x689b15]
mov dl, 8
mov eax, ebx
call fcn.006797cc
jmp 0x689b75
mov dl, 7
mov eax, ebx
call fcn.006797cc
jmp 0x689b75
mov dl, 7
mov eax, ebx
call fcn.006797cc
jmp 0x689b75
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x25], 0
je 0x689b5c
mov dl, 4
mov eax, ebx
call fcn.006796f0
mov dl, 1
mov eax, ebx
call fcn.006797cc
jmp 0x689b75
movzx edx, byte [ebx + 0x13c]
mov eax, ebx
call fcn.006797cc
mov eax, dword [ebp - 0x54]
movzx edx, byte [eax + 0x12]
mov eax, ebx
call fcn.00679704
cmp byte [ebx + 0x13c], 0xa
jne 0x689b97
mov dl, 3
mov eax, ebx
call fcn.006797e0
jmp 0x689ba5
mov eax, dword [ebp - 0x54]
movzx edx, byte [eax + 0x12]
mov eax, ebx
call fcn.006797e0
cmp byte [ebx + 0x13c], 0xb
jne 0x689bc2
movzx edx, byte [ebx + 0x148]
or dl, byte [0x68a834]
mov eax, ebx
call fcn.00672af4
cmp byte [ebx + 0x13c], 4
jne 0x689bd7
mov dl, 3
mov eax, dword [ebp - 0xc]
call fcn.0051c140
jmp 0x689bed
mov edx, 1
mov eax, ebx
call fcn.00679208
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0051c140
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x54]
cmp dword [eax + 8], 0
je 0x689c1b
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0xc], 0
jne 0x689c53
mov eax, 0x68a844
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0x11
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
mov edx, dword [0x6d81f8]
call fcn.0043ca78
mov eax, dword [ebp - 0xa4]
xor ecx, ecx
pop edx
call fcn.00686954
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xd8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
movzx eax, byte [eax + 0x13d]
sub al, 1
je 0x689c7d
add al, 0xfe
sub al, 2
jae 0x689d76
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
cmp byte [eax + 0x13d], 1
jne 0x689d55
push 0
lea ecx, [ebp - 0x2c]
mov edx, 0x140
mov eax, dword [ebp - 0xc]
call fcn.006894e4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
jbe 0x689dd2
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0xe8]
adc edx, dword [ecx + 0xec]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0046a700
mov ecx, dword [ebp - 0x2c]
add ecx, ecx
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xf4]
mov eax, dword [ebp - 0x10]
call fcn.0046b648
push 6
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xf4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x2c]
mov ecx, 3
xor edx, edx
div ecx
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*2 + 0xf4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x2c]
add eax, eax
mov ecx, 3
xor edx, edx
div ecx
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*2 + 0xf4]
mov dword [ebp - 0xa8], eax
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
mov ecx, 2
call fcn.006798e8
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x689dd2
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 4
setne dl
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
call fcn.00679e10
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x689dd2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
cmp byte [eax + 0x13c], 0xf
jne 0x689dd2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x720]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x689dab
mov eax, dword [ebp - 0x70]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x40]
movzx eax, byte [eax]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x40]
movzx eax, byte [eax + 1]
push eax
mov ecx, dword [ebp - 0x70]
dec ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
call fcn.0067a03c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
cmp byte [eax + 0x13c], 0xf
je 0x689e03
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x13]
mov edx, dword [ebp - 0x54]
imul dword [edx + 8]
add eax, 7
test eax, eax
jns 0x689df8
add eax, 7
sar eax, 3
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x3c], eax
jmp 0x689e4d
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x11]
mov edx, dword [ebp - 0x54]
imul dword [edx + 8]
add eax, eax
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x40]
movzx edx, byte [edx]
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x40]
movzx ecx, byte [ecx + 1]
imul edx, ecx
mov ecx, edx
cdq
idiv ecx
mov edx, dword [ebp - 0x54]
movzx edx, byte [edx + 0x11]
mov ecx, dword [ebp - 0x54]
imul edx, dword [ecx + 8]
add eax, edx
test eax, eax
jns 0x689e44
add eax, 7
sar eax, 3
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x14], 1
je 0x689e89
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x48]
sub eax, 2
jne 0x689e89
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x12]
sub al, 3
je 0x689e79
dec al
jne 0x689e82
mov dword [ebp - 0x34], 0x686c44
jmp 0x689e89
mov dword [ebp - 0x34], 0x686c34
jmp 0x689e89
mov dword [ebp - 0x34], 0x686c28
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x14]
cmp eax, 0xd
ja case.0x689e99.0
jmp dword [eax*4 + 0x689ea0]
mov dl, 1
mov eax, dword [0x67a5bc]
call fcn.0040871c
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
mov dl, 1
mov eax, dword [0x67a764]
call fcn.0040871c
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 8
setne al
push eax
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x14], 9
sete al
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
push eax
xor ecx, ecx
mov edx, 0x124
mov eax, dword [ebp - 0xc]
call fcn.00689458
mov ecx, eax
mov dl, 1
mov eax, dword [0x67bb44]
call fcn.0067d0a4
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 8
setne al
push eax
push 0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
push eax
xor ecx, ecx
mov edx, 0x124
mov eax, dword [ebp - 0xc]
call fcn.00689458
mov ecx, eax
mov dl, 1
mov eax, dword [0x67b7ec]
call fcn.0067d0a4
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 8
setne al
push eax
push 0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
push eax
xor ecx, ecx
mov edx, 0x125
mov eax, dword [ebp - 0xc]
call fcn.00689458
mov ecx, eax
mov dl, 1
mov eax, dword [0x67b998]
call fcn.0067d0a4
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
mov eax, dword [ebp - 0x54]
add eax, 0x44
push eax
mov ecx, 0x15b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.006889d0
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x44]
mov dl, 1
mov eax, dword [0x67eda0]
call fcn.0067fbc4
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
mov eax, dword [ebp - 0x54]
movzx eax, word [eax + 0x78]
mov dword [ebp - 0xb4], eax
fild dword [ebp - 0xb4]
fstp dword [ebp - 0xb8]
wait
push dword [ebp - 0xb8]
mov ecx, 0x200
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00689270
fstp st(0)
mov eax, dword [ebp - 0x54]
add eax, 0x7c
push eax
mov ecx, 0x207
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
mov eax, dword [ebp - 0x54]
add eax, 0x80
push eax
mov ecx, 0x208
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
mov eax, dword [ebp - 0x54]
add eax, 0x84
push eax
mov ecx, 0x209
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00688c6c
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xa0], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
fild qword [ebp - 0xa0]
fstp dword [ebp - 0xb4]
wait
push dword [ebp - 0xb4]
mov ecx, 0x201
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00689270
fstp st(0)
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x74]
mov dword [ebp - 0xa0], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
fild qword [ebp - 0xa0]
fstp dword [ebp - 0xb4]
wait
push dword [ebp - 0xb4]
mov ecx, 0x202
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00689270
fstp st(0)
jmp case.0x689e99.1
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
mov dl, 1
mov eax, dword [0x67c030]
call fcn.0067e098
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
push 1
mov ecx, 1
mov dl, 1
mov eax, dword [0x67bcec]
call fcn.0067df14
mov dword [ebp - 0x30], eax
jmp case.0x689e99.1
xor ecx, ecx
mov edx, 0x103
mov eax, dword [ebp - 0xc]
call fcn.00689458
mov dword [ebp - 0x38], eax
push 0x68a864
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x38]
call fcn.00425ff8
push dword [ebp - 0xc0]
push 0x68a898
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.0040b5b8
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
mov eax, 0x68a844
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xc4]
mov edx, dword [0x6d7da8]
call fcn.0043ca78
mov eax, dword [ebp - 0xc4]
mov ecx, 1
pop edx
call fcn.00686954
cmp dword [ebp - 0x30], 0
je 0x68a1ad
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 8]
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xd0
push eax
push 0
mov cl, 2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov si, 0xfffd
call fcn.00408b4c
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xd0
push eax
lea eax, [ebp - 0xc8]
mov edx, dword [0x6d8464]
call fcn.0043ca78
mov eax, dword [ebp - 0xc8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov si, 0xfffd
call fcn.00408b4c
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 1
jne 0x68a4b4
mov eax, dword [ebp - 0x54]
xor edx, edx
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x54]
xor edx, edx
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x68a237
mov eax, dword [ebp - 0x74]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x74]
mov dword [eax + 0x54], edx
jmp 0x68a49d
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0xe8]
adc edx, dword [ecx + 0xec]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0046a700
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x68a28c
mov eax, dword [ebp - 0x7c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
cmp eax, dword [ebp - 0x7c]
jge 0x68a2b1
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x58]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x54]
imul dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
jmp 0x68a2f6
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x68a2dd
mov eax, dword [ebp - 0x84]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
dec eax
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x58]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x54]
imul dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.00406ec8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x68a490
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x30], 0
je 0x68a39f
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
call fcn.00406ec8
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x68a398
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a3ad
cmp dword [ebp - 0x20], 0
je 0x68a397
mov eax, dword [ebp - 0x20]
call fcn.00406ee4
ret
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x68a457
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0051aeb0
mov ebx, eax
cmp dword [ebp - 0x34], 0
je 0x68a3d7
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 8]
dec edx
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x34]
push ebx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
push eax
push 0xff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
xor ecx, ecx
call fcn.00679844
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
inc dword [eax + 0x4c]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
push eax
push 0x64
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x4c]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 1
mov eax, dword [ebp - 0xc]
add eax, 0xd0
push eax
push 0
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov si, 0xfffd
call fcn.00408b4c
mov eax, dword [ebp - 0xc]
add eax, 0xd0
mov ecx, 1
xor edx, edx
call fcn.00413d78
mov eax, dword [ebp - 0x54]
mov edi, dword [eax + 0x4c]
mov eax, dword [ebp - 0x54]
cmp edi, dword [eax + 0xc]
jae 0x68a474
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x68a3b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a497
cmp dword [ebp - 0x18], 0
je 0x68a48f
mov eax, dword [ebp - 0x18]
call fcn.00406ee4
ret
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 0x54]
cmp eax, dword [edx + 0x54]
jl 0x68a245
jmp 0x68a753
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x13]
mov edx, dword [ebp - 0x54]
imul dword [edx + 0x5c]
add eax, 7
shr eax, 3
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x60]
imul dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
call fcn.00406ec8
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x68a74c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x54]
add eax, dword [edx + 0x60]
dec eax
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x60]
xor edx, edx
div ecx
dec eax
test eax, eax
jb 0x68a736
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
inc eax
mov edx, dword [ebp - 0x54]
imul dword [edx + 0x60]
mov edx, dword [ebp - 0x54]
cmp eax, dword [edx + 0xc]
jbe 0x68a548
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x60]
imul edx, dword [ebp - 0x3c]
sub eax, edx
mov dword [ebp - 0x50], eax
jmp 0x68a551
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x5c]
add eax, ecx
dec eax
xor edx, edx
div ecx
dec eax
test eax, eax
jb 0x68a72a
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0xe8]
adc edx, dword [ecx + 0xec]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0046a700
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x30], 0
je 0x68a61f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
call fcn.00406ec8
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x68a618
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax + edx*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a62d
cmp dword [ebp - 0x20], 0
je 0x68a617
mov eax, dword [ebp - 0x20]
call fcn.00406ee4
ret
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
inc eax
mov edx, dword [ebp - 0x54]
imul dword [edx + 0x5c]
mov edx, dword [ebp - 0x54]
cmp eax, dword [edx + 8]
ja 0x68a6ac
mov ebx, dword [ebp - 0x50]
dec ebx
test ebx, ebx
jb 0x68a71b
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x60]
imul edx, dword [ebp - 0x3c]
add edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0051aeb0
mov edx, dword [ebp - 0x54]
mov edi, dword [edx + 0x5c]
mov edx, edi
imul edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x54]
movzx ecx, byte [ecx + 0x13]
imul edx, ecx
shr edx, 3
add eax, edx
push eax
push edi
push 0xff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
xor ecx, ecx
call fcn.00679844
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x68a64e
jmp 0x68a71b
mov ebx, dword [ebp - 0x50]
dec ebx
test ebx, ebx
jb 0x68a71b
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x60]
imul edx, dword [ebp - 0x3c]
add edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0051aeb0
mov edx, dword [ebp - 0x54]
mov edi, dword [edx + 0x5c]
imul edi, dword [ebp - 0x40]
mov edx, edi
mov ecx, dword [ebp - 0x54]
movzx ecx, byte [ecx + 0x13]
imul edx, ecx
shr edx, 3
add eax, edx
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
sub eax, edi
push eax
push 0xff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
xor ecx, ecx
call fcn.00679844
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x68a6b7
inc dword [ebp - 0x44]
inc dword [ebp - 0x40]
dec dword [ebp - 0x60]
jne 0x68a578
inc dword [ebp - 0x3c]
dec dword [ebp - 0x5c]
jne 0x68a51f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a753
mov eax, dword [ebp - 0x18]
call fcn.00406ee4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a7d6
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, 0xd0
push eax
push 0
mov cl, 2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov si, 0xfffd
call fcn.00408b4c
cmp dword [ebp - 0x30], 0
je 0x68a78e
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
call fcn.0040874c
ret
mov eax, 0x68a844
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0x11
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xcc]
mov edx, dword [0x6d81f8]
call fcn.0043ca78
mov eax, dword [ebp - 0xcc]
xor ecx, ecx
pop edx
call fcn.00686954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68a824
lea eax, [ebp - 0xcc]
mov edx, 5
call fcn.0040a68c
lea eax, [ebp - 0xa4]
call fcn.0040a62c
lea eax, [ebp - 0x98]
call fcn.0040a62c
lea eax, [ebp - 8]
mov edx, dword [0x681508]
mov ecx, 2
call fcn.0040bbe8
ret