Function at 0x452ae0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a93a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push esi
mov esi, ecx
push edi
xor bl, bl
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x34]
mov edi, dword [esi + 0x16c]
test al, al
mov byte [ebp - 0x30], al
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x34], bl
jbe 0x452b3e
mov eax, dword [ebp - 0x30]
mov dl, byte [esi + 0xee]
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x452b37
inc bl
inc ecx
dec eax
jne 0x452b31
mov byte [ebp - 0x34], bl
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.0044e9a0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dl, 0xa0
mov cl, 0xb0
test eax, eax
mov byte [ebp - 0x6c], 1
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x28], cl
je 0x452b94
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x452b8c
dec eax
je 0x452b7e
dec eax
je 0x452b8c
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x28], cl
jmp 0x452b94
mov byte [ebp - 0x18], 0xa2
mov byte [ebp - 0x28], 0xb2
mov byte [ebp - 0x11], 1
jmp 0x452b94
mov byte [ebp - 0x18], 0xa1
mov byte [ebp - 0x28], 0xb1
mov ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push 4
push eax
push ecx
push 1
mov ecx, esi
call fcn.00435a90
mov dl, byte [esi + 0xf2]
push 0
push 4
push edx
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
push 0xff
push 0
push 0
push ebx
push 1
mov ecx, esi
call fcn.00436460
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x452ce3
call dword [sym.imp.WINMM.dll_timeGetTime]
lea eax, [ebp - 0x20]
push str.IDS_STS_ERASE_ALL
push eax
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.004a57ee
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov cl, byte [ebp - 0x11]
xor eax, eax
shr edi, cl
xor ecx, ecx
xor ebx, ebx
cmp edi, ecx
jbe 0x452cb2
jmp 0x452c32
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test byte [esi + 0xb4], 0xe0
jne 0x452cce
add eax, 0x100
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x3c], edi
fild qword [ebp - 0x68]
mov dword [ebp - 0x38], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x24]
fmul qword [0x4b75e8]
fild qword [ebp - 0x3c]
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]
mov ecx, dword [ebp - 0x18]
push ebx
push ecx
push 0
mov ecx, esi
call fcn.00445980
add ebx, 0x100
cmp ebx, edi
jb 0x452c2d
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp + 8]
jmp 0x452ce9
lea edx, [ebp - 0x78]
push 0x4d8340
push edx
mov dword [ebp - 0x78], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
lea eax, [ebp - 0x38c]
mov ecx, esi
push eax
push ebx
push 1
call fcn.00436000
lea ecx, [ebp - 0x64]
mov ebx, eax
push str.IDS_STS_SCAN_BAD_BLOCK
push ecx
mov dword [ebp - 0x18], ebx
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 3
call fcn.004a57ee
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x11]
shr eax, cl
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0x18e]
and ebx, 0xffff
mov dword [ebp - 0x38], ebx
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x20], eax
div ecx
imul eax, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x110]
test ah, 8
je 0x452d7f
mov al, byte [esi + 0x156]
test al, al
jne 0x452d7f
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push 0
call fcn.00443910
cmp word [ebp - 0x18], 0
mov dword [ebp - 0x40], 0
jbe 0x452eb2
jmp 0x452d99
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
mov eax, dword [ebp - 0x40]
and eax, 0xffff
mov di, word [ebp + eax*2 - 0x38c]
mov eax, dword [esi + 0x110]
test ah, 8
je 0x452dc0
mov al, byte [esi + 0x156]
test al, al
je 0x452dcc
mov ecx, dword [ebp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00443910
push 0
push edi
mov ecx, esi
call fcn.00479e80
mov eax, dword [ebp - 0x20]
xor ecx, ecx
xor ebx, ebx
cmp eax, ecx
jbe 0x452e98
jmp 0x452de9
xor ecx, ecx
test byte [esi + 0xb4], 0xe0
jne 0x452f66
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], edx
fild qword [ebp - 0x50]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp + 0x10], eax
fmul qword [0x4bb918]
fild qword [ebp - 0x60]
fdivp st(1)
fstp qword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
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 0x452e70
mov eax, dword [ebp - 0x28]
push edi
push ebx
push eax
push 0
mov ecx, esi
call fcn.004459d0
jmp 0x452e82
mov cl, byte [esi + 0x3d00]
push ecx
push edi
push ebx
push 0
mov ecx, esi
call fcn.00445a30
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dx, word [esi + 0x18e]
add ebx, edx
cmp ebx, eax
jb 0x452de7
mov eax, dword [ebp - 0x40]
inc eax
cmp ax, word [ebp - 0x18]
mov dword [ebp - 0x40], eax
jb 0x452d93
mov ebx, dword [ebp - 0x38]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
call edi
mov al, byte [esi + 0x24]
cmp al, 0x92
je 0x452eca
cmp al, 0x96
je 0x452eca
test byte [esi + 0x110], 8
je 0x452f25
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x10], 0x20
test eax, eax
je 0x452edc
mov byte [ebp + 0x10], 0x21
mov edi, dword [ebp + 0x10]
mov ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push edi
push eax
push ecx
push 1
mov ecx, esi
call fcn.00435a90
mov dl, byte [esi + 0xf2]
push 0
push edi
push edx
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov eax, dword [ebp + 8]
push 0xff
push 0
push 0
push eax
push 1
mov ecx, esi
call fcn.00436460
mov eax, dword [ebp - 0x34]
mov byte [ebp + 0x10], 0x40
and eax, 0xff
mov dword [ebp + 8], 0
imul eax, dword [ebp - 0x1c]
shl ebx, 6
cmp ebx, 0x800
mov dword [ebp - 0x24], eax
jle 0x452fc3
shr byte [ebp + 0x10], 1
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
and ecx, 0xff
imul ecx, dword [ebp - 0x38]
cmp ecx, 0x800
jg 0x452f4a
jmp 0x452fc6
test byte [esi + 0xb4], 0x40
je 0x452f84
lea eax, [ebp - 0x80]
push 0x4d8340
push eax
mov dword [ebp - 0x80], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x452fa8
lea ecx, [ebp - 0x88]
push 0x4d8340
push ecx
mov dword [ebp - 0x88], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x8c]
push 0x4d8340
push edx
mov dword [ebp - 0x8c], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
mov eax, ebx
and eax, 0xff
mov edi, dword [ebp - 0x30]
imul eax, ecx
add eax, 0x1ff
mov byte [ebp - 4], 6
cdq
and edx, 0x1ff
add eax, edx
mov edx, edi
and edx, 0xff
imul edx, ecx
imul edx, dword [ebp - 0x1c]
add edx, 0x1000
sar eax, 9
push edx
mov byte [ebp - 0x38], al
call sub.MFC42.DLL_operatornew
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x110]
add esp, 4
mov dword [ebp + 0x10], 0
test ah, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
je 0x453046
mov al, byte [esi + 0x156]
test al, al
jne 0x453046
mov eax, dword [ebp + 0x14]
mov ecx, esi
push eax
push 0
call fcn.00443910
mov byte [ebp + 0x14], 0
mov cl, byte [ebp + 0x14]
mov al, byte [ebp - 0x30]
cmp cl, al
jae 0x4531ca
mov edi, dword [ebp + 0x14]
mov al, byte [esi + 0xee]
and edi, 0xff
mov dword [ebp - 0x20], edi
mov dl, byte [edi + 0x4bb0f8]
test al, dl
jne 0x45309f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
imul edi, ecx
add edi, edx
mov edx, ecx
mov eax, 0xf0f0f0f0
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 + 0x14]
mov edi, dword [ebp - 0x30]
inc al
mov byte [ebp + 0x14], al
jmp 0x45304a
xor edi, edi
cmp edi, dword [ebp - 0x1c]
jae 0x453092
test byte [esi + 0xb4], 0xe0
je 0x453106
test byte [esi + 0xb4], 0x40
je 0x4530cd
lea eax, [ebp - 0x74]
push 0x4d8340
push eax
mov dword [ebp - 0x74], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x4530f1
lea ecx, [ebp - 0x84]
push 0x4d8340
push ecx
mov dword [ebp - 0x84], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x7c]
push 0x4d8340
push edx
mov dword [ebp - 0x7c], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x10]
mov eax, ebx
fld qword [0x4bb910]
fsub qword [ebp - 0x2c]
and eax, 0xff
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
add ecx, eax
xor eax, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp + 0x10], ecx
fild qword [ebp - 0x58]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], eax
fmulp st(1)
mov dword [ebp - 0x60], ecx
and edx, 0xff
fild qword [ebp - 0x60]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x48]
fdivp st(1)
fild dword [ebp - 0x34]
fdivr qword [0x4bb918]
faddp st(1)
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
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 [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
add eax, edi
and ecx, 0xffff
imul eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
add eax, ecx
push 0xff
push eax
mov eax, dword [ebp + 0x14]
push edx
push ebx
push edi
push 0xf2
push eax
mov ecx, esi
call fcn.0044e4a0
add edi, dword [ebp - 0x40]
jmp 0x4530a1
and edi, 0xff
mov ecx, dword [ebp + 8]
mov ebx, edi
mov edi, dword [ebp - 0x18]
imul ebx, dword [ebp - 0x1c]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.004517d0
mov eax, dword [ebp - 0x70]
mov dl, byte [esi + 0x3d0c]
mov ecx, dword [ebp + 8]
push edx
test eax, eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edi
push ebx
mov ecx, esi
je 0x453207
call fcn.00478320
jmp 0x45320c
call fcn.00451d80
mov edx, dword [ebp + 0xc]
mov ecx, esi
push edx
call fcn.004697e0
mov eax, dword [ebp + 8]
test eax, eax
je 0x453227
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
call dword [sym.imp.WINMM.dll_timeGetTime]
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