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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x48
call fcn.140189b00
sub rsp, rax
xor r12d, r12d
lea edi, [rax + 8]
mov eax, dword [rcx + 0x48]
or r14d, 0xffffffff
cmp eax, 0x2112
mov rbx, rcx
mov dword [rsp + 0x90], r12d
mov r15, r12
mov qword [rsp + 0xa8], r12
jne 0x1401735b1
cmp dword [rcx + 0x1a8], r12d
je 0x14017406f
cmp eax, 0x2110
jne 0x1401735bf
mov dword [rcx + 0x48], 0x2111
mov rax, qword [rcx + 8]
mov dword [rcx + 0x1a8], 1
mov edx, 0x2111
lea rcx, [rsp + 0x98]
lea r8d, [rdx + 1]
mov r9d, 1
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov dword [rsp + 0x20], 0x4000
call qword [rax + 0x60]
cmp dword [rsp + 0x98], r12d
movsxd rsi, eax
jne 0x14017360b
mov eax, esi
jmp 0x14017427c
cmp esi, 0x23
mov rcx, qword [rbx + 0x58]
mov dword [rbx + 0x1a8], r12d
mov qword [rsp + 0xa0], rcx
mov rbp, rcx
jge 0x140173640
mov dword [rsp + 0x20], 0x3b2
lea r9, [0x140239418]
mov r8d, 0xa0
jmp 0x14017423a
movzx eax, byte [rcx + 1]
movzx edx, byte [rcx]
add rcx, 2
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rbx + 8]
shl edx, 8
or edx, eax
mov dword [rbx + 0x1ac], edx
mov rax, qword [rcx + 0xc8]
test byte [rax + 0x70], 8
je 0x1401736cd
cmp edx, dword [rbx]
jle 0x14017367b
cmp dword [rcx], 0x1ffff
jne 0x1401736d9
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.14009fdd0
mov r8, qword [rsp + 0xa0]
bt eax, 0xd
jae 0x14017373f
movzx eax, byte [r8 + 0x20]
lea rdx, [rax + r8 + 0x21]
lea rax, [rbp + rsi]
cmp rdx, rax
jb 0x140173730
mov dword [rsp + 0x20], 0x3d9
lea r9, [0x140239438]
mov r8d, 0xa0
jmp 0x14017423a
cmp edx, dword [rbx]
mov ecx, r12d
setl cl
test ecx, ecx
je 0x14017367b
mov edx, 0x8a
lea r9, [0x140239428]
mov r8d, 0x10b
lea ecx, [rdx - 0x76]
mov dword [rsp + 0x20], 0x3c0
call fcn.1400a5900
mov r11d, dword [rbx + 0x1ac]
mov eax, r11d
and eax, 0xffffff00
cmp eax, 0x300
jne 0x140173726
cmp qword [rbx + 0xe8], r12
jne 0x140173726
cmp qword [rbx + 0xf0], r12
jne 0x140173726
mov dword [rbx], r11d
mov edi, 0x46
jmp 0x14017424c
cmp byte [rdx], r12b
jne 0x14017373f
mov eax, 1
jmp 0x14017427c
mov rax, qword [r8]
mov rcx, qword [rbx + 0x80]
lea r13, [rbp + rsi]
mov qword [rcx + 0xc0], rax
mov rax, qword [r8 + 8]
mov qword [rcx + 0xc8], rax
mov rax, qword [r8 + 0x10]
mov qword [rcx + 0xd0], rax
mov rax, qword [r8 + 0x18]
mov qword [rcx + 0xd8], rax
mov rdx, qword [rsp + 0xa0]
add rdx, 0x20
mov qword [rsp + 0xa0], rdx
add rdx, 1
movzx r8d, byte [rdx - 1]
mov qword [rsp + 0xa0], rdx
lea rax, [r8 + rdx]
mov r12, r8
cmp rax, r13
jbe 0x1401737c1
mov dword [rsp + 0x20], 0x3eb
lea r9, [0x140239448]
mov r8d, 0xa0
jmp 0x14017423a
cmp r8d, 0x20
ja 0x140174225
cmp dword [rbx + 0x3c], r15d
mov dword [rbx + 0xa8], r15d
je 0x1401737e2
bt dword [rbx + 0x19c], 0x10
jb 0x140173814
mov r9, r13
mov rcx, rbx
call fcn.1400ad700
cmp eax, 1
jne 0x14017380b
mov rax, qword [rbx + 0x130]
mov ecx, dword [rax]
cmp dword [rbx], ecx
jne 0x140173814
mov dword [rbx + 0xa8], 1
jmp 0x140173829
cmp eax, 0xffffffff
je 0x140174260
mov edx, 1
mov rcx, rbx
call fcn.1400acdc0
test eax, eax
je 0x140174260
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rbx + 8]
add rdx, r12
mov qword [rsp + 0xa0], rdx
mov rcx, qword [rax + 0xc8]
test byte [rcx + 0x70], 8
je 0x140173a5d
lea rax, [rdx + 1]
cmp rax, r13
jbe 0x140173874
mov dword [rsp + 0x20], 0x423
lea r9, [0x140239468]
mov r8d, 0xa0
jmp 0x14017423a
movzx esi, byte [rdx]
mov qword [rsp + 0xa0], rax
add rax, rsi
cmp rax, r13
jbe 0x1401738a1
mov dword [rsp + 0x20], 0x42a
lea r9, [0x140239478]
mov r8d, 0xa0
jmp 0x14017423a
cmp esi, 0x100
jbe 0x1401738c3
mov dword [rsp + 0x20], 0x436
lea r9, [0x140239488]
mov r8d, 0x134
jmp 0x14017423a
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.14009fdd0
bt eax, 0xd
jae 0x14017399b
test esi, esi
je 0x14017399b
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rsp + 0xa0]
mov r8, rsi
add rcx, 0x104
call fcn.140042d30
mov r11, qword [rbx + 0x170]
mov rax, qword [r11 + 0xc0]
test rax, rax
je 0x14017394f
mov rdx, qword [rbx + 0x88]
mov r8d, esi
mov rcx, rbx
add rdx, 0x104
call rax
test eax, eax
jne 0x140173990
lea edi, [rax + 0x28]
mov dword [rsp + 0x20], 0x443
lea r9, [0x140239498]
mov r8d, 0x134
jmp 0x14017423f
mov rcx, qword [rbx + 0x88]
mov r8d, dword [rcx + 0x204]
lea rdx, [rcx + 4]
add rcx, 0x104
call fcn.140041240
test eax, eax
je 0x140173990
mov edi, Ordinal_41
mov dword [rsp + 0x20], 0x44c
lea r9, [0x1402394a8]
mov r8d, 0x134
jmp 0x14017423f
mov dword [rsp + 0x90], 1
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rbx + 8]
add rdx, rsi
mov qword [rsp + 0xa0], rdx
cmp dword [rax], 0x1ffff
jne 0x140173a5d
mov ecx, dword [rbx + 0x1ac]
cmp ecx, 0xfefd
jg 0x1401739e3
bt dword [rbx + 0x19c], 0x1b
jb 0x1401739e3
mov dword [rbx], 0xfefd
call fcn.1401796e0
jmp 0x140173a46
mov rax, qword [rbx + 0x100]
test dword [rax + 0x54], 0x30000
je 0x140173a29
mov edx, 0x8a
lea r9, [0x1402394b8]
mov r8d, 0x183
lea ecx, [rdx - 0x76]
mov dword [rsp + 0x20], 0x45b
call fcn.1400a5900
mov r11d, dword [rbx + 0x1ac]
mov edi, 0x46
mov dword [rbx], r11d
jmp 0x14017424c
cmp ecx, 0xfeff
jg 0x140173a80
bt dword [rbx + 0x19c], 0x1a
jb 0x140173a80
mov dword [rbx], 0xfeff
call fcn.1401796d0
mov rcx, qword [rbx + 0x130]
mov qword [rbx + 8], rax
mov eax, dword [rbx]
mov dword [rcx], eax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rdx + 2]
cmp rcx, r13
jbe 0x140173ab6
mov dword [rsp + 0x20], 0x470
lea r9, [0x1402394d8]
mov r8d, 0xa0
jmp 0x14017423a
mov edx, 0x8a
lea r9, [0x1402394c8]
mov r8d, 0x10b
lea ecx, [rdx - 0x76]
mov dword [rsp + 0x20], 0x465
call fcn.1400a5900
mov r11d, dword [rbx + 0x1ac]
mov edi, 0x46
mov dword [rbx], r11d
jmp 0x14017424c
movzx r8d, byte [rdx]
movzx eax, byte [rdx + 1]
mov qword [rsp + 0xa0], rcx
shl r8d, 8
or r8d, eax
jne 0x140173aee
mov edi, Ordinal_50
mov dword [rsp + 0x20], 0x477
lea r9, [0x1402394e8]
mov r8d, 0xb7
jmp 0x14017423f
movsxd rbp, r8d
lea rax, [rcx + rbp + 1]
cmp rax, r13
jbe 0x140173b0f
mov dword [rsp + 0x20], 0x47f
lea r9, [0x1402394f8]
jmp 0x140174234
mov rdx, rcx
lea r9, [rsp + 0xa8]
mov rcx, rbx
call fcn.1400a0520
test rax, rax
je 0x140174260
mov rsi, qword [rsp + 0xa0]
xor r12d, r12d
add rsi, rbp
cmp dword [rbx + 0xa8], r15d
mov qword [rsp + 0xa0], rsi
je 0x140173bbf
mov rax, qword [rbx + 0x130]
mov esi, r12d
mov rcx, qword [rax + 0xd0]
mov ebp, dword [rcx + 0x10]
mov rcx, qword [rsp + 0xa8]
call fcn.1400af830
test eax, eax
jle 0x140173b98
nop
mov rcx, qword [rsp + 0xa8]
mov edx, esi
call fcn.1400af840
cmp dword [rax + 0x10], ebp
je 0x140173bb7
mov rcx, qword [rsp + 0xa8]
add esi, 1
call fcn.1400af830
cmp esi, eax
jl 0x140173b70
mov edi, Ordinal_50
mov dword [rsp + 0x20], 0x4b7
lea r9, [0x140239508]
mov r8d, 0xd7
jmp 0x14017423f
mov rsi, qword [rsp + 0xa0]
movzx r14d, byte [rsi]
add rsi, 1
lea rdx, [rsi + r14]
mov qword [rsp + 0xa0], rsi
cmp rdx, r13
jbe 0x140173bec
mov dword [rsp + 0x20], 0x4c1
lea r9, [0x140239518]
jmp 0x140174234
test r14d, r14d
mov ecx, r12d
mov rax, r12
jle 0x140173c09
cmp byte [rax + rsi], r15b
je 0x140173c09
add rax, 1
add ecx, 1
cmp rax, r14
jl 0x140173bf7
cmp ecx, r14d
mov qword [rsp + 0xa0], rdx
jl 0x140173c30
mov dword [rsp + 0x20], 0x4d0
lea r9, [0x140239528]
mov r8d, 0xbb
jmp 0x14017423a
cmp dword [rbx], 0x300
jl 0x140173c74
lea rdx, [rsp + 0xa0]
mov r8, r13
mov rcx, rbx
call fcn.1400d21d0
test eax, eax
jne 0x140173c74
mov edx, 0x8a
lea r9, [0x140239538]
lea ecx, [rax + 0x14]
lea r8d, [rdx + 0x59]
mov dword [rsp + 0x20], 0x4d7
call fcn.1400a5900
jmp 0x14017425c
mov r8, qword [rbx + 0x80]
mov edx, 1
mov rcx, rbx
lea r9d, [rdx + 0x1f]
add r8, 0xa0
call fcn.1400b8290
test eax, eax
jle 0x14017424c
cmp dword [rbx + 0xa8], r15d
jne 0x140173e01
cmp dword [rbx], 0x301
jl 0x140173e01
cmp qword [rbx + 0x248], r15
je 0x140173e01
mov rax, qword [rbx + 0x130]
mov qword [rsp + 0x30], r12
mov rcx, rbx
mov dword [rax + 0x10], gethostbyname
mov rax, qword [rbx + 0x250]
mov rdx, qword [rbx + 0x130]
mov r9, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r8, [rdx + 0x10]
add rdx, 0x14
mov qword [rsp + 0x20], rax
call qword [rbx + 0x248]
test eax, eax
je 0x140173e01
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rbx + 0x130]
mov dword [rbx + 0xa8], 1
mov qword [rcx + 0xe0], rax
mov rax, qword [rbx + 0x130]
mov dword [rax + 0xb8], r12d
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0xa8], r12
test rcx, rcx
jne 0x140173d9d
mov rcx, rbx
call fcn.1400a0330
mov rdx, qword [rbx + 0x130]
mov rcx, rbx
mov rdx, qword [rdx + 0xe0]
mov r8, rax
call fcn.1400f9e20
test rax, rax
mov rcx, rax
mov qword [rsp + 0x30], rax
jne 0x140173d9d
lea edi, [rax + 0x28]
mov dword [rsp + 0x20], 0x501
lea r9, [0x140239548]
mov r8d, 0xc1
jmp 0x14017423f
mov rax, qword [rbx + 0x130]
mov qword [rax + 0xd0], rcx
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x140173dbc
call fcn.1400af7f0
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x140173dcd
call fcn.1400af7f0
mov rcx, qword [rbx + 0x130]
mov rcx, qword [rcx + 0xe0]
call fcn.1400af8e0
mov rcx, qword [rbx + 0x130]
mov qword [rbx + 0xb8], rax
mov rcx, qword [rcx + 0xe0]
call fcn.1400af8e0
mov qword [rbx + 0xc0], rax
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x408], r12
mov rax, qword [rbx + 0x130]
mov r13d, dword [rax + 0xc8]
test r13d, r13d
je 0x140173f21
bt dword [rbx + 0x19c], 0x11
jae 0x140173e4a
mov dword [rsp + 0x20], 0x521
lea r9, [0x140239558]
mov r8d, 0x154
jmp 0x14017423f
mov rcx, qword [rbx + 0x170]
mov rcx, qword [rcx + 0xf8]
call fcn.1400af830
test eax, eax
jle 0x140173eab
mov rcx, qword [rbx + 0x170]
mov edx, r12d
mov rcx, qword [rcx + 0xf8]
call fcn.1400af840
mov r15, rax
cmp r13d, dword [rax]
je 0x140173e9d
mov rcx, qword [rbx + 0x170]
add r12d, 1
mov rcx, qword [rcx + 0xf8]
call fcn.1400af830
cmp r12d, eax
jl 0x140173e61
jmp 0x140173eab
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x408], r15
mov rax, qword [rbx + 0x80]
cmp qword [rax + 0x408], 0
jne 0x140173ed6
mov dword [rsp + 0x20], 0x52e
lea r9, [0x140239568]
mov r8d, 0x155
jmp 0x14017423f
xor r12d, r12d
test r14d, r14d
mov edx, r12d
mov rcx, r12
jle 0x140173ef9
movzx eax, byte [rcx + rsi]
cmp eax, r13d
je 0x140173ef9
add rcx, 1
add edx, 1
cmp rcx, r14
jl 0x140173ee4
cmp edx, r14d
jl 0x140173fa4
mov edi, Ordinal_50
mov dword [rsp + 0x20], 0x539
lea r9, [0x140239578]
mov r8d, 0x156
jmp 0x14017423f
cmp dword [rbx + 0xa8], r15d
jne 0x140173fa1
bt dword [rbx + 0x19c], 0x11
jb 0x140173fa4
mov rax, qword [rbx + 0x170]
mov rcx, qword [rax + 0xf8]
test rcx, rcx
je 0x140173fa4
call fcn.1400af830
test eax, eax
mov r13d, eax
jle 0x140173f9e
mov rcx, qword [rbx + 0x170]
mov edx, r12d
mov rcx, qword [rcx + 0xf8]
call fcn.1400af840
xor ecx, ecx
test r14d, r14d
mov edx, dword [rax]
mov r15, rax
jle 0x140173f95
nop
nop
nop
movzx eax, byte [rcx + rsi]
cmp edx, eax
je 0x14017401c
add rcx, 1
cmp rcx, r14
jl 0x140173f80
add r12d, 1
cmp r12d, r13d
jl 0x140173f53
xor r12d, r12d
mov r15, r12
cmp dword [rbx + 0xa8], 0
jne 0x14017411a
test r15, r15
mov ecx, r12d
je 0x140173fbc
mov ecx, dword [r15]
mov rax, qword [rbx + 0x130]
mov dword [rax + 0xc8], ecx
mov rax, qword [rbx + 0x130]
mov rcx, qword [rax + 0xe0]
test rcx, rcx
je 0x140173fe1
call fcn.1400af7f0
mov rcx, qword [rbx + 0x130]
mov rax, qword [rsp + 0xa8]
mov qword [rcx + 0xe0], rax
cmp qword [rsp + 0xa8], 0
jne 0x140174032
mov dword [rsp + 0x20], 0x56e
lea r9, [0x140239588]
mov r8d, 0x44
jmp 0x14017423f
mov rax, qword [rbx + 0x80]
xor r12d, r12d
mov qword [rax + 0x408], r15
jmp 0x140173fa4
mov rcx, rbx
mov qword [rsp + 0xa8], r12
call fcn.1400d2330
test eax, eax
jne 0x14017406b
mov dword [rsp + 0x20], 0x573
lea r9, [0x140239598]
mov edx, 0x8a
lea ecx, [rdx - 0x76]
lea r8d, [rdx + 0x58]
call fcn.1400a5900
jmp 0x14017425c
or r14d, 0xffffffff
mov rdx, qword [rbx + 0x100]
mov rax, qword [rdx + 0x268]
test rax, rax
je 0x1401740c1
mov rdx, qword [rdx + 0x270]
mov rcx, rbx
call rax
test eax, eax
jne 0x1401740ac
mov dword [rsp + 0x20], 0x57c
lea r9, [0x1402395a8]
mov r8d, 0x179
jmp 0x14017423f
jns 0x1401740ba
mov dword [rbx + 0x28], 4
jmp 0x140174279
mov dword [rbx + 0x28], 1
mov rcx, rbx
call fcn.1400a0330
mov rdx, qword [rbx + 0x130]
mov rcx, rbx
mov rdx, qword [rdx + 0xe0]
mov r8, rax
call fcn.1400f9e20
test rax, rax
mov r11, rax
jne 0x140174107
lea edi, [rax + 0x28]
mov dword [rsp + 0x20], 0x589
lea r9, [0x1402395b8]
mov r8d, 0xc1
jmp 0x14017423f
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x3a0], r11
jmp 0x1401741c2
bt dword [rbx + 0x19c], 0x1e
mov rax, qword [rbx + 0x130]
mov rsi, r12
mov rbp, r12
jae 0x1401741ad
mov r13, qword [rax + 0xe0]
mov rcx, r13
call fcn.1400af830
test eax, eax
jle 0x1401741a6
nop
nop
mov edx, r12d
mov rcx, r13
call fcn.1400af840
mov rcx, r13
test byte [rax + 0x1c], 0x20
cmovne rsi, rax
test byte [rax + 0x28], 2
cmovne rbp, rax
add r12d, 1
call fcn.1400af830
cmp r12d, eax
jl 0x140174150
test rsi, rsi
je 0x140174191
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x3a0], rsi
jmp 0x1401741c2
test rbp, rbp
je 0x1401741a6
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x3a0], rbp
jmp 0x1401741c2
mov rax, qword [rbx + 0x130]
mov rcx, qword [rbx + 0x80]
mov rax, qword [rax + 0xd0]
mov qword [rcx + 0x3a0], rax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0xc8]
test byte [rcx + 0x70], 2
je 0x1401741dc
test byte [rbx + 0x140], 1
jne 0x1401741e8
mov rcx, rbx
call fcn.1400fd1d0
test eax, eax
je 0x14017424c
cmp dword [rbx], 0x300
jl 0x140174210
mov rcx, rbx
call fcn.1400cf450
test eax, eax
jg 0x140174210
mov dword [rsp + 0x20], 0x5bc
lea r9, [0x1402395c8]
jmp 0x140174055
xor r14d, r14d
cmp dword [rsp + 0x90], r14d
setne r14b
add r14d, 1
jmp 0x140174267
mov dword [rsp + 0x20], 0x3f1
lea r9, [0x140239458]
mov r8d, 0x9f
mov edi, reloc.WLDAP32.dll_Ordinal_50
mov edx, 0x8a
lea ecx, [rdx - 0x76]
call fcn.1400a5900
mov r8d, edi
mov edx, 2
mov rcx, rbx
call fcn.1400d2ea0
or r14d, 0xffffffff
mov dword [rbx + 0x48], 5
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140174279
call fcn.1400af7f0
mov eax, r14d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret