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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rdi, qword [rcx + 0x10]
mov rbx, rcx
mov rcx, rdi
mov r15d, r9d
mov r12, r8
mov r13, rdx
call fcn.140056400
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.140056400
mov r9d, dword [r12 + 0x14]
xor r8d, r8d
mov r14, qword [r12]
mov ebp, r8d
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc0]
movzx esi, byte [rax]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x3c], ecx
test r9d, r9d
je 0x140092fc9
mov dword [rsp + 0x20], r8d
mov edx, reloc.WS2_32.dll_ntohs
mov r8d, dword [r12 + 0x10]
mov rcx, rdi
call fcn.140056030
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 0xe]
call fcn.140056030
mov rdx, qword [rdi + 0x30]
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x140092fb6
mov eax, dword [r12 + 0x14]
not eax
movsxd rcx, eax
mov eax, dword [rdi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rdi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
xor r8d, r8d
mov rax, qword [rsp + 0xc0]
mov edx, dword [r12 + 0xc]
mov dword [rsp + 0x34], edx
cmp esi, 9
je 0x140093026
cmp esi, 0xd
je 0x140093026
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x140092fec
inc dword [rbx + 0x54]
mov ecx, dword [rbx + 0x54]
jmp 0x140092ff8
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ecx, dword [rbx + rax*4 + 0x24]
movzx eax, byte [rbx + 0x1f]
mov dword [rsp + 0x30], ecx
test al, al
jne 0x140093012
inc dword [rbx + 0x54]
mov r15d, 1
mov esi, dword [rbx + 0x54]
jmp 0x14009302e
dec al
mov r15d, 1
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0x24]
jmp 0x14009302e
mov esi, dword [rax + 8]
mov dword [rsp + 0x30], r8d
mov rcx, qword [rsp + 0xb0]
mov r12d, dword [r14]
sub r12d, dword [rcx + 8]
test byte [rcx + 0x1c], 1
mov dword [rsp + 0x48], r12d
je 0x140093159
mov r13d, dword [rbx + 0x50]
inc dword [rbx + 0x54]
mov r14d, dword [rbx + 0x54]
lea eax, [r13 + 1]
mov dword [rbx + 0x50], eax
cmp dword [rcx + 0x14], ebp
je 0x14009308b
mov rcx, rbx
call fcn.140094390
mov r8d, dword [rbx + 0x5c]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea ecx, [r8 + 1]
mov dword [rbx + 0x5c], ecx
lea edx, [r9 + 0x2c]
mov rcx, rax
call fcn.140056030
mov ebp, eax
lea ecx, [r12 + 1]
mov r9d, r14d
add ecx, r15d
mov r8d, r13d
mov dword [rsp + 0x20], ecx
mov edx, reloc.WLDAP32.dll_Ordinal_60
mov rcx, rdi
call fcn.140056030
test ebp, ebp
je 0x1400930e8
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
test ebp, ebp
jns 0x1400930c4
lea ebp, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], 0
je 0x1400930d6
lea rax, [0x140330198]
jmp 0x1400930e5
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r12d, dword [rsp + 0x34]
mov edx, WSAGetLastError
mov r9d, dword [rsp + 0x38]
mov r8d, r12d
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.140056030
lea ebp, [rax + 1]
mov rax, qword [rsp + 0xa8]
mov dword [rsp + 0x44], ebp
mov r8d, dword [rax + 0x10]
test r8d, r8d
jle 0x14009313c
mov r9d, dword [rsp + 0x40]
mov edx, 0x8a
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.140056030
mov r9d, r14d
mov dword [rsp + 0x20], r13d
mov r8d, r12d
mov edx, 0x65
mov rcx, rdi
call fcn.140056030
xor r12d, r12d
jmp 0x1400931a7
mov r9d, dword [rsp + 0x38]
mov rcx, rdi
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov edx, WSASetLastError
call fcn.140056030
mov r8d, dword [r13 + 0x10]
inc eax
mov dword [rsp + 0x44], eax
test r8d, r8d
jle 0x14009319c
mov r9d, dword [rsp + 0x40]
mov edx, 0x8a
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.140056030
mov r13d, dword [rsp + 0x34]
mov r12d, 1
xor r14d, r14d
test r15d, r15d
jle 0x140093219
mov ebx, dword [rsp + 0x48]
mov rax, qword [rdi + 0x30]
movsxd rbp, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebp
jg 0x1400931cc
mov rcx, rdi
call fcn.140055f80
test eax, eax
jne 0x140093209
mov rax, qword [rdi + 8]
lea rcx, [rbp*2]
inc dword [rdi + 0x3c]
add rcx, rbp
mov word [rax + rcx*8], gethostbyname
mov byte [rax + rcx*8 + 3], 0
lea rdx, [rax + rcx*8]
lea eax, [r14 + r12]
mov dword [rdx + 4], r13d
add eax, ebx
mov qword [rdx + 0x10], 0
mov dword [rdx + 8], eax
lea eax, [r14 + rsi]
mov dword [rdx + 0xc], eax
inc r14d
cmp r14d, r15d
jl 0x1400931b3
mov rbx, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x4c]
mov ecx, edx
sub ecx, 0xa
je 0x1400933d4
sub ecx, 1
je 0x14009333d
cmp ecx, 1
mov dword [rsp + 0x20], 0
mov rcx, rdi
je 0x1400932d5
mov rbp, qword [rsp + 0xc0]
cmp edx, 9
jne 0x1400932c0
mov r14d, dword [rsp + 0xb8]
mov edx, reloc.WLDAP32.dll_Ordinal_33
mov r8d, dword [rbp + 8]
mov r9d, r14d
call fcn.140056030
mov r9d, dword [rbp + 8]
lea r10d, [r14 - 1]
add r10d, r9d
lea rcx, [rbx + 0x94]
mov r8d, 0xa
mov edx, dword [rcx]
cmp edx, r9d
jl 0x1400932b1
cmp edx, r10d
jg 0x1400932b1
cmp byte [rcx - 6], 0
je 0x1400932ab
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400932a7
movzx eax, al
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], 0
add rcx, 0x14
sub r8, 1
jne 0x140093283
jmp 0x1400933e9
mov r8d, dword [rbp + 4]
xor r9d, r9d
lea edx, [r9 + 0x14]
call fcn.140056030
jmp 0x1400933e9
mov r14d, dword [rsp + 0x30]
mov edx, Ordinal_79
mov r8d, dword [rsp + 0x3c]
mov r9d, r14d
call fcn.140056030
mov r8d, dword [rsp + 0x3c]
mov r9d, esi
mov edx, 0x54
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.140056030
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x140093324
lea rax, [0x140330198]
mov byte [rax + 3], 8
jmp 0x1400933e9
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov byte [rax + rcx*8 + 3], 8
lea rax, [rax + rcx*8]
jmp 0x1400933e9
mov r14d, dword [rsp + 0x30]
mov r9d, 1
mov r8d, esi
mov dword [rsp + 0x20], r14d
mov rcx, rdi
lea edx, [r9 + 0x30]
call fcn.140056030
mov r8, qword [rsp + 0xc0]
mov r9d, 1
inc r8
mov edx, eax
mov rcx, rdi
call fcn.140056aa0
lea rcx, [rbx + 0x94]
mov r8d, 0xa
mov edx, dword [rcx]
cmp edx, esi
jl 0x1400933ae
jg 0x1400933ae
cmp byte [rcx - 6], 0
je 0x1400933a8
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400933a4
movzx eax, al
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], 0
add rcx, 0x14
sub r8, 1
jne 0x140093384
mov dword [rsp + 0x20], r8d
mov r9d, r14d
mov r8d, dword [rsp + 0x3c]
mov edx, reloc.WS2_32.dll_WSAGetLastError
mov rcx, rdi
call fcn.140056030
jmp 0x1400933e9
mov r8d, dword [rsp + 0x3c]
mov r9d, 1
mov edx, esi
mov rcx, rbx
call fcn.14006f570
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x140093464
test esi, esi
je 0x140093430
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x140093430
xor ecx, ecx
lea rax, [rbx + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], esi
je 0x14009342c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140093410
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], esi
inc byte [rbx + 0x1f]
jmp 0x140093430
mov byte [rax + 6], 1
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x140093464
xor ecx, ecx
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], r8d
je 0x140093460
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140093442
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r8d
inc byte [rbx + 0x1f]
jmp 0x140093464
mov byte [rax + 6], 1
mov rdx, qword [rdi + 0x30]
or ebx, 0xffffffff
mov r10, qword [rdx + 0x80]
test r10, r10
je 0x140093487
mov eax, ebx
sub eax, dword [rsp + 0x40]
movsxd rcx, eax
mov eax, dword [rdi + 0x3c]
mov dword [r10 + rcx*4], eax
mov eax, dword [rdi + 0x3c]
mov rcx, rdi
mov rsi, qword [rsp + 0xb0]
dec eax
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x34]
mov dword [rdx + 0x64], eax
mov edx, 4
test byte [rsi + 0x1c], 1
mov dword [rsp + 0x20], 0
jne 0x1400934bc
mov edx, 8
call fcn.140056030
mov r8d, dword [rsi + 0x10]
test r8d, r8d
je 0x1400934e1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r9 + 0x10]
call fcn.140056030
mov rdx, qword [rdi + 0x30]
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x1400934ff
sub ebx, dword [rsp + 0x38]
mov eax, dword [rdi + 0x3c]
movsxd rcx, ebx
mov dword [r8 + rcx*4], eax
mov eax, dword [rdi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret