Function at 0x828f40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
fld qword [0x88b578]
fld qword [0x88b578]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8aca08]
fsub st(1)
fxch st(1)
fmul qword [0x8997b0]
fadd qword [0x89d3b8]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8aca00]
fnstsw ax
test ah, 0x41
jne 0x828f8e
fld st(0)
fmul qword [0x8ac9f8]
fsubp st(2)
fadd qword [0x892488]
fcom qword [0x8ac9f0]
fnstsw ax
test ah, 1
jne 0x828f55
fxch st(1)
fst qword [ebp - 0x40]
fxch st(1)
fstp st(0)
fcomp qword [0x88b578]
push ebx
push esi
push edi
fnstsw ax
test ah, 1
je 0x82905c
cmp dh, byte [eax]
jbe 0x828fed
push edx
dec edx
daa
pop ecx
daa
das
xor al, 0x27
push 0x3d233565
xor ecx, dword [eax + esi + 0x6b]
cmp al, 0x51
cmp al, 0x6c
jne 0x829036
inc esi
jmp 0xddcf7925
dec edi
fmul qword [esi - 0x1d]
dec esi
fld qword [edi - 0x16]
dec esp
loope 0x82903e
ljmp 0xe14d:0xdd4edd4c
loopne 0x82907f
call 0xdcd16d8a
dec eax
jecxz 0x829092
in eax, 0x45
jmp 0x82908f
mov dword [ebp - 0x34], 0x828fd9
mov dword [ebp - 0x38], 0x828fbe
xor eax, eax
mov byte [ebp + eax - 0x140], al
inc eax
cmp eax, 0x100
jb 0x82906c
fld qword [ebp - 0x40]
mov byte [ebp - 0x18], 0
mov eax, 0xff
inc ebp
call 0x1824885
add byte [eax], al
mov esi, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov ebx, 1
add byte [eax], al
mov dword [ebp - 0x30], 0
cmp eax, ebx
jbe 0x8290a7
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x82909f
cmp edi, 3
ja case.default.0x8290ac
jmp dword [edi*4 + 0x829e80]
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x140]
jmp 0x829128
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x140]
shr eax, 8
jmp 0x829128
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x140]
shr eax, 0x10
jmp 0x829128
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x140]
shr eax, 0x18
jmp 0x829128
mov eax, dword [ebp - 0x38]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x140]
add cl, al
inc edi
cmp edi, 0x1f
mov byte [ebp - 0x18], cl
jb 0x82913b
xor edi, edi
add cl, 0x1f
mov byte [ebp - 0x18], cl
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x30], eax
jbe 0x82915b
mov eax, edx
xor edx, edx
div dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, edx
jb 0x8290a7
je 0x829193
mov bl, byte [ebp + eax - 0x140]
lea edx, [ebp + edx - 0x140]
lea ecx, [ebp + eax - 0x140]
mov al, byte [edx]
xor bl, al
mov byte [ecx], bl
mov al, bl
mov bl, byte [edx]
xor bl, al
mov byte [edx], bl
mov al, byte [ecx]
mov dl, bl
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
jne 0x82908f
mov dl, byte [ebp - 0x139]
mov edi, dword [ebp - 0x34]
and esi, 0xff
mov byte [ebp - 0x2c], dl
xor edx, edx
mov bl, byte [ebp - 0x13d]
mov al, byte [ebp + esi - 0x140]
mov dl, byte [edi + 1]
mov byte [ebp - 0x28], al
xor eax, eax
mov al, byte [edi]
add dl, 0x24
add al, 0xc
mov cl, byte [ebp - 0x13b]
shl al, 4
or al, dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov byte [ebp - 1], al
fstp st(0)
mov al, byte [ebp + edx - 0x140]
lea esi, [ebp + edx - 0x140]
mov edx, dword [ebp - 0x13f]
mov byte [ebp - 0x10], al
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x140]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [esi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
mov esi, dword [ebp - 0x18]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x140]
add edx, esi
and edx, 0xff
xor bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov byte [ebp - 0x2c], bl
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add bl, 0xc
add dl, 0x24
shl bl, 4
or dl, bl
add edi, 4
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea esi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [esi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + esi - 0x140]
and ebx, 0xff
mov esi, 2
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
mov byte [ebp - 0x2c], dl
movsx dx, dl
mov word [ebp - 0x1c0], dx
mov dl, byte [edi]
mov bl, byte [edi + 1]
add dl, 0xc
shl dl, 4
add bl, 0x24
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0x1b
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
mov byte [ebp - 0x2c], dl
movsx dx, dl
mov word [ebp - 0x1be], dx
mov edx, dword [ebp - 0x34]
lea edi, [edx + 4]
lea edx, [ebp - 0x1be]
mov dword [ebp - 0x30], edx
jmp 0x829514
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x30], edx
add bl, 0xc
mov dl, byte [edi + 1]
mov dword [ebp - 0x3c], edi
add dl, 0x24
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x829634
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x829511
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 0xc
add bl, 0x24
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x829763
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edx, dword [ebp - 0x34]
inc esi
mov bl, byte [edx + esi*2 + 1]
lea edi, [edx + esi*2]
add bl, 0x24
mov dl, byte [edi]
add dl, 0xc
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x82987c
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
lea ebx, [esi + 1]
cmp ebx, 0x3c
jge 0x8299d4
mov edx, dword [ebp - 0x34]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x1c2]
mov dword [ebp - 0x30], edx
mov edx, 0x3c
sub edx, ebx
mov dword [ebp - 0x38], edx
jmp 0x8298a7
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x30], edx
add bl, 0xc
mov dl, byte [edi + 1]
mov dword [ebp - 0x3c], edi
add dl, 0x24
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x8299c7
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x8298a4
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 0xc
add bl, 0x24
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x829af6
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 0xc
add bl, 0x24
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x829c0d
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
add dl, 0xc
add bl, 0x24
shl dl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 0x10], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov byte [ebx], dl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x18]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 1]
mov byte [ebp - 0x28], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x2c], dl
jbe 0x829d24
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edi, dword [ebp - 0x34]
inc esi
mov dl, byte [edi + esi*2]
mov bl, byte [edi + esi*2 + 1]
mov edi, dword [ebp - 0x28]
add dl, 0xc
and edi, 0xff
add bl, 0x24
shl dl, 4
lea edi, [ebp + edi - 0x140]
or dl, bl
mov bl, byte [edi]
mov byte [ebp - 0x10], bl
mov ebx, dword [ebp - 0x14]
add al, byte [ebx]
mov byte [ebp - 0x24], al
mov al, byte [ebp - 8]
inc al
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov bl, byte [ebp + eax - 0x140]
lea eax, [ebp + eax - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x2c]
and ebx, 0xff
mov dword [ebp - 0x20], eax
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
and eax, 0xff
test esi, esi
lea eax, [ebp + eax - 0x140]
mov dword [ebp - 0x14], eax
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 0x14]
mov al, byte [ebp - 0x10]
mov byte [ebx], al
jbe 0x829e17
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov bl, byte [ebp + eax - 0x140]
add bl, cl
and ebx, 0xff
mov cl, byte [ebp + ebx - 0x140]
mov ebx, dword [ebp - 0xc]
mov bl, byte [ebx]
add ecx, ebx
mov bl, byte [edi]
add ecx, ebx
xor ebx, ebx
and ecx, 0xff
mov bl, byte [ebp + ecx - 0x140]
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx]
add ecx, eax
mov al, byte [ebp + ebx - 0x140]
and ecx, 0xff
xor al, byte [ebp + ecx - 0x140]
xor al, dl
movsx cx, al
mov word [ebp + esi*2 - 0x1c2], cx
mov word [ebp - 0x144], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x829e6e
mov esi, dword [ebp + 8]
call fcn.0083a23c
lea edx, [ebp - 0x1c0]
mov edi, eax
push edx
call fcn.00839b17
mov ecx, eax
add esp, 4
dec ecx
mov eax, edi
xor edx, edx
add esi, 2
div ecx
dec ebx
mov dx, word [ebp + edx*2 - 0x1c0]
mov word [esi - 2], dx
jne 0x829e2a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov word [eax + ecx*2], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
pop edi
pop esi
mov word [edx + ebx*2], 0
pop ebx
mov esp, ebp
pop ebp
ret