Function at 0x6f8d44d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
mov edx, dword [edi]
mov dword [ebp - 0x34], 0
mov ecx, dword [edx + 0x8c]
mov edx, sym._ldap_int_nextref
mov dword [edi + 4], 0
mov dword [esi], 0
test ecx, ecx
cmovne edx, ecx
mov dword [ebp - 0x44], edx
test ebx, ebx
je 0x6f8d479a
mov esi, dword [ebx]
test esi, esi
je 0x6f8d4798
mov edx, dword [edi]
mov esi, dword [edx + 0x78]
cmp dword [eax + 0x18], esi
jge 0x6f8d4740
lea esi, [esi]
mov esi, eax
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x6f8d4540
mov eax, dword [edx + 0x90]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0xffffffff
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6f8d4b1e
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], esi
mov edx, dword [ebp - 0x2c]
lea esi, [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov eax, dword [edx + eax*4]
mov dword [esp], eax
call sym._ldap_url_parse_ext
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x6f8d4ab5
mov edx, dword [ebp - 0x30]
mov ebx, dword [edx + 0x24]
test ebx, ebx
je 0x6f8d45e3
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x6f8d4a20
mov eax, edx
call sym._find_tls_ext.part.0
cmp eax, 2
jne 0x6f8d4a20
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x24], 1
jne 0x6f8d4a20
mov eax, dword [edi]
call sym._find_connection.constprop.0.isra.0
mov esi, eax
test eax, eax
jne 0x6f8d47b0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6f8d4609
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x6f8d4a68
mov eax, dword [edi]
add eax, 0x154
mov dword [esp], eax
call sym._ldap_pvt_thread_mutex_lock
mov eax, dword [edi]
mov ecx, dword [eax + 8]
lea ebx, [ecx + 1]
mov dword [eax + 8], ebx
mov eax, dword [edi]
add eax, 0x154
mov dword [esp], eax
call sym._ldap_pvt_thread_mutex_unlock
mov eax, dword [ebp - 0x40]
mov ecx, ebx
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, edi
call sym._re_encode_request
test eax, eax
je 0x6f8d4ac4
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ebx
mov dword [esp + 0x20], 1
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0x18], edx
lea edx, [ebp - 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._ldap_send_server_request
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x6f8d49e0
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
test esi, esi
je 0x6f8d4a30
mov eax, dword [esi + 0x20]
mov ebx, dword [ebp - 0x2c]
test eax, eax
jne 0x6f8d4960
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._ber_memvfree_x
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._ldap_free_urllist
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._ber_memfree_x
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_memfree_x
mov eax, dword [ebp - 0x3c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 4], 0xffffffef
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._ber_memvfree_x
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._ldap_free_urllist
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._ber_memfree_x
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x3c], 0
jmp 0x6f8d46e0
mov eax, dword [ebp - 0x30]
xor edx, edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x54], eax
test ecx, ecx
je 0x6f8d47d0
mov dword [esp], ecx
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.ucrtbase.dll_strlen]
mov ecx, dword [ebp - 0x4c]
mov edx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp + 8], edi
mov dword [ebp - 0x4c], ecx
mov ebx, eax
mov edi, eax
jmp 0x6f8d47f3
mov eax, dword [ebx + 0x44]
cmp edi, ebx
cmove eax, dword [ebx + 0x40]
mov ebx, eax
test eax, eax
je 0x6f8d48c0
cmp dword [ebx + 0x30], esi
jne 0x6f8d47e0
cmp dword [ebx + 0x34], edx
jne 0x6f8d47e0
test edx, edx
je 0x6f8d47e0
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x50], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strncmp]
mov edx, dword [ebp - 0x50]
test eax, eax
jne 0x6f8d47e0
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp + 8]
mov dword [esp], eax
call sym._ldap_free_urllist
mov dword [ebp - 0x30], 0
mov dword [edi + 4], 0xfffffff0
mov dword [ebp - 0x3c], 0xffffffff
lea esi, [esi]
mov eax, dword [edi]
mov eax, dword [eax + 0x90]
mov dword [esp], edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
call eax
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
jne 0x6f8d4589
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_memvfree_x
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._ldap_free_urllist
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._ber_memfree_x
mov edx, dword [ebp - 0x3c]
test edx, edx
jne 0x6f8d4780
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
jmp 0x6f8d4710
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 8]
test eax, eax
je 0x6f8d45f4
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x40], esi
test edx, edx
je 0x6f8d4ae2
mov eax, dword [edx]
xor esi, esi
xor ecx, ecx
test eax, eax
je 0x6f8d48fc
mov eax, dword [ebp - 0x3c]
inc eax
cmp dword [edx + eax*4], 0
mov ecx, eax
lea esi, [eax*4]
jne 0x6f8d48e9
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0
mov dword [esp], edx
lea eax, [eax*4 + 8]
mov dword [ebp - 0x44], ecx
mov dword [esp + 4], eax
call sym._ber_memrealloc_x
mov ecx, dword [ebp - 0x40]
test eax, eax
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x44]
je 0x6f8d4ad3
mov edx, dword [ebp - 0x2c]
mov dword [eax + esi], edx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
mov dword [eax + ecx*4 + 4], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], 1
mov dword [eax], 1
jmp 0x6f8d46e0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._ber_memvfree_x
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [esp], eax
call sym._ldap_free_urllist
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x30], 0
mov eax, dword [edx]
test eax, eax
je 0x6f8d4aa3
xor eax, eax
lea esi, [esi]
nop
mov ecx, eax
inc eax
mov ebx, dword [edx + eax*4]
test ebx, ebx
jne 0x6f8d49a0
lea edx, [edx + ecx*4]
mov ecx, dword [edx]
mov dword [ebp - 0x2c], ecx
mov dword [edx], 0
cmp eax, 1
je 0x6f8d4a84
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], eax
jmp 0x6f8d4848
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
call sym._ldap_append_referral
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._ldap_free_urllist
mov dword [ebp - 0x30], 0
mov dword [edi + 4], 0xa
jmp 0x6f8d4848
mov dword [edi + 4], 0xfffffff4
mov eax, dword [ebp - 0x2c]
jmp 0x6f8d4749
mov edx, dword [ebp - 0x30]
mov eax, dword [edi]
call sym._find_connection.constprop.0.isra.0
mov esi, eax
test eax, eax
jne 0x6f8d46d2
mov eax, dword [edi]
mov dword [edi + 4], 1
add eax, 0x158
mov dword [esp], eax
call sym._ldap_pvt_thread_mutex_unlock
mov eax, dword [ebp - 0x2c]
jmp 0x6f8d4749
mov dword [esp + 4], 0
mov dword [esp], 0x6f91ce00
call sym._ber_strdup_x
mov dword [ebx + 0x10], eax
jmp 0x6f8d4609
mov dword [esp + 4], 0
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym._ber_memfree_x
mov dword [esi + 0x20], 0
jmp 0x6f8d49c1
mov eax, dword [edx - 4]
mov dword [ebp - 0x2c], eax
mov dword [edx - 4], 0
jmp 0x6f8d49c1
mov dword [edi + 4], 0xfffffff7
mov eax, dword [ebp - 0x2c]
jmp 0x6f8d4749
mov dword [edi + 4], 0xfffffffd
mov eax, dword [ebp - 0x2c]
jmp 0x6f8d4749
mov dword [edi + 4], 0xfffffff6
mov eax, dword [ebp - 0x2c]
jmp 0x6f8d4749
mov dword [esp + 4], 0
mov dword [esp], 8
call sym._ber_memalloc_x
mov esi, dword [ebp - 0x40]
mov dword [esi + 0x20], eax
test eax, eax
je 0x6f8d4ad3
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0x20]
mov dword [eax + 4], 0
jmp 0x6f8d4949
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_memvfree_x
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._ldap_free_urllist
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._ber_memfree_x
mov dword [ebp - 0x3c], 0
jmp 0x6f8d4710