Function at 0x10081220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10162401
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x101cd100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], esi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [esi + 0x14], xmm0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xf
mov byte [esi + 0x14], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
movups xmmword [esi + 0x34], xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
cmp byte [0x101d7e49], 0
mov byte [ebp - 4], 2
jne 0x100814cd
mov edi, 0x101d7e58
mov dword [ebp - 0x58], 0x101d7e58
mov ecx, edi
call fcn.100321b0
cmp byte [0x101d7e49], 0
mov eax, bind
mov byte [ebp - 4], 3
jne 0x1008149d
call sym.drillClient.dll_public:_static_char_const____cdecl_Drill::DrillClientConfig::getSaslPluginPath_void_
test eax, eax
je 0x10081311
call sym.drillClient.dll_public:_static_char_const____cdecl_Drill::DrillClientConfig::getSaslPluginPath_void_
push eax
push 0
call dword [sym.imp.libsasl.dll_sasl_set_path]
add esp, 8
push 0
call dword [sym.imp.libsasl.dll_sasl_client_init]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100814ec
call dword [sym.imp.libsasl.dll_sasl_global_listmech]
mov esi, eax
xor edi, edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
call fcn.10075a10
add eax, 8
mov ecx, eax
mov dword [ebp - 0x44], eax
call fcn.100321b0
mov byte [ebp - 4], 8
call fcn.10075a10
cmp dword [eax + 4], edi
je 0x1008139f
call fcn.10075a10
cmp dword [eax], edi
jg 0x1008139f
push str.SASL_mechanisms_available_on_client:
push edi
call fcn.10075a10
mov ecx, eax
call fcn.10076560
push eax
call fcn.1000f1d0
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.10044990
movzx ecx, al
push ecx
mov ecx, esi
call fcn.1003d500
mov ecx, esi
call fcn.1002e300
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.1001ddd0
cmp dword [esi], 0
je 0x10081489
mov dword [ebp - 0x44], esi
call fcn.10075a10
lea esi, [eax + 8]
mov ecx, esi
mov dword [ebp - 0x5c], esi
call fcn.100321b0
mov byte [ebp - 4], 9
call fcn.10075a10
cmp dword [eax + 4], 0
je 0x10081439
call fcn.10075a10
cmp dword [eax], 0
jg 0x10081439
mov eax, dword [ebp - 0x44]
push dword [eax]
push 0x10170240
push edi
push 0
call fcn.10075a10
mov ecx, eax
call fcn.10076560
mov ecx, eax
call fcn.1001fbf0
push eax
call fcn.1000f1d0
add esp, 8
push eax
call fcn.1000f1d0
mov edi, eax
add esp, 8
mov ecx, dword [edi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, edi
call fcn.10044990
movzx ecx, al
push ecx
mov ecx, edi
call fcn.1003d500
mov ecx, edi
call fcn.1002e300
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 0xa
mov eax, bind
lock xadd dword [esi], eax
test eax, 0x40000000
jne 0x1008146e
cmp eax, 0x80000000
jle 0x1008146e
lock bts dword [esi], 0x1e
setb al
test al, al
jne 0x1008146e
mov ecx, esi
call fcn.1002ff10
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x4c]
inc edi
cmp dword [eax + edi*4], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x48], edi
lea eax, [eax + edi*4]
mov dword [ebp - 0x44], eax
jne 0x100813b7
mov esi, dword [ebp - 0x50]
mov eax, bind
mov byte [0x101d7e49], 1
mov edi, 0x101d7e58
mov byte [ebp - 4], 0xb
lock xadd dword [edi], eax
test eax, 0x40000000
jne 0x100814cd
cmp eax, 0x80000000
jle 0x100814cd
lock bts dword [edi], 0x1e
setb dl
test dl, dl
jne 0x100814cd
mov ecx, edi
call fcn.1002ff10
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret 4
push 1
lea ecx, [ebp - 0x10c]
call fcn.10055ee0
push esi
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 4
push str.Failed_to_load_authentication_libraries._code:
push eax
call fcn.1000f1d0
add esp, 8
mov ecx, eax
call fcn.1001fbf0
call fcn.10075a10
add eax, 8
lea ecx, [ebp - 0x44]
push eax
call fcn.1004d4c0
mov byte [ebp - 4], 5
call fcn.10075a10
cmp dword [eax + 4], 0
je 0x10081582
call fcn.10075a10
cmp dword [eax], 0
jg 0x10081582
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10082d10
push fcn.10012aa0
push eax
push 0
mov byte [ebp - 4], 6
call fcn.10075a10
mov ecx, eax
call fcn.10076560
push eax
call fcn.1000eb90
add esp, 8
mov ecx, eax
call fcn.100571a0
lea ecx, [ebp - 0x28]
call fcn.1001d770
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.1001ddd0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10082d10
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.10081920
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001c5f0
push 0x101a4974
lea eax, [ebp - 0x1c]
push eax
call fcn.10134106
int3