Function at 0x40b170
Capabilities:
Access peb ldr_data
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0xb4
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], str.Microsoft_Unified_Security_Protocol_Provider
mov dword [esp], 0
call sub.secur32.dll_AcquireCredentialsHandleA
sub esp, 0x24
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x27f
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41cabf
mov dword [esp], eax
call fcn.0040aa60
test ebx, ebx
je 0x40b288
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x2000
mov edx, 4
lea eax, [ebp - 0x50]
call fcn.00409eb0
mov eax, dword [ebp - 0x48]
mov dword [eax + 4], 2
mov esi, dword [ebp - 0x48]
mov eax, dword [esi + 8]
mov dword [ebp - 0x84], eax
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x84]
mov dword [esi + 0x14], eax
sub esp, 0xc
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov eax, edi
or edi, 0x100
mov dword [ebp - 0x90], edi
mov edi, dword [ebp - 0x48]
mov dword [edi + 8], edx
lea edx, [ebp - 0x50]
mov dword [edi], 0
mov dword [esp + 0x28], esi
lea esi, [ebp - 0x70]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x5c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x78]
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], str.localhost
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.secur32.dll_InitializeSecurityContextA
sub esp, 0x30
mov dword [ebp - 0x88], eax
call fcn.004162e0
mov ecx, dword [ebp - 0x88]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x290
xor eax, eax
cmp ecx, 0x80090300
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str._d:_Expected_SEC_E_INSUFFICIENT_MEMORY__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
lea eax, [ebp - 0x7c]
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x90]
mov dword [esp + 8], str.localhost
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x78]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.secur32.dll_InitializeSecurityContextA
sub esp, 0x30
mov dword [ebp - 0x88], eax
call fcn.004162e0
mov ecx, dword [ebp - 0x88]
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x296
xor eax, eax
cmp ecx, 0x90312
sete al
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str._d:_Expected_SEC_I_CONTINUE_NEEDED__got__08lx_n
call fcn.0040aa60
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x297
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [esp + 4], str.got__p._n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0040aa60
test ebx, ebx
jne 0x40b638
mov eax, dword [edi + 8]
lea ebx, [ebp - 0x7c]
mov dword [esp], eax
call sub.secur32.dll_FreeContextBuffer
sub esp, 4
mov dword [esp], esi
call sub.secur32.dll_DeleteSecurityContext
mov eax, dword [ebp - 0x84]
mov dword [edi], 0x2000
sub esp, 4
mov dword [edi + 8], eax
lea edi, [ebp - 0x5c]
mov dword [esp + 0x28], ebx
lea ebx, [ebp - 0x50]
mov dword [esp + 0x24], ebx
lea ebx, [ebp - 0x78]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ecx, dword [ebp - 0x80]
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], str.localhost
mov dword [esp + 4], 0
call sub.secur32.dll_InitializeSecurityContextA
sub esp, 0x30
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x2a0
xor eax, eax
cmp ebx, 0x90312
sete al
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str._d:_Expected_SEC_I_CONTINUE_NEEDED__got__08lx_n
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], esi
call sub.secur32.dll_DeleteSecurityContext
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x84]
sub esp, 4
mov dword [eax + 8], edx
lea edi, [eax + 0xc]
mov dword [eax], 0x2000
mov dword [eax + 0x10], 0x11
mov dword [eax + 0xc], 0
lea eax, [ebp - 0x7c]
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x78]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ecx, dword [ebp - 0x80]
mov dword [esp + 8], str.localhost
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.secur32.dll_InitializeSecurityContextA
sub esp, 0x30
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x290
xor eax, eax
cmp ebx, 0x80090300
sete al
mov dword [esp + 0xc], ebx
mov ebx, 1
mov dword [esp], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str._d:_Expected_SEC_E_INSUFFICIENT_MEMORY__got__08lx_n
call fcn.0040aa60
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x2000
mov dword [eax + 8], 0xdeadbeef
jmp 0x40b3a4
mov eax, dword [ebp - 0x48]
lea ebx, [ebp - 0x7c]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.secur32.dll_FreeContextBuffer
mov eax, dword [edi + 8]
sub esp, 4
mov dword [esp], eax
call sub.secur32.dll_FreeContextBuffer
sub esp, 4
mov dword [esp], esi
call sub.secur32.dll_DeleteSecurityContext
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x50]
sub esp, 4
mov dword [eax + 8], edx
mov dword [eax], 0x2000
mov eax, dword [ebp - 0x8c]
mov dword [edi], 0x2000
mov dword [edi + 8], eax
mov dword [esp + 0x28], ebx
lea ebx, [ebp - 0x5c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
lea ebx, [ebp - 0x78]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ecx, dword [ebp - 0x80]
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], str.localhost
mov dword [esp + 4], 0
call sub.secur32.dll_InitializeSecurityContextA
sub esp, 0x30
mov ebx, eax
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x2a0
xor eax, eax
cmp ebx, 0x90312
sete al
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 8], 1
mov dword [esp + 4], str._d:_Expected_SEC_I_CONTINUE_NEEDED__got__08lx_n
call fcn.0040aa60
call fcn.004162e0
mov dword [eax], 0x41c5d6
mov dword [eax + 4], 0x2a1
xor eax, eax
mov dword [esp + 4], str.Expected_SECBUFFER_ALERT_buffer_to_be_empty_n
mov edx, dword [edi]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0040aa60
mov dword [esp], esi
call sub.secur32.dll_DeleteSecurityContext
mov edx, dword [ebp - 0x8c]
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
lea eax, [ebp - 0x50]
sub esp, 0xc
call fcn.00409fa0
lea eax, [ebp - 0x78]
mov dword [esp], eax
call sub.secur32.dll_FreeCredentialsHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret