Function at 0x450f60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9333
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x384
push ebx
push esi
mov esi, ecx
push edi
xor bl, bl
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x34]
mov ecx, dword [esi + 0x16c]
test al, al
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x2c], bl
jbe 0x450fbe
mov eax, dword [ebp - 0x3c]
mov dl, byte [esi + 0xee]
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x450fb7
inc bl
inc ecx
dec eax
jne 0x450fb1
mov byte [ebp - 0x2c], bl
mov eax, dword [ebp + 0x10]
mov cl, 0xb0
test eax, eax
mov byte [ebp - 0x58], 1
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x18], cl
je 0x450ff6
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x450ff2
dec eax
je 0x450fe8
dec eax
je 0x450ff2
mov byte [ebp - 0x18], cl
jmp 0x450ff6
mov byte [ebp - 0x18], 0xb2
mov byte [ebp - 0x11], 1
jmp 0x450ff6
mov byte [ebp - 0x18], 0xb1
mov eax, dword [esi + 0x3cfc]
test eax, eax
je 0x451008
mov byte [ebp - 0x18], 0xbb
mov byte [ebp - 0x11], 0
mov al, byte [esi + 0x839]
xor ebx, ebx
test al, 4
mov dword [ebp - 0x4c], ebx
je 0x451064
mov edx, dword [ebp + 0x14]
mov ecx, 0xc0
neg edx
sbb edx, edx
or eax, 0xffffffff
and edx, 0xfffffffc
lea edi, [esi + 0x3f8]
add edx, 8
mov byte [esi + 0xf2], 4
mov word [esi + 0xf4], dx
mov ebx, 1
rep stosd dword es:[edi], eax
mov ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 0x58], 2
mov dword [ebp - 0x4c], ebx
call fcn.00435d00
mov dx, word [esi + 0xf4]
mov al, byte [esi + 0xf2]
push 4
push edx
push eax
push 1
mov ecx, esi
call fcn.00435a90
mov cl, byte [esi + 0xf2]
push 0
push 4
push ecx
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov edx, dword [ebp + 8]
push 0xff
push 0
push 0
push edx
push 1
mov ecx, esi
call fcn.00436460
test ebx, ebx
je 0x4510bb
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x45119b
call dword [sym.imp.WINMM.dll_timeGetTime]
lea eax, [ebp - 0x28]
push str.IDS_STS_ERASE_ALL
push eax
call dword [0x4e610c]
add esp, 8
xor edi, edi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.004a57ee
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebp - 0x11]
shr ebx, cl
mov dword [ebp + 0x10], edi
test ebx, ebx
jbe 0x451186
test byte [esi + 0xb4], 0xe0
jne 0x451350
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], ebx
add eax, 0x100
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
fmul qword [0x4b75e8]
fild qword [ebp - 0x60]
fdivp st(1)
fstp qword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
push ecx
push edx
lea ecx, [esi + 0xbc]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 4]
mov eax, dword [0x4e60fc]
add esp, 0x10
push 0
push edx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
push 0xa0
push 0
mov ecx, esi
call fcn.00445980
add edi, 0x100
cmp edi, ebx
jb 0x451100
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.WINMM.dll_timeGetTime]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x390]
push edx
push eax
push 1
mov ecx, esi
call fcn.00436000
lea ecx, [ebp - 0x84]
mov ebx, eax
push str.IDS_STS_SCAN_BAD_BLOCK
push ecx
mov dword [ebp - 0x24], ebx
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 3
call fcn.004a57ee
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov cl, byte [ebp - 0x11]
shr eax, cl
xor edi, edi
xor edx, edx
mov di, word [esi + 0x18e]
mov ecx, dword [ebp - 0x58]
and ecx, 0xff
and ebx, 0xffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], ebx
div edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp + 0x10], 0
mov edi, eax
mov eax, dword [esi + 0x110]
imul edi, ecx
imul edi, ebx
test ah, 8
je 0x45124c
mov al, byte [esi + 0x156]
test al, al
jne 0x45124c
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push 0
call fcn.00443910
cmp word [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
jbe 0x4513a4
call dword [sym.imp.WINMM.dll_timeGetTime]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x110]
and eax, 0xffff
test ch, 8
mov ax, word [ebp + eax*2 - 0x390]
mov dword [ebp - 0x30], eax
je 0x45128c
mov cl, byte [esi + 0x156]
test cl, cl
je 0x451298
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00443910
mov eax, dword [ebp - 0x28]
xor ebx, ebx
test eax, eax
jbe 0x451390
test byte [esi + 0xb4], 0xe0
jne 0x451542
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
inc ecx
test eax, eax
mov dword [ebp + 0x10], ecx
je 0x4512ce
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0x32
test eax, eax
jne 0x4512d5
mov dword [ebp - 0x50], 0
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x48]
fmul qword [0x4bb918]
fild qword [ebp - 0x68]
fdivp st(1)
fiadd dword [ebp - 0x50]
fstp qword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
push ecx
lea eax, [esi + 0xbc]
push edx
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 4]
mov edx, dword [0x4e60fc]
add esp, 0x10
push 0
push ecx
push 0x40c
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x3cfc]
push 0x400
test eax, eax
jne 0x451365
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push eax
push ebx
push ecx
push 0
mov ecx, esi
call fcn.004459d0
jmp 0x45137a
lea ecx, [ebp - 0x6c]
push 0x4d8340
push ecx
mov dword [ebp - 0x6c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov dl, byte [esi + 0x3d00]
mov eax, dword [ebp - 0x30]
push edx
push eax
push ebx
push 0
mov ecx, esi
call fcn.00445a30
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [esi + 0x18e]
add ebx, ecx
cmp ebx, eax
jb 0x4512a5
mov eax, dword [ebp - 0x1c]
inc eax
cmp ax, word [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jb 0x45125e
mov ebx, dword [ebp - 0x40]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
call edi
mov al, byte [esi + 0x24]
cmp al, 0x92
je 0x4513c2
cmp al, 0x96
je 0x4513c2
test byte [esi + 0x110], 8
je 0x45141d
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x10], 0x20
test eax, eax
je 0x4513d4
mov byte [ebp + 0x10], 0x21
mov edi, dword [ebp + 0x10]
mov dx, word [esi + 0xf4]
mov al, byte [esi + 0xf2]
push edi
push edx
push eax
push 1
mov ecx, esi
call fcn.00435a90
mov cl, byte [esi + 0xf2]
push 0
push edi
push ecx
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov edx, dword [ebp + 8]
push 0xff
push 0
push 0
push edx
push 1
mov ecx, esi
call fcn.00436460
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
and eax, 0xff
mov ecx, esi
imul eax, dword [ebp - 0x5c]
imul eax, edi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x18], 0x40
mov dword [ebp - 0x1c], 0
call fcn.0044e9a0
mov ecx, ebx
mov dword [ebp - 0x50], eax
shl ecx, 6
cmp ecx, 0x800
jle 0x45146f
shr byte [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
and edx, 0xff
imul edx, ebx
cmp edx, 0x800
jg 0x451458
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
and eax, 0xff
imul eax, ebx
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x3c]
and eax, 0xff
imul eax, ebx
imul eax, edi
add eax, 0x1000
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esi + 0x110]
add esp, 4
mov dword [ebp - 0x1c], ebx
test ah, 8
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
je 0x4514ea
mov al, byte [esi + 0x156]
test al, al
jne 0x4514ea
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov ecx, esi
call fcn.00443910
mov byte [ebp + 8], 0
mov dl, byte [ebp + 8]
mov al, byte [ebp - 0x3c]
cmp dl, al
jae 0x4516ec
mov ebx, dword [ebp + 8]
mov cl, byte [esi + 0xee]
and ebx, 0xff
mov al, byte [ebx + 0x4bb0f8]
test cl, al
jne 0x451593
mov ecx, dword [ebp - 0x20]
mov edi, ebx
imul edi, ecx
mov edx, dword [ebp + 0xc]
mov eax, 0xf0f0f0f0
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [ebp + 8]
mov ebx, dword [ebp - 0x1c]
inc al
mov byte [ebp + 8], al
jmp 0x4514ee
test byte [esi + 0xb4], 0x40
je 0x451560
lea edx, [ebp - 0x78]
push 0x4d8340
push edx
mov dword [ebp - 0x78], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x45157e
lea eax, [ebp - 0x80]
push 0x4d8340
push eax
mov dword [ebp - 0x80], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x74]
push 0x4d8340
push ecx
mov dword [ebp - 0x74], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
xor edi, edi
cmp edi, dword [ebp - 0x20]
jae 0x451535
test byte [esi + 0xb4], 0xe0
je 0x4515fa
test byte [esi + 0xb4], 0x40
je 0x4515c1
lea eax, [ebp - 0x7c]
push 0x4d8340
push eax
mov dword [ebp - 0x7c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x4515e5
lea ecx, [ebp - 0x88]
push 0x4d8340
push ecx
mov dword [ebp - 0x88], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x70]
push 0x4d8340
push edx
mov dword [ebp - 0x70], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
and eax, 0xff
mov dword [ebp - 0x30], eax
add ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x451622
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], 0x32
test eax, eax
jne 0x451629
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x5c]
fld qword [0x4bb910]
fsub qword [ebp - 0x38]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x58]
fild qword [ebp - 0x68]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], eax
fmulp st(1)
fild qword [ebp - 0x90]
and edx, 0xff
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x48]
fdivp st(1)
fild dword [ebp - 0x40]
fdivr qword [0x4bb918]
faddp st(1)
fiadd dword [ebp - 0x2c]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push eax
push ecx
lea eax, [esi + 0xbc]
push edx
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 4]
mov edx, dword [0x4e60fc]
add esp, 0x10
push 0
push ecx
push 0x40c
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, ebx
mov ecx, dword [ebp - 0x24]
imul eax, dword [ebp - 0x20]
add eax, edi
and ecx, 0xffff
imul eax, ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp + 8]
push 0xff
push eax
mov eax, dword [ebp - 0x18]
push edx
push eax
push edi
push 0xf2
push ecx
mov ecx, esi
call fcn.0044e4a0
add edi, dword [ebp - 0x30]
jmp 0x451595
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
and edi, 0xff
push ebx
imul edi, dword [ebp - 0x20]
push edx
push edi
mov ecx, esi
call fcn.004517d0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
test eax, eax
mov al, byte [esi + 0x3d0c]
push eax
push ecx
push ebx
push edx
push edi
mov ecx, esi
je 0x451727
call fcn.00478320
jmp 0x45172c
call fcn.00451d80
mov eax, dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.004697e0
test ebx, ebx
je 0x451744
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 5
call dword [sym.imp.WINMM.dll_timeGetTime]
test byte [esi + 0x839], 4
je 0x451790
mov ecx, 0xc0
or eax, 0xffffffff
lea edi, [esi + 0x3f8]
mov byte [esi + 0xf2], 1
mov word [esi + 0xf4], 0xff
rep stosd dword es:[edi], eax
mov cx, word [esi + 0xf4]
mov dl, byte [esi + 0xf2]
push ecx
push edx
mov ecx, esi
call fcn.00435d00
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10