Function at 0x453860
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a93e3
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 - 0x30], al
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x2c], bl
jbe 0x4538be
mov eax, dword [ebp - 0x30]
mov dl, byte [esi + 0xee]
mov ecx, 0x4bb0f8
and eax, 0xff
test byte [ecx], dl
je 0x4538b7
inc bl
inc ecx
dec eax
jne 0x4538b1
mov byte [ebp - 0x2c], bl
mov eax, dword [ebp + 0x10]
mov dl, 0xa0
mov cl, 0xb0
mov byte [ebp - 0x58], 1
test eax, eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x20], cl
je 0x453906
xor eax, eax
mov al, byte [esi + 0x150]
dec eax
je 0x4538fe
dec eax
je 0x4538f0
dec eax
je 0x4538fe
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x20], cl
jmp 0x453906
mov byte [ebp - 0x14], 0xa2
mov byte [ebp - 0x20], 0xb2
mov byte [ebp - 0x15], 1
jmp 0x453906
mov byte [ebp - 0x14], 0xa1
mov byte [ebp - 0x20], 0xb1
mov al, byte [esi + 0x839]
xor ebx, ebx
test al, 4
mov dword [ebp - 0x4c], ebx
je 0x453962
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
cmp dword [esi + 0x348c], 1
jne 0x4539ba
mov ecx, esi
call fcn.00457d00
test ebx, ebx
je 0x4539c9
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x453aa8
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 - 0x24]
mov cl, byte [ebp - 0x15]
shr ebx, cl
mov dword [ebp + 0x10], edi
test ebx, ebx
jbe 0x453a93
test byte [esi + 0xb4], 0xe0
jne 0x453c57
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]
mov ecx, dword [ebp - 0x14]
push edi
push ecx
push 0
mov ecx, esi
call fcn.00445980
add edi, 0x100
cmp edi, ebx
jb 0x453a0e
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x390]
push eax
push ecx
push 1
mov ecx, esi
call fcn.00436000
lea edx, [ebp - 0x84]
mov ebx, eax
push str.IDS_STS_SCAN_BAD_BLOCK
push edx
mov dword [ebp - 0x1c], 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 - 0x24]
mov cl, byte [ebp - 0x15]
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 0x453b59
mov al, byte [esi + 0x156]
test al, al
jne 0x453b59
mov eax, dword [ebp + 0x14]
mov ecx, esi
push eax
push 0
call fcn.00443910
cmp word [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
jbe 0x453cab
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov ax, word [ebp + ecx*2 - 0x390]
mov ecx, dword [esi + 0x110]
test ch, 8
mov dword [ebp - 0x3c], eax
je 0x453b94
mov cl, byte [esi + 0x156]
test cl, cl
je 0x453ba0
mov edx, dword [ebp + 0x14]
mov ecx, esi
push edx
push eax
call fcn.00443910
mov eax, dword [ebp - 0x28]
xor ebx, ebx
test eax, eax
jbe 0x453c97
test byte [esi + 0xb4], 0xe0
jne 0x453e59
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x4c]
inc ecx
test eax, eax
mov dword [ebp + 0x10], ecx
je 0x453bd6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], 0x32
test eax, eax
jne 0x453bdd
mov dword [ebp - 0x50], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
fmul qword [0x4bb918]
fild qword [ebp - 0x68]
fdivp st(1)
fiadd dword [ebp - 0x50]
fstp qword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
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 [esi + 0x3cfc]
push 0x400
test eax, eax
jne 0x453c6c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
push ecx
push ebx
push edx
push 0
mov ecx, esi
call fcn.004459d0
jmp 0x453c81
lea edx, [ebp - 0x6c]
push 0x4d8340
push edx
mov dword [ebp - 0x6c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [esi + 0x3d00]
mov ecx, dword [ebp - 0x3c]
push eax
push ecx
push ebx
push 0
mov ecx, esi
call fcn.00445a30
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dx, word [esi + 0x18e]
add ebx, edx
cmp ebx, eax
jb 0x453bad
mov eax, dword [ebp - 0x14]
inc eax
cmp ax, word [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jb 0x453b6b
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 0x453cc9
cmp al, 0x96
je 0x453cc9
test byte [esi + 0x110], 8
je 0x453d34
mov eax, dword [esi + 0x34ac]
mov byte [ebp + 0x10], 0x20
test eax, eax
je 0x453cdb
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
cmp dword [esi + 0x348c], 1
jne 0x453d34
mov ecx, esi
call fcn.00457d00
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [ebp + 8]
imul eax, dword [ebp - 0x5c]
imul eax, edi
push ecx
mov ecx, esi
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x14], 0x40
mov dword [ebp - 0x20], 0
call fcn.0044e9a0
mov edx, ebx
mov dword [ebp - 0x50], eax
shl edx, 6
cmp edx, 0x800
jle 0x453d84
shr byte [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
and eax, 0xff
imul eax, ebx
cmp eax, 0x800
jg 0x453d6f
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
and ecx, 0xff
and eax, 0xff
imul ecx, ebx
imul eax, ebx
imul ecx, edi
add eax, 0x1ff
add ecx, 0x1000
cdq
and edx, 0x1ff
push ecx
add eax, edx
mov byte [ebp - 4], 6
sar eax, 9
mov byte [ebp - 0x28], al
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esi + 0x110]
add esp, 4
mov dword [ebp - 0x20], ebx
test ah, 8
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
je 0x453e01
mov al, byte [esi + 0x156]
test al, al
jne 0x453e01
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 - 0x30]
cmp al, cl
jae 0x454003
mov ebx, dword [ebp + 8]
mov al, byte [esi + 0xee]
and ebx, 0xff
mov cl, byte [ebx + 0x4bb0f8]
test al, cl
jne 0x453eaa
mov ecx, dword [ebp - 0x24]
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 - 0x20]
inc al
mov byte [ebp + 8], al
jmp 0x453e05
test byte [esi + 0xb4], 0x40
je 0x453e77
lea eax, [ebp - 0x78]
push 0x4d8340
push eax
mov dword [ebp - 0x78], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x453e95
lea ecx, [ebp - 0x80]
push 0x4d8340
push ecx
mov dword [ebp - 0x80], 0xa0100
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x74]
push 0x4d8340
push edx
mov dword [ebp - 0x74], 0xa0001
call sub.MSVCRT.dll__CxxThrowException
xor edi, edi
cmp edi, dword [ebp - 0x24]
jae 0x453e4c
test byte [esi + 0xb4], 0xe0
je 0x453f11
test byte [esi + 0xb4], 0x40
je 0x453ed8
lea eax, [ebp - 0x7c]
push 0x4d8340
push eax
mov dword [ebp - 0x7c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
test byte [esi + 0xb4], 0x20
je 0x453efc
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 - 0x14]
mov ecx, dword [ebp + 0x10]
and eax, 0xff
mov dword [ebp - 0x3c], eax
add ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x453f39
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], 0x32
test eax, eax
jne 0x453f40
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 - 0x1c]
imul eax, dword [ebp - 0x24]
add eax, edi
and ecx, 0xffff
imul eax, ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp + 8]
push 0xff
push eax
mov eax, dword [ebp - 0x14]
push edx
push eax
push edi
push 0xf2
push ecx
mov ecx, esi
call fcn.0044e4a0
add edi, dword [ebp - 0x3c]
jmp 0x453eac
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
and edi, 0xff
push ebx
imul edi, dword [ebp - 0x24]
push edx
push edi
mov ecx, esi
call fcn.004517d0
mov al, byte [esi + 0x3d0c]
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00454450
test byte [esi + 0x15c], 0x40
je 0x45405d
cmp byte [esi + 0x436c], 8
jne 0x45405d
mov dl, byte [esi + 0x3d0c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00454140
jmp 0x454083
mov eax, dword [ebp - 0x50]
mov dl, byte [esi + 0x3d0c]
mov ecx, dword [ebp - 0x1c]
push edx
test eax, eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
push ecx
push edi
mov ecx, esi
je 0x45407e
call fcn.00478320
jmp 0x454083
call fcn.00451d80
mov eax, dword [esi + 0x3d14]
test eax, eax
je 0x454098
mov edx, dword [ebp + 0xc]
mov ecx, esi
push edx
call fcn.004697e0
test ebx, ebx
je 0x4540a5
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 0x4540f1
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 - 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