Function at 0x4341c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1384
call fcn.004a5b80
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 - 0x54], al
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x34], bl
jbe 0x434223
mov eax, dword [ebp - 0x54]
mov dl, byte [esi + 0xee]
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x43421c
inc bl
inc ecx
dec eax
jne 0x434216
mov byte [ebp - 0x34], bl
mov eax, dword [ebp + 0x10]
mov dl, 0xa0
mov cl, 0xb0
mov byte [ebp - 0x4c], 1
test eax, eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x70], 0xc0
je 0x43426f
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x434267
dec eax
je 0x434259
dec eax
je 0x434267
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x20], cl
jmp 0x43426f
mov byte [ebp - 0x14], 0xa2
mov byte [ebp - 0x20], 0xb2
mov byte [ebp - 0x15], 1
jmp 0x43426f
mov byte [ebp - 0x14], 0xa1
mov byte [ebp - 0x20], 0xb1
mov al, byte [esi + 0x839]
xor ebx, ebx
test al, 4
mov dword [ebp - 0x58], ebx
je 0x4342cb
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 - 0x4c], 2
mov dword [ebp - 0x58], 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 0x434322
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x434401
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 - 0x2c]
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 - 0x1c]
mov cl, byte [ebp - 0x15]
shr ebx, cl
mov dword [ebp + 0x10], edi
test ebx, ebx
jbe 0x4343ec
test byte [esi + 0xb4], 0xe0
jne 0x4345ca
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], ebx
add eax, 0x100
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
fmul qword [0x4b75e8]
fild qword [ebp - 0x60]
fdivp st(1)
fstp qword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
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 - 0x14]
push edi
push ecx
push 0
mov ecx, esi
call fcn.00445980
add edi, 0x100
cmp edi, ebx
jb 0x434367
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x394]
push eax
push ecx
push 1
mov ecx, esi
call fcn.00436000
lea edx, [ebp - 0x6c]
mov edi, eax
push str.IDS_STS_SCAN_BAD_BLOCK
push edx
mov dword [ebp - 0x38], edi
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 3
call fcn.004a57ee
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x15]
shr eax, cl
xor ebx, ebx
xor edx, edx
mov bx, word [esi + 0x18e]
mov ecx, dword [ebp - 0x4c]
and ecx, 0xff
and edi, 0xffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], edi
div ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp + 0x10], 0
mov ebx, eax
mov eax, dword [esi + 0x110]
imul ebx, ecx
imul ebx, edi
test ah, 8
je 0x4344ac
mov al, byte [esi + 0x156]
test al, al
jne 0x4344ac
mov eax, dword [ebp + 0x14]
mov ecx, esi
push eax
push 0
call fcn.00443910
cmp word [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
jbe 0x434636
mov ecx, dword [ebp - 0x24]
and ecx, 0xffff
mov ax, word [ebp + ecx*2 - 0x394]
mov ecx, dword [esi + 0x110]
test ch, 8
mov dword [ebp - 0x28], eax
je 0x4344e7
mov cl, byte [esi + 0x156]
test cl, cl
je 0x4344f3
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push eax
call fcn.00443910
mov eax, dword [ebp - 0x14]
xor edi, edi
test eax, eax
jbe 0x4345b4
test byte [esi + 0xb4], 0xe0
jne 0x4345e5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x58]
inc ecx
test eax, eax
mov dword [ebp + 0x10], ecx
je 0x434529
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], 0x32
test eax, eax
jne 0x434530
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
fmul qword [0x4bb918]
fild qword [ebp - 0x68]
fdivp st(1)
fiadd dword [ebp - 0x2c]
fstp qword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
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 - 0x28]
mov edx, dword [ebp - 0x20]
push 0x400
push ecx
push edi
push edx
push 0
mov ecx, esi
call fcn.004459d0
xor eax, eax
mov ax, word [esi + 0x18e]
add edi, eax
mov eax, dword [ebp - 0x14]
cmp edi, eax
jb 0x434500
mov eax, dword [ebp - 0x24]
inc eax
cmp ax, word [ebp - 0x38]
mov dword [ebp - 0x24], eax
jb 0x4344be
mov edi, dword [ebp - 0x44]
jmp 0x434636
lea edx, [ebp - 0x8c]
push 0x4d8340
push edx
mov dword [ebp - 0x8c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x40
je 0x434603
lea ecx, [ebp - 0x78]
push 0x4d8340
push ecx
mov dword [ebp - 0x78], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x434621
lea edx, [ebp - 0x80]
push 0x4d8340
push edx
mov dword [ebp - 0x80], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x74]
push 0x4d8340
push eax
mov dword [ebp - 0x74], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
call ebx
mov al, byte [esi + 0x24]
cmp al, 0x92
je 0x434654
cmp al, 0x96
je 0x434654
test byte [esi + 0x110], 8
je 0x4346af
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x10], 0x20
test eax, eax
je 0x434666
mov byte [ebp + 0x10], 0x21
mov ebx, dword [ebp + 0x10]
mov cx, word [esi + 0xf4]
mov dl, byte [esi + 0xf2]
push ebx
push ecx
push edx
push 1
mov ecx, esi
call fcn.00435a90
mov al, byte [esi + 0xf2]
push 0
push ebx
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 - 0x34]
mov edx, dword [ebp + 8]
and eax, 0xff
xor ebx, ebx
imul eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x1c]
push edx
mov ecx, esi
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x14], 0x40
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], ebx
call fcn.0044e9a0
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x434723
mov eax, edi
shl eax, 6
cmp eax, 0x800
jle 0x434704
shr byte [ebp - 0x14], 1
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
imul ecx, edi
cmp ecx, 0x800
jg 0x4346ed
mov eax, dword [ebp - 0x14]
and eax, 0xff
imul eax, edi
add eax, 0x1ff
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
test eax, eax
je 0x434750
mov eax, dword [ebp - 0x54]
and eax, 0xff
imul eax, edi
imul eax, dword [ebp - 0x1c]
add eax, 0x1000
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov eax, dword [esi + 0x110]
mov dword [ebp + 0x10], 0
test ah, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
je 0x434787
mov al, byte [esi + 0x156]
test al, al
jne 0x434787
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push 0
call fcn.00443910
mov byte [ebp + 8], 0
mov al, byte [ebp + 8]
mov cl, byte [ebp - 0x54]
mov edx, dword [ebp + 0xc]
cmp al, cl
jae 0x4349bb
mov edi, dword [ebp + 8]
mov al, byte [esi + 0xee]
and edi, 0xff
mov cl, byte [edi + 0x4bb0f8]
test al, cl
jne 0x4347dd
mov ecx, dword [ebp - 0x1c]
mov eax, 0xf0f0f0f0
imul edi, ecx
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 - 0x24]
inc al
mov byte [ebp + 8], al
jmp 0x43478b
xor ebx, ebx
cmp ebx, dword [ebp - 0x1c]
jae 0x4347d0
test byte [esi + 0xb4], 0xe0
je 0x43484a
test byte [esi + 0xb4], 0x40
je 0x43480b
lea eax, [ebp - 0x7c]
push 0x4d8340
push eax
mov dword [ebp - 0x7c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x43482f
lea ecx, [ebp - 0x88]
push 0x4d8340
push ecx
mov dword [ebp - 0x88], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x84]
push 0x4d8340
push edx
mov dword [ebp - 0x84], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, edi
and eax, 0xff
add ecx, eax
mov eax, dword [ebp - 0x58]
test eax, eax
mov dword [ebp + 0x10], ecx
je 0x434871
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0x32
test eax, eax
jne 0x434878
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x5c]
fld qword [0x4bb910]
fsub qword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x94], edx
fild qword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x4c]
fmulp st(1)
fild qword [ebp - 0x94]
and eax, 0xff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
fdivp st(1)
fild dword [ebp - 0x44]
fdivr qword [0x4bb918]
faddp st(1)
fiadd dword [ebp - 0x34]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
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 eax, dword [ebp - 0x2c]
test eax, eax
jne 0x434966
mov edx, dword [ebp - 0x70]
push 0
push 0
push 1
lea ecx, [ebp - 0x1394]
push 0
push ecx
push edi
mov edi, dword [ebp + 8]
push ebx
push edx
push edi
mov ecx, esi
call fcn.00445af0
mov eax, edi
mov ecx, dword [ebp + 0xc]
and eax, 0xff
mov byte [ebp - 0x20], 0
imul eax, dword [ebp - 0x1c]
add eax, ebx
add eax, ecx
mov cl, byte [ebp - 0x14]
mov dl, byte [ebp - 0x20]
cmp dl, cl
jae 0x4349ab
mov edi, dword [ebp - 0x20]
and edi, 0xff
mov cl, byte [edi + eax]
mov dl, byte [ebp + edi - 0x1394]
cmp cl, dl
ja 0x434959
mov cl, dl
mov byte [edi + eax], cl
mov cl, byte [ebp - 0x20]
inc cl
mov byte [ebp - 0x20], cl
jmp 0x434936
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov eax, ecx
and edx, 0xffff
and eax, 0xff
push 0xff
imul eax, dword [ebp - 0x1c]
add eax, ebx
imul eax, edx
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
push edi
push ebx
push 0xf2
push ecx
mov ecx, esi
call fcn.0044e4a0
and edi, 0xff
add ebx, edi
jmp 0x4347df
mov edi, dword [ebp - 0x14]
and edi, 0xff
add ebx, edi
jmp 0x4347df
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4349f3
mov ecx, dword [esi + 8]
mov al, byte [ecx + 0xa0]
cmp al, 2
mov al, byte [esi + 0x838]
jne 0x4349d7
inc al
push eax
push edx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
and edx, 0xff
push ebx
imul edx, dword [ebp - 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00478320
test ebx, ebx
je 0x434a00
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 0x434a4c
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 ax, word [esi + 0xf4]
mov cl, byte [esi + 0xf2]
push eax
push ecx
mov ecx, esi
call fcn.00435d00
lea ecx, [ebp - 0x50]
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