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

Disassembly:
push ebp
mov eax, 0
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x5001
cmove eax, dword [ebp + 0x10]
cmp word [0x6f9165c0], 1
jne 0x6f8ff2f0
mov edi, dword [ebp + 8]
test edi, edi
je 0x6f8ff3b8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp word [edx + 0x30], 2
jne 0x6f8ff970
lea edi, [edx + 0x30]
lea eax, [edi + 0x11c]
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call sym._ldap_pvt_thread_mutex_lock
cmp ebx, 0x5015
jg 0x6f8ff240
cmp ebx, 0x5000
jg 0x6f8ff228
cmp ebx, 0x33
ja case.0x6f8ff253.5144911
jmp dword [ebx*4 + 0x6f91cb24]
cmp ebx, 0x5000
jg 0x6f8ff2d0
cmp ebx, 4
je 0x6f8ff3c8
jle 0x6f8ff2b0
cmp ebx, 0x11
je 0x6f8ff1f0
cmp ebx, 0x31
jne case.0x6f8ff2df.20483
mov eax, dword [ebp + 8]
test eax, eax
je case.0x6f8ff2df.20483
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor esi, esi
mov eax, dword [eax]
mov dword [ecx + 4], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea ecx, [eax - 2]
cmp ecx, 1
jbe 0x6f8ff670
lea esi, [esi]
mov esi, 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._ldap_pvt_thread_mutex_unlock
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx - 0x5001]
cmp eax, 0x14
ja case.0x6f8ff253.5144911
jmp dword [eax*4 + 0x6f91cbf4]
cmp ebx, 0x6302
jle 0x6f8ff260
lea eax, [ebx - 0x4e814d]
cmp eax, 0x21
ja case.0x6f8ff253.5144911
jmp dword [eax*4 + 0x6f91cc48]
cmp ebx, 0x62ff
jg case.0x6f8ff233.20481
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ldap_pvt_tls_set_option
mov esi, eax
test eax, eax
je 0x6f8ff20d
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ldap_int_sasl_set_option
mov esi, eax
test eax, eax
jne 0x6f8ff3eb
jmp 0x6f8ff20d
cmp ebx, 2
je 0x6f8ff320
cmp ebx, 3
jne case.0x6f8ff2df.20483
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 0x14], eax
jmp 0x6f8ff20d
sub ebx, 0x5001
cmp ebx, 0x14
ja case.0x6f8ff2df.20483
jmp dword [ebx*4 + 0x6f91ccd0]
mov dword [esp + 4], eax
mov dword [esp], 0x6f9165c0
call sym._ldap_int_initialize
cmp word [0x6f9165c0], 1
je 0x6f8ff159
mov esi, 0xfffffffe
jmp 0x6f8ff218
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [edi + 0xc], eax
xor esi, esi
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 0x44], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ebx
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ebx
jmp 0x6f8ff20d
mov dword [esp + 4], 0
mov dword [esp], 8
call sym._ber_memalloc_x
test eax, eax
je 0x6f8ff680
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x6c]
mov dword [eax], ecx
mov dword [edi + 0x6c], eax
jmp 0x6f8ff20d
mov edi, 0x6f9165c0
jmp 0x6f8ff177
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 0x10], eax
jmp 0x6f8ff20d
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6f8ffa1f
cmp ebx, 0x5015
jle case.0x6f8ff233.20488
cmp ebx, 0x6301
je 0x6f8ff8a0
cmp ebx, 0x6302
jne 0x6f8ff880
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 0x40], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi + 0x60], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi + 0x58], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi + 0x54], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi + 0x68], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi + 0x64], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi + 0x5c], eax
jmp 0x6f8ff20d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
test edx, edx
je 0x6f8ff8d0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sym._ldap_url_parselist_ext
mov esi, eax
cmp esi, 1
je 0x6f8ff680
jle 0x6f8ff787
lea eax, [esi - 2]
cmp eax, 8
mov eax, 0xfffffff7
cmovbe esi, eax
jmp 0x6f8ff20d
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 0x70]
test ecx, ecx
je 0x6f8ff990
or eax, 0x10
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6f8ff950
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._ber_strdup_x
mov dword [ebp + 8], eax
test eax, eax
je 0x6f8ff680
mov eax, dword [edi + 0x30]
test eax, eax
je 0x6f8ff540
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_memfree_x
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [edi + 0x30], eax
jmp 0x6f8ff20d
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
je 0x6f8ff900
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x6f91cb22
mov esi, 0xfffffff6
mov dword [esp], eax
call sym._ldap_str2charray
mov ebx, eax
test eax, eax
je 0x6f8ff20d
lea eax, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._ldap_validate_and_fill_sourceip
mov dword [esp], ebx
mov esi, eax
call sym._ldap_charray_free
test esi, esi
jne 0x6f8ff20d
mov eax, dword [edi + 0x74]
test eax, eax
je 0x6f8ff5ca
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_memfree_x
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x74], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x78], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_strdup_x
mov dword [edi + 0x74], eax
jmp 0x6f8ff20d
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 0x70]
test edx, edx
je 0x6f8ff9a0
or eax, 0x40
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
mov ebx, dword [ebp + 8]
test ebx, ebx
je case.0x6f8ff2df.20483
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x6f8ff645
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ber_memvfree_x
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6f8ff328
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [esp], eax
call sym._ldap_value_dup
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
jmp 0x6f8ff20d
mov dword [edi + 8], eax
xor esi, esi
jmp 0x6f8ff20d
mov esi, 0xfffffff6
jmp 0x6f8ff20d
mov edi, dword [ebp + 8]
test edi, edi
je case.0x6f8ff2df.20483
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x6f8ff6bf
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._ber_memfree_x
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x6f8ff328
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], eax
call sym._ber_strdup_x
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 8]
test eax, eax
je case.0x6f8ff2df.20483
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x6f8ff71f
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._ber_memfree_x
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6f8ff328
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], eax
call sym._ber_strdup_x
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x6f8ff20d
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
test esi, esi
je 0x6f8ff9b0
mov eax, dword [edi + 0x2c]
mov ecx, 0x185
test eax, eax
cmove eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sym._ldap_url_parsehosts
mov esi, eax
test esi, esi
jne 0x6f8ff20d
mov eax, dword [edi + 0x28]
test eax, eax
je 0x6f8ff79e
mov dword [esp], eax
call sym._ldap_free_urllist
mov eax, dword [ebp - 0x24]
xor esi, esi
mov dword [edi + 0x28], eax
jmp 0x6f8ff20d
mov eax, dword [edi + 0x50]
test eax, eax
je 0x6f8ff7bf
mov dword [esp], eax
call sym._ldap_controls_free
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6f8ff8b0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6f8ff8b0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._ldap_controls_dup
mov dword [edi + 0x50], eax
test eax, eax
sete al
movzx eax, al
neg eax
mov esi, eax
jmp 0x6f8ff20d
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x6f8ff80f
mov dword [esp], eax
call sym._ldap_controls_free
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6f8ff8c0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x6f8ff8c0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._ldap_controls_dup
mov dword [edi + 0x4c], eax
jmp 0x6f8ff7e5
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x70]
test ebx, ebx
je 0x6f8ff9e8
or eax, 2
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
mov esi, dword [ebp + 0x10]
mov eax, dword [edi + 0x70]
test esi, esi
je 0x6f8ff980
or eax, 1
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
cmp ebx, 0x6300
jne case.0x6f8ff2df.20483
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 0x38], eax
jmp 0x6f8ff20d
mov eax, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [eax]
mov dword [edi + 0x3c], eax
jmp 0x6f8ff20d
mov dword [edi + 0x50], 0
xor esi, esi
jmp 0x6f8ff20d
mov dword [edi + 0x4c], 0
xor esi, esi
jmp 0x6f8ff20d
mov eax, dword [ebp + 8]
test eax, eax
je 0x6f8ff9f5
mov eax, dword [0x6f9165e8]
mov esi, 0xfffffff6
mov dword [esp], eax
call sym._ldap_url_duplist
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x6f8ff78f
jmp 0x6f8ff20d
mov eax, dword [ebp + 8]
xor esi, esi
mov eax, dword [eax]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x6f8ff20d
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._ber_memfree_x
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa8], 0
mov dword [edx + 0xac], 0
jmp 0x6f8ff20d
mov eax, dword [ebp + 8]
test eax, eax
je 0x6f8ff529
mov dword [esp + 4], 0
mov eax, dword [0x6f9165f0]
jmp 0x6f8ff516
mov esi, 0xffffffff
jmp 0x6f8ff218
and eax, 0xfffffffe
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
and eax, 0xffffffef
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
and eax, 0xffffffbf
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x6f8ff8db
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f91cb10
mov dword [esp], eax
call sym._ldap_url_parselist_ext
mov esi, eax
jmp 0x6f8ff787
and eax, 0xfffffffd
xor esi, esi
mov dword [edi + 0x70], eax
jmp 0x6f8ff20d
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f91cb10
mov dword [esp], eax
call sym._ldap_url_parselist_ext
mov esi, eax
jmp 0x6f8ff4b6
mov eax, dword [ebp - 0x2c]
or esi, 0xffffffff
mov dword [esp], eax
call sym._ldap_pvt_thread_mutex_unlock
jmp 0x6f8ff218