Function at 0x405e81
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.WLDAP32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x405fda
push str.ldap_init
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415674], eax
push str.ldap_set_option
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415678], eax
push str.ldap_bind_s
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41567c], eax
push str.ldap_unbind_s
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415680], eax
push str.ldap_search
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415684], eax
push str.ldap_result
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415688], eax
push str.ldap_search_s
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41568c], eax
push str.ldap_msgfree
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415690], eax
push str.ldap_first_attribute
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415694], eax
push str.ldap_next_attribute
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415698], eax
push str.ldap_get_dn
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41569c], eax
push str.ldap_get_values
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156a0], eax
push str.ldap_value_free
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156a4], eax
push str.ldap_get_values_len
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156a8], eax
push str.ldap_value_free_len
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156ac], eax
push str.ldap_modify_s
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156b0], eax
push str.ldap_delete_s
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156b4], eax
push str.ldap_memfree
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156b8], eax
push str.ber_free
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156bc], eax
push str.NETAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40605e
push 0x4113c6
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4156c0], eax
test eax, eax
je 0x40605e
push 0x4156c4
push 0x40008000
push 0
push 0
push 0
push 0
call eax
test eax, eax
jne 0x406057
mov eax, dword [0x4156c4]
mov edx, dword [eax]
test edx, edx
je 0x406037
mov ecx, dword [eax]
cmp byte [ecx], 0x5c
jne 0x406037
mov ecx, dword [eax]
cmp byte [ecx + 1], 0x5c
jne 0x406037
add edx, 2
mov dword [eax], edx
mov edx, dword [eax + 4]
test edx, edx
je 0x40605e
mov ecx, dword [eax + 4]
cmp byte [ecx], 0x5c
jne 0x40605e
mov ecx, dword [eax + 4]
cmp byte [ecx + 1], 0x5c
jne 0x40605e
add edx, 2
mov dword [eax + 4], edx
jmp 0x40605e
and dword [0x4156c4], 0
cmp dword [0x415674], 0
je 0x406122
cmp dword [0x415678], 0
je 0x406122
cmp dword [0x41567c], 0
je 0x406122
cmp dword [0x415680], 0
je 0x406122
cmp dword [0x415684], 0
je 0x406122
cmp dword [0x415688], 0
je 0x406122
cmp dword [0x41568c], 0
je 0x406122
cmp dword [0x415690], 0
je 0x406122
cmp dword [0x415694], 0
je 0x406122
cmp dword [0x415698], 0
je 0x406122
cmp dword [0x41569c], 0
je 0x406122
cmp dword [0x4156a0], 0
je 0x406122
cmp dword [0x4156a4], 0
je 0x406122
cmp dword [0x4156a8], 0
je 0x406122
cmp dword [0x4156ac], 0
je 0x406122
cmp dword [0x4156b0], 0
je 0x406122
cmp dword [0x4156b4], 0
je 0x406122
cmp dword [0x4156b8], 0
je 0x406122
cmp dword [0x4156bc], 0
je 0x406122
xor eax, eax
inc eax
jmp 0x406124
xor eax, eax
pop esi
ret