Function at 0x82a170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf94
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x58a]
mov word [ebp - 0x58c], bx
rep stosd dword es:[edi], eax
fld qword [0x88b578]
fld qword [0x88b578]
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x382]
mov word [ebp - 0x384], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8aca28]
fsub st(1)
fxch st(1)
fmul qword [0x899c48]
fadd qword [0x89b638]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8aca20]
fnstsw ax
test ah, 0x41
jne 0x82a1f3
fld st(0)
fmul qword [0x8aca18]
fsubp st(2)
fadd qword [0x892488]
fcom qword [0x8aca10]
fnstsw ax
test ah, 1
jne 0x82a1ba
fxch st(1)
fst qword [ebp - 0x30]
fxch st(1)
fstp st(0)
fcomp qword [0x88b578]
fnstsw ax
test ah, 1
je 0x82a251
je 0x82a282
cmp eax, 0x277a6835
popal
cmp dword ds:[ecx], edi
sub byte [si], ah
cmp eax, 0x6b2f3470
jp 0x82a29e
xor dword [ebx + 0x66], edi
jo 0x82a27c
jb 0x82a2b4
cmp byte [0x70e0b7b], bh
pop es
or dl, byte [ecx]
add cl, byte [ebx]
adc byte [ecx], cl
or byte [ecx], cl
push cs
or dword [esi], ecx
or ecx, ebp
fisttp qword [eax]
add byte [eax], al
mov dword [ebp - 0x20], 0x82a23c
mov dword [ebp - 0x24], 0x82a21c
xor eax, eax
mov byte [ebp + eax - 0x138], al
inc eax
cmp eax, 0x100
jb 0x82a261
fld qword [ebp - 0x30]
mov byte [ebp - 0x10], 0
mov eax, 0xff
mov esi, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x1c], eax
jmp 0x82a288
inc ebp
in al, 0xeb
add dh, byte [ebx]
fisttp dword [ecx + 0x1bbd45d]
add byte [eax], al
add byte [ebx], bh
ret
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, 1
cmp eax, ebx
jbe 0x82a29c
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x82a294
cmp edi, 3
ja case.default.0x82a2a1
add esi, dword [edi + 0x68]
jmp dword [edi*4 + 0x82acc4]
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x138]
jmp 0x82a31d
add byte [edx - 0x137ca74], cl
invalid
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x138]
shr eax, 8
jmp 0x82a31d
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x138]
shr eax, 0x10
jmp 0x82a31d
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x138]
shr eax, 0x18
jmp 0x82a31d
mov eax, dword [ebp - 0x24]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x138]
add cl, al
inc edi
cmp edi, 0x24
mov byte [ebp - 0x10], cl
jb 0x82a330
xor edi, edi
add cl, 0x24
mov byte [ebp - 0x10], cl
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x2c], eax
jbe 0x82a350
mov eax, edx
xor edx, edx
div dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, edx
jb 0x82a29c
je 0x82a38b
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + edx - 0x138]
mov bl, byte [ebp + ecx - 0x138]
lea edx, [ebp + ecx - 0x138]
mov cl, byte [eax]
xor bl, cl
mov byte [edx], bl
mov cl, bl
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
mov cl, byte [edx]
mov al, bl
xor cl, al
mov byte [edx], cl
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
jne 0x82a286
mov dl, byte [ebp - 0x131]
and esi, 0xff
mov byte [ebp - 0x24], dl
mov bl, byte [ebp - 0x135]
mov al, byte [ebp + esi - 0x138]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x28], al
mov cl, byte [ebp - 0x133]
mov al, byte [esi]
mov dl, byte [esi + 1]
add al, 0xe
sub dl, 3
shl al, 4
or al, dl
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x28]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x138]
lea edi, [ebp + eax - 0x138]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x137]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x138]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x138]
lea edx, [ebp + edx - 0x138]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x138]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x138]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x138]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x138]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x138]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x138]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov dl, byte [esi + 2]
mov byte [ebp - 0x24], bl
add dl, 0xe
mov bl, byte [esi + 3]
shl dl, 4
sub bl, 3
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x138]
mov dl, byte [ebp + edx - 0x138]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x138]
lea edx, [ebp + edx - 0x138]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x138]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x138]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x138]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x138]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x138]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x138]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov dl, byte [esi + 5]
mov byte [ebp - 0x24], bl
mov bl, byte [esi + 4]
add bl, 0xe
sub dl, 3
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x138]
mov dl, byte [ebp + edx - 0x138]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x138]
lea edx, [ebp + edx - 0x138]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x138]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x138]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x138]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x138]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x138]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x138]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov dl, byte [esi + 7]
mov byte [ebp - 0x24], bl
mov bl, byte [esi + 6]
add bl, 0xe
sub dl, 3
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x138]
mov dl, byte [ebp + edx - 0x138]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x138]
lea edx, [ebp + edx - 0x138]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
and ebx, 0xff
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x138]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x138]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x138]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x138]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x138]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x138]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov dl, byte [esi + 9]
mov byte [ebp - 0x24], bl
mov bl, byte [esi + 8]
add bl, 0xe
sub dl, 3
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x138]
mov dl, byte [ebp + edx - 0x138]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x138]
lea edx, [ebp + edx - 0x138]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x138]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x138]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x138]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x138]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x138]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x138]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov dl, byte [esi + 0xb]
mov byte [ebp - 0x24], bl
mov bl, byte [esi + 0xa]
add bl, 0xe
sub dl, 3
shl bl, 4
or dl, bl
mov byte [ebp - 1], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
lea edi, [ebp + edx - 0x138]
mov dl, byte [ebp + edx - 0x138]
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp - 8]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x138]
lea edx, [ebp + edx - 0x138]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
and edx, 0xff
lea edx, [ebp + edx - 0x138]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x18]
mov byte [ebx], dl
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x10], edx
add cl, byte [ebp + edx - 0x138]
mov byte [ebp - 0x2c], cl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
mov dl, byte [ebp + edx - 0x138]
mov ebx, dword [ebp - 0x14]
mov bl, byte [ebx]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x138]
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x138]
add edx, edi
mov edi, dword [ebp - 0xc]
and edx, 0xff
xor bl, byte [ebp + edx - 0x138]
mov dl, byte [ebp - 1]
mov byte [ebp - 0x28], dl
xor bl, dl
mov dl, byte [esi + 0xd]
mov byte [ebp - 0x24], bl
mov bl, byte [esi + 0xc]
mov esi, dword [ebp - 0x28]
add bl, 0xe
and esi, 0xff
sub dl, 3
shl bl, 4
lea esi, [ebp + esi - 0x138]
or dl, bl
mov bl, byte [esi]
mov byte [ebp - 0x18], bl
mov bl, byte [edi]
add al, bl
mov bl, byte [ebp - 8]
mov byte [ebp - 0x20], al
mov edi, dword [ebp - 0x20]
and edi, 0xff
inc bl
mov byte [ebp - 8], bl
mov bl, byte [ebp + edi - 0x138]
lea edi, [ebp + edi - 0x138]
mov byte [esi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x1c], edi
lea ebx, [ebp + ebx - 0x138]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edi], bl
mov edi, dword [ebp - 8]
and edi, 0xff
mov bl, byte [ebp + edi - 0x138]
lea edi, [ebp + edi - 0x138]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
mov byte [edi], bl
mov edi, dword [ebp - 0xc]
mov bl, byte [ebp - 0x18]
mov byte [edi], bl
mov edi, dword [ebp - 0x18]
and edi, 0xff
mov bl, byte [ebp + edi - 0x138]
add cl, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0x2c], cl
mov ecx, dword [ebp - 0x2c]
mov bl, byte [ebx]
and ecx, 0xff
mov cl, byte [ebp + ecx - 0x138]
add ecx, ebx
mov bl, byte [esi]
add ecx, ebx
xor ebx, ebx
and ecx, 0xff
mov bl, byte [ebp + ecx - 0x138]
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx]
mov bl, byte [ebp + ebx - 0x138]
add ecx, edi
and ecx, 0xff
xor bl, byte [ebp + ecx - 0x138]
mov esi, dword [ebp - 0xc]
xor bl, dl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x28], dl
mov bl, byte [esi]
mov edx, dword [ebp - 0x28]
add al, bl
and edx, 0xff
mov byte [ebp - 0x20], al
mov al, byte [ebp - 8]
inc al
lea ecx, [ebp + edx - 0x138]
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x20]
mov dl, byte [ecx]
and eax, 0xff
mov bl, byte [ebp + eax - 0x138]
lea eax, [ebp + eax - 0x138]
mov byte [ecx], bl
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
mov bl, byte [ebp + ecx - 0x138]
lea ecx, [ebp + ecx - 0x138]
mov byte [eax], bl
mov eax, dword [ebp - 8]
and eax, 0xff
mov bl, byte [ebp + eax - 0x138]
lea eax, [ebp + eax - 0x138]
mov byte [ecx], bl
xor ebx, ebx
mov byte [eax], dl
cmp dword [ebp + 0x18], ebx
je 0x82ab47
lea ecx, [ebp - 0x58c]
push 0x104
push ecx
call fcn.0082a0c0
add esp, 8
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x384]
push edx
push eax
call fcn.00839d4f
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x384]
push ecx
push edx
call fcn.00839d4f
add esp, 0x10
lea eax, [ebp - 0x384]
push eax
call dword [0x8cf914]
test eax, eax
je 0x82acb8
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xf92]
mov word [ebp - 0xf94], bx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xf94]
push 0x8c0700
push ecx
stosw word es:[edi], ax
call fcn.00839d4f
lea edx, [ebp - 0x384]
lea eax, [ebp - 0xf94]
push edx
push eax
call fcn.00839d4f
lea ecx, [ebp - 0xf94]
push 0x8c06f8
push ecx
call fcn.00839d4f
lea edx, [ebp - 0x58c]
lea eax, [ebp - 0xf94]
push edx
push eax
call fcn.00839d4f
lea ecx, [ebp - 0xf94]
push 0x8c06f4
push ecx
call fcn.00839d4f
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0xf94]
push esi
push edx
call fcn.00839d4f
xor eax, eax
mov ecx, 0x11
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x17c]
mov dword [ebp - 0x34], eax
add esp, 0x30
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x17c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], eax
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xf94]
push ebx
push eax
push ebx
mov dword [ebp - 0x17c], 0x44
call dword [0x8cf900]
cmp word [esi], bx
je 0x82acb8
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x792]
mov word [ebp - 0x794], bx
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, 0x18
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call ebx
push eax
call edi
dec esi
jne 0x82ac75
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x794]
push ecx
push edx
call fcn.00839d4f
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x794]
push eax
push ecx
call fcn.00839d4f
lea edx, [ebp - 0x794]
push edx
call fcn.0040de10
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret