Function at 0x460390
Capabilities:
Encrypt data via sspi

Disassembly:
push 0xffffffffffffffff
push 0x4eb320
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea eax, [ecx + 0x4c]
lea ecx, [esp + 0x44]
push ecx
push 4
push eax
call sub.Secur32.dll_QueryContextAttributesA
xor edi, edi
cmp eax, edi
jl 0x46062c
xor ecx, ecx
mov eax, 0x64
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90.dll_Ordinal_265
push 0x4b0
mov esi, eax
push edi
push esi
mov dword [esp + 0x34], esi
call sub.MSVCR90.dll_memset
add esp, 0x10
mov dword [esp + 0x28], 0x64
mov dword [esp + 0x60], edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x4c]
add edi, edi
jne 0x460422
mov edi, 1
push edi
call sub.mfc90.dll_Ordinal_265
push edi
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x3c], ebp
call sub.MSVCR90.dll_memset
add esp, 0x10
mov dword [esp + 0x30], edi
mov byte [esp + 0x60], 1
mov edi, dword [esp + 0x44]
add edi, edi
jne 0x460450
mov edi, 1
push edi
call sub.mfc90.dll_Ordinal_265
push edi
push 0
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
call sub.MSVCR90.dll_memset
add esp, 0x10
mov dword [esp + 0x38], edi
mov byte [esp + 0x60], 2
mov edi, dword [esp + 0x48]
add edi, edi
jne 0x460480
mov edi, 1
push edi
call sub.mfc90.dll_Ordinal_265
push edi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x4c], ebx
call sub.MSVCR90.dll_memset
add esp, 0x10
mov dword [esp + 0x40], edi
mov byte [esp + 0x60], 3
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
sub edi, eax
je 0x4605ba
mov ecx, dword [esp + 0x4c]
cmp edi, ecx
jbe 0x4604bb
mov edi, ecx
mov ecx, dword [esp + 0x68]
push edi
add eax, ecx
push eax
push ebp
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x20]
add dword [esp + 0x24], edi
mov dword [esi + 8], edx
mov eax, dword [esp + 0x50]
mov dword [esi], eax
mov dword [esi + 4], 7
mov dword [esi + 0x20], ebx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], 6
xor ecx, ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x14], ebp
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x2c]
add esp, 0xc
push ecx
lea eax, [edi + 0x43c]
mov dword [esi + 0x10], 1
push eax
mov dword [eax], ecx
push ecx
lea eax, [edi + 0x4c]
push eax
mov dword [edi + 0x444], esi
mov dword [edi + 0x440], 4
call sub.Secur32.dll_EncryptMessage
test eax, eax
jl 0x4605f6
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, edi
call fcn.0045fe50
mov dword [esp + 0x1c], eax
cmp eax, dword [esi]
jne 0x460634
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.0045fe50
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0xc]
jne 0x46066d
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
push eax
push ecx
mov ecx, edi
call fcn.0045fe50
mov edi, eax
cmp edi, dword [esi + 0x18]
jne 0x460684
mov byte [esp + 0x60], 2
push ebx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x18]
push edx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x68], 0
push ebp
call sub.mfc90.dll_Ordinal_266
add esp, 0xc
jmp 0x460415
mov byte [esp + 0x60], 2
push ebx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x18]
push eax
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x68], 0
push ebp
call sub.mfc90.dll_Ordinal_266
mov dword [esp + 0x6c], 0xffffffff
push esi
call sub.mfc90.dll_Ordinal_266
mov eax, dword [esp + 0x7c]
jmp 0x4606b9
mov byte [esp + 0x60], 2
push ebx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x64], 1
mov ecx, dword [esp + 0x18]
push ecx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x68], 0
push ebp
call sub.mfc90.dll_Ordinal_266
mov dword [esp + 0x6c], 0xffffffff
push esi
call sub.mfc90.dll_Ordinal_266
add esp, 0x10
or eax, 0xffffffff
jmp 0x4606bc
mov byte [esp + 0x60], 2
push ebx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x18]
push edx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x68], 0
push ebp
call sub.mfc90.dll_Ordinal_266
mov dword [esp + 0x6c], 0xffffffff
push esi
call sub.mfc90.dll_Ordinal_266
mov eax, dword [esp + 0x2c]
jmp 0x4606b9
mov byte [esp + 0x60], 2
push ebx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x18]
push eax
jmp 0x460649
mov byte [esp + 0x60], 2
push ebx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x64], 1
mov ecx, dword [esp + 0x18]
push ecx
call sub.mfc90.dll_Ordinal_266
mov byte [esp + 0x68], 0
push ebp
call sub.mfc90.dll_Ordinal_266
mov dword [esp + 0x6c], 0xffffffff
push esi
call sub.mfc90.dll_Ordinal_266
mov eax, edi
add esp, 0x10
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8