Function at 0x40a1c0
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x3c]
sub esp, 0x48
push edi
test eax, eax
jbe 0x40a225
mov edi, dword [ebp + 0xc]
cmp eax, edi
jae 0x40a1d7
mov edi, eax
push edi
push dword [esi + 0x38]
push dword [ebp + 8]
call fcn.00403e04
sub dword [esi + 0x3c], edi
mov ecx, dword [esi + 0x3c]
jne 0x40a1f9
push dword [esi + 0x38]
call fcn.00403dc8
and dword [esi + 0x38], 0
jmp 0x40a207
mov eax, dword [esi + 0x38]
push ecx
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00403e04
cmp dword [esi + 0x2c], 0
ja 0x40a217
cmp dword [esi + 0x3c], 0
ja 0x40a217
xor al, al
jmp 0x40a219
mov al, 1
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, edi
jmp 0x40a39a
push ebx
xor ebx, ebx
or dword [ebp - 8], 0xffffffff
mov eax, dword [esi + 0x2c]
test eax, eax
jbe 0x40a254
push eax
push dword [esi + 0x28]
mov dword [ebp - 4], eax
push dword [esi + 0x30]
call fcn.00403e04
push dword [esi + 0x28]
call fcn.00403dc8
xor edx, edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
jmp 0x40a27f
mov eax, dword [esi + 0x34]
mov edi, dword [esi]
sub eax, ebx
push 0
push eax
mov eax, dword [esi + 0x30]
add eax, ebx
push eax
call fcn.0040549f
mov dword [ebp - 4], eax
test eax, eax
je 0x40a379
cmp eax, 0xffffffff
je 0x40a379
xor edx, edx
add ebx, dword [ebp - 4]
mov eax, dword [esi + 0x30]
push 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x3c]
pop ecx
mov dword [eax + 8], edx
mov dword [eax], edx
mov dword [eax + 4], edx
add eax, 0xc
dec ecx
jne 0x40a29b
push edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x10], eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 4
call sub.Secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x40a22c
test eax, eax
jne 0x40a37f
push 3
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
pop ecx
test edi, edi
jne 0x40a2f7
cmp dword [eax + 4], 1
jne 0x40a2f7
cmp dword [eax], edi
jbe 0x40a2f7
mov edi, eax
jmp 0x40a307
test ebx, ebx
jne 0x40a307
cmp dword [eax + 4], 5
jne 0x40a307
cmp dword [eax], ebx
jbe 0x40a307
mov ebx, eax
add eax, 0xc
dec ecx
jne 0x40a2e5
test edi, edi
je 0x40a348
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x40a337
sub eax, ecx
push eax
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 8]
add eax, ecx
push eax
mov dword [ebp - 4], ecx
call fcn.00403e1b
mov dword [esi + 0x38], eax
test eax, eax
je 0x40a37f
jmp 0x40a33a
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00403e04
test ebx, ebx
je 0x40a375
mov eax, dword [ebx]
mov ecx, dword [esi + 0x30]
sub ecx, eax
add ecx, dword [ebp - 0xc]
push eax
push ecx
call fcn.00403e1b
mov dword [esi + 0x28], eax
test eax, eax
je 0x40a37f
mov eax, dword [ebx]
mov dword [esi + 0x2c], eax
test edi, edi
jne 0x40a379
mov ebx, dword [ebp - 0xc]
jmp 0x40a22c
test edi, edi
je 0x40a37f
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [esi + 0x2c], 0
pop ebx
ja 0x40a390
cmp dword [esi + 0x3c], 0
ja 0x40a390
xor al, al
jmp 0x40a392
mov al, 1
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 8]
pop edi
leave
ret 0xc