Function at 0x45a610
Capabilities:
Encrypt data using rc4 ksa
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a9536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx + 0x12e]
mov cl, byte [ebx + 0x192]
cmp al, 4
push edi
mov byte [esp + 0x14], cl
jne 0x45a665
mov esi, ecx
and esi, 0xff
mov eax, esi
and al, 0xfe
cmp eax, 2
jge 0x45a65d
mov byte [esp + 0x14], 1
jmp 0x45a665
mov eax, esi
shr eax, 1
mov byte [esp + 0x14], al
mov eax, 0x1000
xor esi, esi
mov si, word [ebx + 0x18e]
mov byte [esp + 0x12], 0x10
cdq
idiv esi
mov dl, byte [ebx + 0x17d]
mov byte [esp + 0x18], al
mov al, byte [ebx + 0x17e]
mov byte [esp + 0x13], al
mov al, byte [ebx + 0xa0]
test al, al
jne 0x45a6a3
mov eax, dword [ebx + 0x130]
test eax, eax
je 0x45a6a8
mov byte [esp + 0x12], 0x11
movzx si, cl
mov ax, si
imul ax, word [ebx + 0x190]
mov dword [esp + 0x34], eax
mov al, byte [ebx + 0x18d]
cmp al, 0x40
jbe 0x45a6dc
lea ecx, [esp + 0x18]
push 0x4d8340
push ecx
mov dword [esp + 0x20], 0xf1000
call sub.MSVCRT.dll__CxxThrowException
movzx bp, byte [esp + 0x13]
movzx dx, dl
imul ebp, edx
imul ebp, esi
cmp cl, 1
mov dword [esp + 0x1c], 2
je 0x45a6fd
mov dword [esp + 0x1c], ebp
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.00435fc0
mov esi, dword [esp + 0x18]
xor eax, eax
mov al, byte [ebx + 0x18d]
and esi, 0xff
mov byte [esp + 0x20], 0
lea eax, [eax + esi - 1]
cdq
idiv esi
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x24], ecx
jle 0x45a7cb
mov eax, ebp
xor esi, esi
and eax, 0xffff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
and eax, 0xffff
cdq
idiv dword [esp + 0x28]
mov edx, ecx
sub edx, esi
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jl 0x45a775
mov al, dl
xor dl, dl
test al, al
jbe 0x45a7a5
and edi, 0xffff
lea esi, [esp + esi*2 + 0x48]
mov di, word [ebx + edi*2 + 0x37b2]
xor cx, cx
add esi, 2
mov cl, dl
add ecx, edi
inc dl
mov word [esi - 2], cx
cmp dl, al
jb 0x45a78d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x20]
add edx, ebp
mov dword [esp + 0x1c], edx
mov dl, byte [esp + 0x14]
add al, dl
mov byte [esp + 0x20], al
mov esi, dword [esp + 0x20]
and esi, 0xff
cmp esi, ecx
jl 0x45a757
mov eax, dword [esp + 0x1c]
and ebp, 0xffff
and eax, 0xffff
xor ecx, ecx
cdq
idiv ebp
mov cl, byte [ebx + 0x192]
xor edx, edx
push 0x80
and eax, 0xffff
mov dx, word [ebx + eax*2 + 0x37b2]
mov eax, edx
cdq
idiv ecx
mov dl, byte [ebx + 0xf2]
lea ecx, [esp + 0x34]
mov byte [ebx + 0x3270], al
mov al, byte [ebx + 0xec]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0043f110
lea edx, [esp + 0x38]
lea eax, [esp + 0x30]
push edx
push 0x80
push ecx
xor esi, esi
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov dword [esp + 0xc0], esi
call fcn.004a57ee
mov cl, byte [ebx + 0x24]
mov byte [esp + 0xbc], 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4e60d8
call fcn.004a57ee
lea ecx, [ebx + 0x120]
mov byte [esp + 0xc4], 0
call fcn.004584c0
cmp byte [esp + 0x42], 1
sete byte [esp + 0x13]
xor ecx, ecx
mov cx, word [ebx + 0x142]
mov edx, ecx
and edx, 0x800003ff
jns 0x45a897
dec edx
or edx, 0xfffffc00
inc edx
jne 0x45a8a3
xor eax, eax
mov al, byte [ebx + 0x141]
jmp 0x45a8b4
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x144]
mov cl, byte [ebx + 0x141]
imul eax, ecx
mov ecx, dword [esp + 0x3a]
xor edx, edx
and ecx, 0xff
div ecx
xor ecx, ecx
mov cx, word [ebx + 0x18e]
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x45a8da
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0xc4]
mov edx, dword [esp + 0x18]
mov ecx, 0x80
xor eax, eax
mov edi, ebp
add edx, 0xfffffff6
rep stosd dword es:[edi], eax
mov al, 6
mov byte [ebp], 0xd
mov byte [ebp + 1], al
mov byte [ebp + 2], 5
mov byte [ebp + 3], al
mov al, byte [ebx + 0x24]
cmp al, 0x84
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
jne 0x45a91a
mov byte [ebp + 4], al
jmp 0x45aab2
cmp al, 0x86
mov cl, 0x92
je 0x45aaa7
cmp al, cl
je 0x45aaa7
cmp al, 0x90
jne 0x45a938
mov byte [ebp + 4], al
jmp 0x45aab2
cmp al, 0x96
jne 0x45a944
mov byte [ebp + 4], al
jmp 0x45aaab
cmp al, 0x10
mov cl, 0x13
je 0x45a94e
cmp al, cl
jne 0x45a964
test byte [ebx + 0x110], 0x10
je 0x45a964
mov byte [ebp + 4], 0x10
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0x10
je 0x45a96c
cmp al, cl
jne 0x45a982
test byte [ebx + 0x110], 0x20
je 0x45a982
mov byte [ebp + 4], 0x12
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0x10
je 0x45a98a
cmp al, cl
jne 0x45a9a0
test byte [ebx + 0x110], 0x80
je 0x45a9a0
mov byte [ebp + 4], 0x15
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0x10
je 0x45a9a8
cmp al, cl
jne 0x45a9fd
test byte [ebx + 0x110], 0x40
je 0x45a9fd
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcd
jne 0x45a9ca
mov byte [ebp + 4], 0x98
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0xe0
jne 0x45a9db
mov byte [ebp + 4], 0x16
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0xe2
jne 0x45a9ec
mov byte [ebp + 4], 0x17
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0xe6
jne 0x45a9f4
mov byte [ebp + 4], 0x19
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0x10
je 0x45aa05
cmp al, cl
jne 0x45aa44
mov edx, dword [ebx + 0x110]
test dh, 1
je 0x45aa44
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcf
jne 0x45aa28
mov byte [ebp + 4], cl
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0xe1
jne 0x45aa36
mov byte [ebp + 4], 0x18
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0xe3
jne 0x45a9f4
mov byte [ebp + 4], 0x19
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0x10
je 0x45aa4c
cmp al, cl
jne 0x45aa7a
mov edx, dword [ebx + 0x110]
test dh, 2
je 0x45aa7a
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcf
jne 0x45aa6c
mov byte [ebp + 4], cl
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0xe1
jne 0x45aa36
mov byte [ebp + 4], 0x18
mov byte [ebp + 5], 0x88
jmp 0x45aab2
cmp al, 0x10
je 0x45aa82
cmp al, cl
jne 0x45aab2
mov eax, dword [ebx + 0x110]
test ah, 0x60
je 0x45aab2
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xe5
je 0x45aa9d
cmp al, 0xe8
jne 0x45aaa1
mov byte [ebp + 4], 0x21
mov byte [ebp + 5], 0x88
jmp 0x45aab2
mov byte [ebp + 4], 0x85
mov byte [ebp + 5], 0x88
mov byte [ebp + 6], cl
mov eax, 0x400
xor ecx, ecx
mov cx, word [ebx + 0x190]
cdq
idiv ecx
cmp eax, 8
jle 0x45aacd
mov eax, 8
lea edx, [esp + 0x2c]
mov ecx, ebx
push edx
mov byte [ebp + 0xb], al
call fcn.00449dc0
mov byte [ebp + 0xc], al
mov byte [ebp + 0xd], 1
mov byte [ebp + 0xe], 1
mov byte [ebp + 0xf], 0
mov byte [ebp + 0x10], 0
mov ecx, ebx
mov byte [ebp + 0x11], 3
call fcn.00449d00
mov byte [ebp + 0x12], al
mov al, byte [esp + 0x12]
mov byte [ebp + 0x13], al
mov al, byte [ebx + 0x110]
test al, 8
je 0x45ab36
xor eax, eax
mov esi, dword [esp + 0xc0]
mov al, byte [ebx + 0x3d06]
lea edi, [ebp + 0x14]
lea ecx, [eax + eax*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x45ab47
mov esi, dword [esp + 0xc0]
lea edi, [ebp + 0x14]
mov ecx, 0x39
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0xb8]
mov cx, word [esp + 0xbc]
mov byte [ebp + 0x100], 0xa0
mov byte [ebp + 0x101], 0
mov byte [ebp + 0x102], al
mov ax, cx
mov dl, byte [esp + 0x13]
shr ax, 8
mov byte [ebp + 0x103], al
mov byte [ebp + 0x104], cl
mov cl, byte [ebx + 0x104]
mov word [esp + 0x1c], ax
mov byte [ebp + 0x105], cl
mov ecx, ebx
mov byte [ebp + 0x106], dl
call fcn.00449d00
mov byte [ebp + 0x10f], al
mov eax, dword [ebx + 0x110]
and al, 8
neg al
sbb al, al
and al, 0xf8
add al, 0x10
mov byte [esp + 0x24], al
je 0x45abe4
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x48]
lea esi, [ebp + 0x111]
and edi, 0xff
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [eax + 1]
add eax, 2
mov byte [esi - 1], cl
mov byte [esi], dl
add esi, 2
dec edi
jne 0x45abcf
test byte [ebx + 0x110], 8
je 0x45ac32
mov eax, dword [0x4e5bb8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.TimeToReady
push 0x4df17c
call esi
test al, al
je 0x45ac12
mov byte [ebp + 0x120], 0x51
mov ecx, dword [0x4e5bb8]
push ecx
push 0
push str.InterceptUFI
push 0x4df17c
call esi
test al, al
je 0x45ac32
mov byte [ebp + 0x121], 0x51
xor edx, edx
mov dl, byte [ebx + 0x27]
cmp dl, 0xe3
jne 0x45ac66
mov byte [ebp + 0x122], 0
mov byte [ebp + 0x123], 0x3e
mov byte [ebp + 0x124], 0xe9
mov byte [ebp + 0x125], 0xe1
mov byte [ebp + 0x126], 0x50
mov byte [ebp + 0x127], 0xa
mov eax, dword [ebx + 8]
mov al, byte [eax + 0xc8]
test al, al
je 0x45ac79
mov byte [ebp + 0x140], al
mov eax, dword [esp + 0x2c]
test ax, ax
je 0x45ac92
xor ecx, ecx
mov byte [ebp + 0x193], al
mov cl, ah
mov byte [ebp + 0x192], cl
mov al, byte [ebx + 0x116]
test al, al
jne 0x45acc5
mov al, byte [ebp + 0xc]
cmp al, 0x40
je 0x45acb7
cmp al, 0x50
jne 0x45acc5
mov byte [ebp + 0x192], 1
mov byte [ebp + 0x193], 0x8f
jmp 0x45acc5
mov byte [ebp + 0x192], 1
mov byte [ebp + 0x193], 0xec
cmp word [ebx + 0x148], 0x100
jne 0x45acec
mov ecx, ebx
call fcn.0044e8c0
test ax, ax
je 0x45acec
xor edx, edx
mov byte [ebp + 0x193], al
mov dl, ah
mov byte [ebp + 0x192], dl
mov al, byte [ebx + 0x3d01]
mov ecx, ebx
mov byte [ebp + 0x194], al
call fcn.00449b10
mov byte [ebp + 0x195], al
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + 0x96]
mov byte [ebp + 0x19e], dl
mov al, byte [ebx + 0x24]
cmp al, 0x90
je 0x45ad3a
test byte [ebx + 0x110], 8
jne 0x45ad3a
cmp al, 0x96
jne 0x45ad4e
cmp byte [ebx + 0x2a99], 1
sete al
mov byte [ebp + 0x19f], al
jmp 0x45ad4e
cmp byte [ebx + 0x2a99], 1
setne cl
dec ecx
and ecx, 0x51
mov byte [ebp + 0x19f], cl
test byte [ebx + 0x110], 8
je 0x45ae43
mov edx, dword [esp + 0xc0]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
mov ecx, ebx
call fcn.004487d0
mov ecx, dword [esp + 0x20]
mov eax, 0x18
cdq
and ecx, 0xff
push 1
idiv ecx
xor edx, edx
mov byte [esp + 0x18], 0x14
mov dl, byte [esp + eax*2 + 0x6d]
mov byte [ebp + 0x1a0], dl
lea esi, [esp + eax*2 + 0x6c]
mov al, byte [esp + eax*2 + 0x6c]
mov byte [ebp + 0x1a1], al
mov eax, 0x14
cdq
idiv ecx
mov dl, byte [esp + eax*2 + 0x6c]
xor ecx, ecx
mov cl, byte [esp + eax*2 + 0x6d]
mov byte [ebp + 0x1a3], dl
mov byte [ebp + 0x1a2], cl
mov ecx, ebx
lea eax, [esp + eax*2 + 0x6c]
call fcn.0044a4b0
cmp al, 0x14
jbe 0x45ae43
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
and ecx, 0xff
and edi, 0xff
push 1
lea eax, [ecx - 0x14]
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ebx]
mov eax, ecx
cdq
idiv edi
xor edx, edx
mov dl, byte [esp + eax*2 + 0x6d]
mov eax, ecx
mov byte [esi + 0x3af7], dl
mov edi, dword [esp + 0x24]
cdq
and edi, 0xff
mov ecx, ebx
idiv edi
mov al, byte [esp + eax*2 + 0x6c]
mov byte [esi + 0x3af8], al
mov al, byte [esp + 0x18]
add al, 4
mov byte [esp + 0x18], al
call fcn.0044a4b0
cmp byte [esp + 0x14], al
jb 0x45ade1
mov eax, dword [ebx + 0x326c]
test eax, eax
je 0x45ae59
mov cl, byte [ebx + 0x3270]
mov byte [ebp + 0x1a6], cl
test byte [ebx + 0x110], 8
je 0x45ae79
mov dl, byte [esp + 0x44]
mov ecx, ebx
mov byte [ebp + 0x1a7], dl
call fcn.0044a010
mov byte [ebp + 0x1a8], al
mov al, byte [ebx + 0xf2]
xor edx, edx
cmp al, 0xc
mov byte [esp + 0x12], al
jne 0x45ae90
mov byte [esp + 0x12], 8
jmp 0x45ae99
cmp al, 2
jne 0x45ae99
mov byte [esp + 0x12], 4
cmp byte [ebx + 0x24], 0x90
je 0x45aeb1
test byte [ebx + 0x110], 8
jne 0x45aeb1
mov dx, word [ebx + 0xf4]
jmp 0x45aef5
xor esi, esi
xor eax, eax
mov si, word [ebx + 0xf4]
mov dword [esp + 0x14], 8
mov edi, 1
mov ecx, eax
shl edi, cl
test esi, edi
je 0x45aee7
mov edi, 2
shl edi, cl
test esi, edi
je 0x45aee7
shr ecx, 1
mov edi, 1
shl edi, cl
or edx, edi
mov ecx, dword [esp + 0x14]
add eax, 2
dec ecx
mov dword [esp + 0x14], ecx
jne 0x45aec4
mov cl, byte [esp + 0x12]
xor eax, eax
mov al, dh
mov byte [ebp + 0x1ef], dl
mov byte [ebp + 0x1ed], al
mov eax, dword [esp + 0x34]
xor edx, edx
mov byte [ebp + 0x1ee], cl
mov dl, ah
mov byte [ebp + 0x1f1], al
mov byte [ebp + 0x1f0], dl
mov al, byte [ebx + 0x18d]
xor ecx, ecx
mov byte [ebp + 0x1f2], al
mov byte [ebp + 0x1f3], 0
mov cl, byte [ebx + 0x191]
mov byte [ebp + 0x1f4], cl
mov dl, byte [ebx + 0x190]
mov byte [ebp + 0x1f5], dl
mov al, byte [ebx + 0x18c]
mov byte [ebp + 0x1f6], al
mov eax, dword [esp + 0x18]
mov byte [ebp + 0x1f7], 0
mov cl, byte [ebx + 0x192]
xor edx, edx
mov byte [ebp + 0x1f8], cl
mov dl, ah
mov byte [ebp + 0x1fb], al
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov cl, ah
mov byte [ebp + 0x1fa], dl
mov dl, byte [esp + 0x1c]
mov byte [ebp + 0x1fd], al
mov al, byte [esp + 0xbc]
mov byte [ebp + 0x1fc], cl
lea ecx, [esp + 0x30]
mov byte [ebp + 0x1f9], 0
mov byte [ebp + 0x1fe], dl
mov byte [ebp + 0x1ff], al
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret 0x10