Function at 0x454d60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a0
push ebx
push esi
mov esi, ecx
push edi
xor bl, bl
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x16c]
mov dl, byte [esi + 0x141]
mov al, byte [esi + 0x34]
mov dword [ebp - 0x1c], ecx
mov cx, word [esi + 0x142]
mov byte [ebp - 0x15], dl
mov dx, word [esi + 0x144]
mov byte [ebp - 0x38], al
test al, al
mov word [ebp - 0x7c], cx
mov word [ebp - 0x44], dx
mov byte [ebp - 0x2c], bl
jbe 0x454ddd
mov eax, dword [ebp - 0x38]
mov dl, byte [esi + 0xee]
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x454dd6
inc bl
inc ecx
dec eax
jne 0x454dd0
mov byte [ebp - 0x2c], bl
mov eax, dword [ebp + 0x10]
mov dl, 0xa0
mov cl, 0xb0
mov byte [ebp - 0x54], 1
test eax, eax
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x28], cl
je 0x454e25
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x454e1d
dec eax
je 0x454e0f
dec eax
je 0x454e1d
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x28], cl
jmp 0x454e25
mov byte [ebp - 0x14], 0xa2
mov byte [ebp - 0x28], 0xb2
mov byte [ebp - 0x24], 1
jmp 0x454e25
mov byte [ebp - 0x14], 0xa1
mov byte [ebp - 0x28], 0xb1
mov al, byte [esi + 0x839]
xor ebx, ebx
test al, 4
mov dword [ebp - 0x50], ebx
je 0x454e80
mov eax, dword [ebp + 0x14]
mov ecx, 0xc0
neg eax
sbb eax, eax
lea edi, [esi + 0x3f8]
and al, 0xfc
mov byte [esi + 0xf2], 4
add eax, 8
mov ebx, 1
mov word [esi + 0xf4], ax
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov cx, word [esi + 0xf4]
mov dl, byte [esi + 0xf2]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 0x54], 2
mov dword [ebp - 0x50], ebx
call fcn.00435d00
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
mov eax, dword [ebp + 8]
push 0xff
push 0
push 0
push eax
push 1
mov ecx, esi
call fcn.00436460
test ebx, ebx
je 0x454ed7
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x454fb7
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x3c]
push str.IDS_STS_ERASE_ALL
push ecx
call dword [0x4e610c]
add esp, 8
xor edi, edi
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], edi
call fcn.004a57ee
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x24]
shr ebx, cl
mov dword [ebp - 0x20], edi
test ebx, ebx
jbe 0x454fa2
test byte [esi + 0xb4], 0xe0
jne 0x4551dd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], ebx
add eax, 0x100
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x60], eax
fild qword [ebp - 0x34]
fmul qword [0x4b75e8]
fild qword [ebp - 0x64]
fdivp st(1)
fstp qword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
push edx
push eax
lea edx, [esi + 0xbc]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 4]
mov ecx, dword [0x4e60fc]
add esp, 0x10
push 0
push eax
push 0x40c
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [ebp - 0x14]
push edi
push edx
push 0
mov ecx, esi
call fcn.00445980
add edi, 0x100
cmp edi, ebx
jb 0x454f1c
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3ac]
push ecx
push edx
push 1
mov ecx, esi
call fcn.00436000
mov edi, eax
lea eax, [ebp - 0xa0]
push str.IDS_STS_SCAN_BAD_BLOCK
push eax
mov dword [ebp - 0x14], edi
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 3
call fcn.004a57ee
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
and ecx, 0xff
xor edx, edx
mov dword [ebp - 0x68], ecx
mov ebx, dword [ebp - 0x54]
shr eax, cl
xor ecx, ecx
and ebx, 0xff
mov cx, word [esi + 0x18e]
and edi, 0xffff
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x30], ebx
div ecx
mov dword [ebp - 0x20], 0
imul eax, ebx
imul eax, edi
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x110]
test ah, 8
je 0x45506f
mov al, byte [esi + 0x156]
test al, al
jne 0x45506f
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push 0
call fcn.00443910
cmp word [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0
jbe 0x455250
mov eax, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x110]
and eax, 0xffff
test ch, 8
mov ax, word [ebp + eax*2 - 0x3ac]
mov dword [ebp - 0x70], eax
je 0x4550a9
mov cl, byte [esi + 0x156]
test cl, cl
je 0x4550b5
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00443910
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x58], 0
test al, al
jbe 0x45523c
movzx cx, byte [ebp - 0x24]
mov ax, word [ebp - 0x7c]
shr ax, cl
mov word [ebp + 0x12], ax
xor ebx, ebx
test ax, ax
mov dword [ebp - 0x3c], ebx
jbe 0x455229
xor edi, edi
test byte [esi + 0xb4], 0xe0
jne 0x455400
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x50]
inc ecx
cmp eax, edi
mov dword [ebp - 0x20], ecx
je 0x45510d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], 0x32
cmp eax, edi
jne 0x455110
mov dword [ebp - 0x74], edi
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edi
fild qword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edi
mov eax, dword [ebp - 0x5c]
fmul qword [0x4bb918]
fild qword [ebp - 0x84]
fdivp st(1)
fiadd dword [ebp - 0x74]
fstp qword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
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 edi
push edx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x7c]
mov cl, byte [ebp - 0x68]
and eax, 0xffff
mov edx, ebx
shr eax, cl
and edx, 0xffff
xor ecx, ecx
mov cx, word [esi + 0x18e]
sub eax, edx
cmp ecx, eax
jge 0x45519c
mov eax, ecx
mov ecx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x44]
and ecx, 0xff
and ebx, 0xffff
imul ecx, ebx
add ecx, edx
mov edx, dword [esi + 0x3cfc]
cmp edx, edi
je 0x4551f8
test byte [esi + 0x110], 8
je 0x4551f8
mov dl, byte [esi + 0x3d00]
push eax
mov eax, dword [ebp - 0x70]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00445a30
jmp 0x45520a
lea eax, [ebp - 0xa4]
push 0x4d8340
push eax
mov dword [ebp - 0xa4], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x28]
push edx
push ecx
push eax
push edi
mov ecx, esi
call fcn.004459d0
mov cx, word [esi + 0x18e]
mov ebx, dword [ebp - 0x3c]
mov ax, word [ebp + 0x12]
add ebx, ecx
cmp bx, ax
mov dword [ebp - 0x3c], ebx
jb 0x4550e4
mov edi, dword [ebp - 0x60]
mov cl, byte [ebp - 0x58]
mov dl, byte [ebp - 0x15]
inc cl
cmp cl, dl
mov byte [ebp - 0x58], cl
jb 0x4550d4
mov eax, dword [ebp - 0x4c]
inc eax
cmp ax, word [ebp - 0x14]
mov dword [ebp - 0x4c], eax
jb 0x455081
mov ebx, dword [ebp - 0x30]
call dword [sym.imp.WINMM.dll_timeGetTime]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov al, byte [esi + 0x24]
cmp al, 0x92
je 0x455270
cmp al, 0x96
je 0x455270
test byte [esi + 0x110], 8
je 0x4552ce
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x10], 0x20
test eax, eax
je 0x455282
mov byte [ebp + 0x10], 0x21
mov edx, dword [ebp + 0x10]
mov ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push edx
push eax
push ecx
push 1
mov ecx, esi
call fcn.00435a90
mov edx, dword [ebp + 0x10]
mov al, byte [esi + 0xf2]
push 0
push edx
push eax
push 1
push 0
push 0
mov ecx, esi
call fcn.0043e690
mov ecx, dword [ebp + 8]
push 0xff
push 0
push 0
push ecx
push 1
mov ecx, esi
call fcn.00436460
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
and eax, 0xff
push edx
imul eax, ebx
imul eax, dword [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x48], eax
mov byte [ebp + 0x10], 0x40
mov dword [ebp - 0x24], 0
call fcn.0044e9a0
mov dword [ebp - 0x68], eax
mov eax, edi
shl eax, 6
cmp eax, 0x800
jle 0x455321
mov bl, byte [ebp + 0x10]
shr bl, 1
mov byte [ebp + 0x10], bl
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
imul ecx, edi
cmp ecx, 0x800
jg 0x455305
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x38]
and eax, 0xff
mov byte [ebp - 4], 6
imul eax, edi
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
mov edx, ebx
and edx, 0xff
imul edx, edi
imul edx, dword [ebp - 0x1c]
add edx, 0x1000
sar eax, 9
push edx
mov byte [ebp - 0x60], al
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esi + 0x110]
add esp, 4
mov dword [ebp - 0x24], edi
test ah, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
je 0x4553a1
mov al, byte [esi + 0x156]
test al, al
jne 0x4553a1
mov eax, dword [ebp + 0x14]
mov ecx, esi
push eax
push 0
call fcn.00443910
mov byte [ebp + 8], 0
mov cl, byte [ebp + 8]
mov al, byte [ebp - 0x38]
cmp cl, al
jae 0x4555d0
mov ebx, dword [ebp + 8]
mov al, byte [esi + 0xee]
and ebx, 0xff
mov dl, byte [ebx + 0x4bb0f8]
test al, dl
jne 0x455463
mov ecx, dword [ebp - 0x1c]
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 - 0x38]
mov edi, dword [ebp - 0x24]
inc al
mov byte [ebp + 8], al
jmp 0x4553a5
test byte [esi + 0xb4], 0x40
je 0x455424
lea edx, [ebp - 0xa8]
push 0x4d8340
push edx
mov dword [ebp - 0xa8], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x455448
lea eax, [ebp - 0x90]
push 0x4d8340
push eax
mov dword [ebp - 0x90], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x9c]
push 0x4d8340
push ecx
mov dword [ebp - 0x9c], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
xor edi, edi
cmp edi, dword [ebp - 0x1c]
jae 0x4553f0
test byte [esi + 0xb4], 0xe0
je 0x4554d6
test byte [esi + 0xb4], 0x40
je 0x455497
lea eax, [ebp - 0xac]
push 0x4d8340
push eax
mov dword [ebp - 0xac], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x4554bb
lea ecx, [ebp - 0x94]
push 0x4d8340
push ecx
mov dword [ebp - 0x94], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x98]
push 0x4d8340
push edx
mov dword [ebp - 0x98], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
and eax, 0xff
mov dword [ebp - 0x44], eax
add ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x4554fe
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], 0x32
test eax, eax
jne 0x455505
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
fld qword [0x4bb910]
fsub qword [ebp - 0x40]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x54]
fild qword [ebp - 0x84]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], eax
fmulp st(1)
fild qword [ebp - 0x8c]
and edx, 0xff
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x5c]
fdivp st(1)
fild dword [ebp - 0x30]
fdivr qword [0x4bb918]
faddp st(1)
fiadd dword [ebp - 0x2c]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
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 - 0x14]
imul eax, dword [ebp - 0x1c]
add eax, edi
and ecx, 0xffff
imul eax, ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
add eax, edx
mov dl, byte [esi + 0x3d00]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x60]
push eax
push ecx
push edi
push 0xf2
push edx
mov ecx, esi
call fcn.0044e4a0
add edi, dword [ebp - 0x44]
jmp 0x455465
test byte [esi + 0x110], 8
je 0x45560d
mov al, byte [esi + 0x2a98]
mov ecx, esi
push eax
call fcn.004498f0
cmp al, 0x2c
jb 0x45560d
cmp byte [esi + 0x838], 0x10
jb 0x45560d
mov edx, ebx
mov ecx, dword [ebp - 0x14]
and edx, 0xff
push edi
imul edx, dword [ebp - 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004517d0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x45563a
mov al, byte [esi + 0x3d0c]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
and eax, 0xff
mov edx, dword [ebp - 0x14]
imul eax, dword [ebp - 0x1c]
push ecx
push edi
push edx
push eax
mov ecx, esi
call fcn.00478320
jmp 0x45565c
mov cl, byte [esi + 0x3d0c]
mov edx, dword [ebp + 0xc]
and ebx, 0xff
mov eax, dword [ebp - 0x14]
imul ebx, dword [ebp - 0x1c]
push ecx
push edx
push edi
push eax
push ebx
mov ecx, esi
call fcn.00451d80
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.004697e0
test edi, edi
je 0x455674
push edi
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 0x4556c0
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 dx, word [esi + 0xf4]
mov al, byte [esi + 0xf2]
push edx
push eax
mov ecx, esi
call fcn.00435d00
lea ecx, [ebp - 0x5c]
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