Function at 0x402e2a
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.00401fe7
push 8
push dword [ebp + 0x10]
call fcn.00401fe7
push 8
push dword [ebp + 0x14]
call fcn.00401fe7
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 0x403199
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040249b
test eax, eax
je 0x403199
push 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push eax
call fcn.00401f60
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 0x403199
cmp dword [ebp - 0x78], 0
je 0x403199
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x3c]
call fcn.00401dfa
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 0x403199
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], 0x90312
mov dword [ebp - 0xb0], 0
jmp 0x40314f
cmp dword [ebp - 0xb0], 0
je 0x402f87
cmp dword [ebp - 0xb8], 0x80090318
jne 0x402fc1
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.00401e81
or eax, eax
je 0x40317f
cmp eax, 0
jl 0x40317f
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.00401f60
mov dword [ebp - 0xa0], 2
push 4
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00401f60
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 0x40314f
cmp dword [ebp - 0xb8], 0
jl 0x40317f
cmp dword [ebp - 0xb8], 0
je 0x4030cc
cmp dword [ebp - 0xb8], 0x90312
jne 0x4030e4
cmp dword [ebp - 0x80], 0
je 0x4030e4
cmp dword [ebp - 0x78], 0
je 0x4030e4
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x3c]
call fcn.00401dfa
push dword [ebp - 0x78]
call sub.secur32.dll_FreeContextBuffer
cmp dword [ebp - 0xb8], 0x90320
jne 0x4030f5
jmp 0x40317f
cmp dword [ebp - 0x94], 5
jne 0x403145
mov ecx, dword [ebp - 0xb0]
push 4
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00401f60
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.00401f60
mov dword [ebp - 0xb8], 0x90312
jmp 0x40314f
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb8], 0x90312
je 0x402f72
cmp dword [ebp - 0xb8], 0x80090318
je 0x402f72
cmp dword [ebp - 0xb8], 0x90320
je 0x402f72
lea eax, [ebp - 0xac]
push eax
call fcn.004027ed
cmp dword [ebp - 0xb8], 0
jne 0x403199
mov eax, dword [ebp - 0x3c]
jmp 0x40319b
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x14