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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
xor edi, edi
push eax
push ecx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], edi
call sym.NSLDAP32V50.dll_ldap_x_hostlist_first
mov ebx, dword [esp + 0x54]
xor esi, esi
cmp eax, esi
jne 0x1000bca8
mov eax, dword [esp + 0x5c]
cmp eax, esi
je 0x1000bca8
push eax
mov dword [esp + 0x14], esi
xor edi, edi
xor ebp, ebp
call int.100194e0
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x1000bb0d
mov eax, dword [ebx + 0xac]
test eax, eax
jne 0x1000bab1
mov edx, dword [esp + 0x5c]
push edx
call fcn.10019440
test eax, eax
je 0x1000bd0a
mov esi, dword [eax + 0xc]
mov ebp, dword [esp + 0x10]
jmp 0x1000bb00
mov eax, dword [ebx + 0xa8]
push eax
call sym.NSLDAP32V50.dll_ldap_x_malloc
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x1000bcdf
mov ecx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa8]
lea edx, [esp + 0x58]
push ecx
push edx
mov edx, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
push ebp
push ecx
push edx
call dword [ebx + 0xac]
add esp, 0x18
test eax, eax
je 0x1000bd0e
mov esi, dword [eax + 0x10]
test esi, esi
je 0x1000bd0e
mov ebp, 1
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x54], esi
test ebp, ebp
je 0x1000bb2a
mov eax, dword [esp + 0x54]
cmp dword [eax], 0
je 0x1000bc7e
mov ecx, dword [esp + 0x60]
push 0
push 1
push 2
push ecx
push ebx
call dword [esp + 0x78]
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x1000bd68
mov eax, dword [ebx + 0x50]
mov esi, 0x4000000
test esi, eax
je 0x1000bb72
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 1
push edx
push 0x8004667e
push edi
call dword [esp + 0x74]
add esp, 0xc
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], eax
mov word [esp + 0x30], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.100194b0
test ebp, ebp
mov word [esp + 0x2e], ax
je 0x1000bba6
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
jmp 0x1000bbaa
lea eax, [esp + 0x28]
push 4
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x78]
add esp, 0xc
test eax, eax
je 0x1000bbd9
mov ecx, dword [ebx + 0x1ac]
lea edx, [esp + 0x2c]
push ecx
push 0x10
push edx
push edi
call eax
add esp, 0x10
jmp 0x1000bbe8
lea eax, [esp + 0x2c]
push 0x10
push eax
push edi
call dword [esp + 0x7c]
add esp, 0xc
test eax, eax
mov dword [esp + 0x58], eax
jge 0x1000bc64
test dword [ebx + 0x50], esi
je 0x1000bc4e
cmp eax, 0xffffffff
jne 0x1000bc28
call fcn.10019320
cmp eax, 0x2733
jne 0x1000bc28
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x1000bc1c
push 0x2733
call eax
add esp, 4
jmp 0x1000bc28
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x2733
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x1000bc36
call eax
jmp 0x1000bc3e
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
cmp eax, 0x2733
mov dword [esp + 0x58], eax
je 0x1000bc76
cmp eax, 0xb
je 0x1000bc76
push edi
call dword [esp + 0x78]
add esp, 4
test ebp, ebp
je 0x1000bc7e
add dword [esp + 0x54], 4
jmp 0x1000bb19
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0
jmp 0x1000bc7e
mov dword [esp + 0x18], 0xfffffffe
mov ecx, dword [esp + 0x5c]
push ecx
call sym.NSLDAP32V50.dll_ldap_memfree
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call sym.NSLDAP32V50.dll_ldap_x_hostlist_next
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1000ba5b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000bcb9
push eax
call sym.NSLDAP32V50.dll_ldap_x_free
add esp, 4
mov edx, dword [esp + 0x5c]
push edx
call sym.NSLDAP32V50.dll_ldap_memfree
mov eax, dword [esp + 0x14]
push eax
call sym.NSLDAP32V50.dll_ldap_x_hostlist_statusfree
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1000bcff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
push 0
push 0x5a
push ebx
call sym.NSLDAP32V50.dll_ldap_set_lderrno
mov edx, dword [esp + 0x5c]
push edx
call sym.NSLDAP32V50.dll_ldap_memfree
mov eax, dword [esp + 0x14]
push eax
call sym.NSLDAP32V50.dll_ldap_x_hostlist_statusfree
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x40
ret
mov ebp, dword [esp + 0x10]
push 0
push 0
push 0x5b
push ebx
call sym.NSLDAP32V50.dll_ldap_set_lderrno
mov ebx, dword [ebx + 0xc8]
test ebx, ebx
je 0x1000bd30
push 0x2751
call ebx
add esp, 4
jmp 0x1000bd3c
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x2751
test ebp, ebp
je 0x1000bd49
push ebp
call sym.NSLDAP32V50.dll_ldap_x_free
add esp, 4
mov ecx, dword [esp + 0x5c]
push ecx
call sym.NSLDAP32V50.dll_ldap_memfree
mov edx, dword [esp + 0x14]
push edx
call sym.NSLDAP32V50.dll_ldap_x_hostlist_statusfree
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000bd79
push eax
call sym.NSLDAP32V50.dll_ldap_x_free
add esp, 4
mov eax, dword [esp + 0x5c]
push eax
call sym.NSLDAP32V50.dll_ldap_memfree
mov ecx, dword [esp + 0x14]
push ecx
call sym.NSLDAP32V50.dll_ldap_x_hostlist_statusfree
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x40
ret