Function at 0x10002c9e
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.10001e5b
push 8
push dword [ebp + 0x10]
call fcn.10001e5b
push 8
push dword [ebp + 0x14]
call fcn.10001e5b
mov dword [ebp - 0x38], 4
mov dword [ebp - 8], 0x18
push 0
push dword [ebp + 0x14]
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call sub.secur32.dll_AcquireCredentialsHandleA
or eax, eax
jne 0x1000300d
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.1000230f
test eax, eax
je 0x1000300d
push 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push eax
call fcn.10001dd4
mov dword [ebp - 0x68], 0xc11c
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 1
lea eax, [ebp - 0x80]
mov dword [ebp - 0x6c], eax
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x10]
push 0
push 0
push 0x10
push 0
push dword [ebp - 0x68]
push dword [ebp + 8]
push 0
push dword [ebp + 0x14]
call sub.secur32.dll_InitializeSecurityContextA
cmp dword [ebp - 0x80], 0
je 0x1000300d
cmp dword [ebp - 0x78], 0
je 0x1000300d
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x3c]
call fcn.10001c6e
push dword [ebp - 0x78]
call sub.secur32.dll_FreeContextBuffer
push 4
push 0x3000
push 0x8000
push 0
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x1000300d
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], 0x90312
mov dword [ebp - 0xb0], 0
jmp 0x10002fc3
cmp dword [ebp - 0xb0], 0
je 0x10002dfb
cmp dword [ebp - 0xb8], 0x80090318
jne 0x10002e35
mov eax, dword [ebp - 0xac]
add eax, dword [ebp - 0xb0]
mov ecx, 0x8000
sub ecx, dword [ebp - 0xb0]
push 0xa
push ecx
push eax
push dword [ebp - 0x3c]
call fcn.10001cf5
or eax, eax
je 0x10002ff3
cmp eax, 0
jl 0x10002ff3
add dword [ebp - 0xb0], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 1
lea eax, [ebp - 0x80]
mov dword [ebp - 0x6c], eax
push 4
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.10001dd4
mov dword [ebp - 0xa0], 2
push 4
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10001dd4
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 2
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x84], eax
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push 0x10
push 0
push dword [ebp - 0x68]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call sub.secur32.dll_InitializeSecurityContextA
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0x80090318
je 0x10002fc3
cmp dword [ebp - 0xb8], 0
jl 0x10002ff3
cmp dword [ebp - 0xb8], 0
je 0x10002f40
cmp dword [ebp - 0xb8], 0x90312
jne 0x10002f58
cmp dword [ebp - 0x80], 0
je 0x10002f58
cmp dword [ebp - 0x78], 0
je 0x10002f58
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x3c]
call fcn.10001c6e
push dword [ebp - 0x78]
call sub.secur32.dll_FreeContextBuffer
cmp dword [ebp - 0xb8], 0x90320
jne 0x10002f69
jmp 0x10002ff3
cmp dword [ebp - 0x94], 5
jne 0x10002fb9
mov ecx, dword [ebp - 0xb0]
push 4
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.10001dd4
mov edx, dword [ebp - 0xac]
add edx, ecx
sub edx, dword [ebp - 0x98]
push dword [ebp - 0x98]
push dword [ebp - 0xac]
push edx
call fcn.10001dd4
mov dword [ebp - 0xb8], 0x90312
jmp 0x10002fc3
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb8], 0x90312
je 0x10002de6
cmp dword [ebp - 0xb8], 0x80090318
je 0x10002de6
cmp dword [ebp - 0xb8], 0x90320
je 0x10002de6
lea eax, [ebp - 0xac]
push eax
call fcn.10002661
cmp dword [ebp - 0xb8], 0
jne 0x1000300d
mov eax, dword [ebp - 0x3c]
jmp 0x1000300f
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x14