Function at 0x140178170
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, Ordinal_60
call fcn.1401ef830
sub rsp, rax
xor esi, esi
mov dword [rsp + 0x80], 0
lea edi, [rax + 0x18]
mov qword [rsp + 0x90], rsi
mov eax, dword [rcx + 0x48]
or ebp, 0xffffffff
xor r15d, r15d
mov qword [rsp + 0x98], rsi
mov rbx, rcx
cmp eax, 0x2112
jne 0x1401781c9
cmp dword [rcx + 0x1a8], esi
je 0x140178c0c
cmp eax, 0x2110
jne 0x1401781d7
mov dword [rcx + 0x48], 0x2111
mov rax, qword [rcx + 8]
mov edx, 0x2111
mov dword [rcx + 0x1a8], 1
mov r9d, 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov rcx, rbx
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], 0x4000
call qword [rax + 0x60]
movsxd r14, eax
cmp dword [rsp + 0x88], esi
jne 0x140178223
mov eax, r14d
jmp 0x1401787ea
mov dword [rbx + 0x1a8], esi
mov rsi, qword [rbx + 0x58]
mov r12, rsi
cmp r14d, 0x23
jge 0x140178250
mov dword [rsp + 0x20], 0x3b2
lea r9, [0x140360480]
mov r8d, 0xa0
jmp 0x140178e28
movzx eax, byte [rsi + 1]
movzx ecx, byte [rsi]
add rsi, 2
mov rdx, qword [rbx + 8]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0x1ac], ecx
mov rax, qword [rdx + 0xc8]
test byte [rax + 0x70], 8
je 0x1401782c0
cmp ecx, dword [rbx]
jle 0x140178283
cmp dword [rdx], 0x1ffff
jne 0x1401782cb
test dword [rbx + 0x19c], 0x2000
je 0x140178330
movzx edx, byte [rsi + 0x20]
mov ecx, r12d
sub ecx, esi
add ecx, r14d
lea eax, [rdx + 0x21]
cmp eax, ecx
jb 0x14017831f
mov dword [rsp + 0x20], 0x3da
lea r9, [0x140360460]
mov r8d, 0xa0
jmp 0x140178e28
xor eax, eax
cmp ecx, dword [rbx]
setl al
test eax, eax
je 0x140178283
mov edx, 0x8a
mov dword [rsp + 0x20], 0x3c0
lea r9, [0x140360470]
mov r8d, 0x10b
lea ecx, [rdx - 0x76]
call fcn.1400a36f0
mov ecx, dword [rbx + 0x1ac]
mov eax, ecx
and eax, 0xffffff00
cmp eax, 0x300
jne 0x140178315
cmp qword [rbx + 0xe8], r15
jne 0x140178315
cmp qword [rbx + 0xf0], r15
jne 0x140178315
mov dword [rbx], ecx
mov edi, 0x46
jmp 0x140178e3a
cmp byte [rdx + rsi + 0x21], r15b
jne 0x140178330
mov eax, 1
jmp 0x1401787ea
mov rax, qword [rbx + 0x80]
mov r13, r14
movups xmm0, xmmword [rsi]
movups xmmword [rax + 0xc0], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rax + 0xd0], xmm1
movzx ebp, byte [rsi + 0x20]
mov rax, r14
add rsi, 0x21
sub rax, rsi
add rax, r12
cmp rax, rbp
jge 0x14017837f
mov dword [rsp + 0x20], 0x3ec
lea r9, [0x1403604d0]
mov r8d, 0xa0
jmp 0x140178e28
cmp ebp, 0x20
ja 0x140178e13
mov dword [rbx + 0xa8], r15d
cmp dword [rbx + 0x3c], r15d
je 0x1401783a1
test dword [rbx + 0x19c], 0x10000
jne 0x1401783da
lea r9, [r12 + r14]
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.1400a7000
cmp eax, 1
jne 0x1401783d1
mov rax, qword [rbx + 0x130]
mov ecx, dword [rax]
cmp dword [rbx], ecx
jne 0x1401783da
mov dword [rbx + 0xa8], 1
jmp 0x1401783ef
cmp eax, 0xffffffff
je 0x1401787c9
mov edx, 1
mov rcx, rbx
call fcn.1400a6d00
test eax, eax
je 0x1401787c9
mov rax, qword [rbx + 8]
add rsi, rbp
mov rcx, qword [rax + 0xc8]
test byte [rcx + 0x70], 8
je 0x1401785d4
mov rax, r13
sub rax, rsi
add rax, r12
cmp rax, 1
jge 0x140178430
mov dword [rsp + 0x20], 0x424
lea r9, [0x1403604b0]
mov r8d, 0xa0
jmp 0x140178e28
movzx ebp, byte [rsi]
mov eax, r12d
inc rsi
sub eax, esi
add eax, r14d
cmp eax, ebp
jae 0x14017845c
mov dword [rsp + 0x20], 0x42b
lea r9, [0x1403604a0]
mov r8d, 0xa0
jmp 0x140178e28
test dword [rbx + 0x19c], 0x2000
je 0x140178524
test ebp, ebp
je 0x140178524
mov rcx, qword [rbx + 0x88]
mov r8, rbp
add rcx, 0x104
mov rdx, rsi
call fcn.14020f990
mov rax, qword [rbx + 0x170]
mov r9, qword [rax + 0xc0]
test r9, r9
je 0x1401784d8
mov rdx, qword [rbx + 0x88]
mov r8d, ebp
add rdx, 0x104
mov rcx, rbx
call r9
test eax, eax
jne 0x140178519
mov dword [rsp + 0x20], 0x444
lea r9, [0x140360500]
lea edi, [rax + 0x28]
mov r8d, 0x134
jmp 0x140178e2d
mov rcx, qword [rbx + 0x88]
mov r8d, dword [rcx + 0x204]
lea rdx, [rcx + 4]
add rcx, 0x104
call fcn.140210770
test eax, eax
je 0x140178519
mov dword [rsp + 0x20], 0x44d
lea r9, [0x1403604f0]
mov edi, Ordinal_41
mov r8d, 0x134
jmp 0x140178e2d
mov dword [rsp + 0x80], 1
mov rax, qword [rbx + 8]
add rsi, rbp
cmp dword [rax], 0x1ffff
jne 0x1401785d4
mov ecx, dword [rbx + 0x1ac]
cmp ecx, 0xfefd
jg 0x140178560
test dword [rbx + 0x19c], 0x8000000
jne 0x140178560
mov dword [rbx], 0xfefd
lea rax, [0x1402ced50]
jmp 0x1401785c5
mov rax, qword [rbx + 0x100]
test dword [rax + 0x54], 0x30000
je 0x1401785a4
mov dword [rsp + 0x20], 0x45c
lea r9, [0x1403604e0]
mov r8d, 0x183
mov ecx, reloc.WS2_32.dll_sendto
lea edx, [rcx + 0x76]
call fcn.1400a36f0
mov eax, dword [rbx + 0x1ac]
mov edi, 0x46
mov dword [rbx], eax
jmp 0x140178e3a
cmp ecx, 0xfeff
jg 0x1401785fd
test dword [rbx + 0x19c], 0x4000000
jne 0x1401785fd
mov dword [rbx], 0xfeff
lea rax, [0x1402ceb70]
mov rcx, qword [rbx + 0x130]
mov qword [rbx + 8], rax
mov eax, dword [rbx]
mov dword [rcx], eax
mov rax, r13
sub rax, rsi
add rax, r12
cmp rax, 2
jge 0x140178617
mov dword [rsp + 0x20], 0x471
lea r9, [0x140360540]
mov r8d, 0xa0
jmp 0x140178e28
mov dword [rsp + 0x20], 0x466
lea r9, [0x140360550]
mov r8d, 0x10b
jmp 0x140178585
movzx ebp, byte [rsi]
movzx eax, byte [rsi + 1]
add rsi, 2
shl ebp, 8
or ebp, eax
jne 0x140178646
lea edi, [rbp + 0x2f]
mov dword [rsp + 0x20], 0x478
lea r9, [0x140360530]
mov r8d, 0xb7
jmp 0x140178e2d
mov rdx, r13
lea ecx, [rbp + 1]
sub rdx, rsi
add rdx, r12
cmp rdx, rcx
jge 0x14017866b
mov dword [rsp + 0x20], 0x480
lea r9, [0x140360520]
jmp 0x140178e22
lea r9, [rsp + 0x98]
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.14009e2b0
test rax, rax
je 0x140178e06
mov eax, ebp
mov rbp, qword [rsp + 0x98]
add rsi, rax
mov qword [rsp + 0x90], rbp
cmp dword [rbx + 0xa8], r15d
je 0x14017871c
mov rax, qword [rbx + 0x130]
xor r8d, r8d
mov rcx, qword [rax + 0xd0]
mov r10d, dword [rcx + 0x10]
mov rcx, rbp
call fcn.1400a1900
test eax, eax
jle 0x1401786fd
movsxd r9, eax
xor ecx, ecx
nop
test rbp, rbp
je 0x1401786ea
test rcx, rcx
js 0x1401786ea
cmp r8d, dword [rbp]
jge 0x1401786ea
mov rax, qword [rbp + 8]
mov rdx, qword [rax + rcx*8]
jmp 0x1401786ec
xor edx, edx
cmp dword [rdx + 0x10], r10d
je 0x14017871c
inc r8d
inc rcx
cmp rcx, r9
jl 0x1401786d0
mov edi, Ordinal_50
mov dword [rsp + 0x20], 0x4b8
lea r9, [0x140360590]
mov r8d, 0xd7
jmp 0x140178e2d
movzx ebp, byte [rsi]
mov rax, r13
inc rsi
sub rax, rsi
add rax, r12
cmp rax, rbp
jge 0x140178744
mov dword [rsp + 0x20], 0x4c2
lea r9, [0x140360580]
jmp 0x140178e22
xor ecx, ecx
xor eax, eax
mov r14, rsi
test rbp, rbp
je 0x140178760
cmp byte [rax + rsi], r15b
je 0x140178760
inc ecx
inc rax
cmp rax, rbp
jl 0x140178750
add rsi, rbp
mov qword [rsp + 0x98], rsi
cmp ecx, ebp
jl 0x140178789
mov dword [rsp + 0x20], 0x4d1
lea r9, [0x140360570]
mov r8d, 0xbb
jmp 0x140178e28
cmp dword [rbx], 0x300
jl 0x1401787fb
lea r8, [r12 + r13]
mov rcx, rbx
lea rdx, [rsp + 0x98]
call fcn.1400d0b40
test eax, eax
jne 0x1401787fb
mov edx, 0x8a
mov dword [rsp + 0x20], 0x4d8
lea r9, [0x140360560]
lea ecx, [rax + 0x14]
lea r8d, [rdx + 0x59]
call fcn.1400a36f0
mov r13, qword [rsp + 0x90]
mov dword [rbx + 0x48], 5
or ebx, 0xffffffff
test r13, r13
je 0x1401787e8
mov rcx, r13
call fcn.1400a1860
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8, qword [rbx + 0x80]
mov edx, 1
add r8, 0xa0
mov rcx, rbx
lea r9d, [rdx + 0x1f]
call fcn.1400a5bd0
test eax, eax
jle 0x140178e3a
cmp dword [rbx + 0xa8], r15d
jne 0x140178994
cmp dword [rbx], 0x301
jl 0x140178994
mov r13, qword [rsp + 0x90]
cmp qword [rbx + 0x248], r15
je 0x14017899c
mov rax, qword [rbx + 0x130]
mov r9, r13
mov qword [rsp + 0x98], r15
mov rcx, rbx
mov dword [rax + 0x10], Ordinal_50
mov rdx, qword [rbx + 0x130]
mov rax, qword [rbx + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r8, [rdx + 0x10]
add rdx, 0x14
call qword [rbx + 0x248]
test eax, eax
je 0x14017899c
mov rax, qword [rbx + 0x130]
mov dword [rbx + 0xa8], 1
mov qword [rax + 0xe0], r13
xor r13d, r13d
mov rax, qword [rbx + 0x130]
mov dword [rax + 0xb8], r15d
mov rcx, qword [rsp + 0x98]
test rcx, rcx
jne 0x14017892e
mov rcx, rbx
call fcn.14009e150
mov rdx, qword [rbx + 0x130]
mov r8, rax
mov rdx, qword [rdx + 0xe0]
call fcn.1400e8f70
mov qword [rsp + 0x98], rax
mov rcx, rax
test rax, rax
jne 0x14017892e
mov dword [rsp + 0x20], 0x502
lea r9, [0x1403605d0]
mov edi, Ordinal_41
lea edx, [rdi + 0x62]
lea r8d, [rdx + 0x37]
lea ecx, [rdi - 0x14]
call fcn.1400a36f0
jmp 0x140178e42
mov rax, qword [rbx + 0x130]
mov qword [rax + 0xd0], rcx
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x14017894d
call fcn.1400a1860
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x14017895e
call fcn.1400a1860
mov rcx, qword [rbx + 0x130]
mov rcx, qword [rcx + 0xe0]
call fcn.1400a1050
mov rcx, qword [rbx + 0x130]
mov qword [rbx + 0xb8], rax
mov rcx, qword [rcx + 0xe0]
call fcn.1400a1050
mov qword [rbx + 0xc0], rax
jmp 0x14017899c
mov r13, qword [rsp + 0x90]
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x408], r15
mov rax, qword [rbx + 0x130]
mov r9d, dword [rax + 0xc8]
test r9d, r9d
je 0x140178ada
test dword [rbx + 0x19c], 0x20000
je 0x1401789f4
mov edx, 0x8a
mov dword [rsp + 0x20], 0x522
lea r9, [0x1403605c0]
mov r8d, 0x154
lea ecx, [rdx - 0x76]
call fcn.1400a36f0
jmp 0x140178e42
mov rax, qword [rbx + 0x170]
xor edx, edx
xor r8d, r8d
or r10d, 0xffffffff
mov rcx, qword [rax + 0xf8]
nop dword [rax + rax]
mov eax, r10d
test rcx, rcx
je 0x140178a1a
mov eax, dword [rcx]
cmp edx, eax
jge 0x140178a53
test rcx, rcx
je 0x140178a36
test r8, r8
js 0x140178a36
cmp edx, dword [rcx]
jge 0x140178a36
mov rax, qword [rcx + 8]
mov r15, qword [rax + r8*8]
jmp 0x140178a39
xor r15d, r15d
cmp r9d, dword [r15]
je 0x140178a45
inc edx
inc r8
jmp 0x140178a10
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x408], r15
mov rax, qword [rbx + 0x80]
cmp qword [rax + 0x408], 0
jne 0x140178a8b
mov edx, 0x8a
mov dword [rsp + 0x20], 0x52f
lea r9, [0x1403605b0]
mov r8d, 0x155
lea ecx, [rdx - 0x76]
call fcn.1400a36f0
jmp 0x140178e42
xor edx, edx
xor ecx, ecx
test rbp, rbp
je 0x140178aa8
movzx eax, byte [rcx + r14]
cmp eax, r9d
je 0x140178aa8
inc edx
inc rcx
cmp rcx, rbp
jl 0x140178a94
cmp edx, ebp
jl 0x140178b52
mov edi, Ordinal_50
mov dword [rsp + 0x20], 0x53a
lea r9, [0x1403605a0]
mov r8d, 0x156
lea edx, [rdi + 0x5b]
lea ecx, [rdi - 0x1b]
call fcn.1400a36f0
jmp 0x140178e42
cmp dword [rbx + 0xa8], r15d
jne 0x140178b52
test dword [rbx + 0x19c], 0x20000
jne 0x140178b52
mov rax, qword [rbx + 0x170]
mov r10, qword [rax + 0xf8]
test r10, r10
je 0x140178b52
movsxd rax, dword [r10]
xor r9d, r9d
test eax, eax
jle 0x140178b4f
mov r11, rax
xor r8d, r8d
test r8, r8
js 0x140178b26
cmp r9d, dword [r10]
jge 0x140178b26
mov rax, qword [r10 + 8]
mov r15, qword [rax + r8*8]
jmp 0x140178b29
xor r15d, r15d
mov edx, dword [r15]
xor ecx, ecx
test rbp, rbp
je 0x140178b44
movzx eax, byte [rcx + r14]
cmp edx, eax
je 0x140178b68
inc rcx
cmp rcx, rbp
jl 0x140178b33
inc r9d
inc r8
cmp r8, r11
jl 0x140178b12
xor r15d, r15d
cmp dword [rbx + 0xa8], 0
jne 0x140178ce3
test r15, r15
jne 0x140178b78
xor ecx, ecx
jmp 0x140178b7b
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x408], r15
jmp 0x140178b52
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 0x140178ba0
call fcn.1400a1860
mov rax, qword [rbx + 0x130]
mov qword [rax + 0xe0], r13
test r13, r13
jne 0x140178bd8
mov edx, 0x8a
mov dword [rsp + 0x20], 0x56f
lea r9, [0x140360610]
lea r8d, [r13 + 0x44]
lea ecx, [rdx - 0x76]
call fcn.1400a36f0
jmp 0x140178e42
mov rcx, rbx
xor r13d, r13d
call fcn.1400d1410
test eax, eax
jne 0x140178c16
mov dword [rsp + 0x20], 0x574
lea r9, [0x140360600]
mov edx, 0x8a
lea ecx, [rdx - 0x76]
lea r8d, [rdx + 0x58]
call fcn.1400a36f0
jmp 0x1401787d1
mov r13, qword [rsp + 0x90]
jmp 0x140178c19
or ebp, 0xffffffff
mov rdx, qword [rbx + 0x100]
mov rax, qword [rdx + 0x268]
test rax, rax
je 0x140178c7a
mov rdx, qword [rdx + 0x270]
mov rcx, rbx
call rax
test eax, eax
jne 0x140178c63
lea r9, [0x1403605f0]
mov dword [rsp + 0x20], 0x57d
mov edx, 0x8a
lea ecx, [rax + 0x14]
mov r8d, 0x179
call fcn.1400a36f0
jmp 0x140178e42
jns 0x140178c73
mov dword [rbx + 0x28], 4
mov eax, ebp
jmp 0x1401787ea
mov dword [rbx + 0x28], 1
mov r8, qword [rbx + 0xb8]
test r8, r8
jne 0x140178c9e
mov r8, qword [rbx + 0x170]
test r8, r8
je 0x140178c9b
mov r8, qword [r8 + 8]
test r8, r8
jne 0x140178c9e
xor r8d, r8d
mov rdx, qword [rbx + 0x130]
mov rcx, rbx
mov rdx, qword [rdx + 0xe0]
call fcn.1400e8f70
mov rcx, rax
test rax, rax
jne 0x140178cd0
mov dword [rsp + 0x20], 0x58a
lea r9, [0x1403605e0]
jmp 0x140178915
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x3a0], rcx
jmp 0x140178da5
xor r9d, r9d
xor r10d, r10d
test dword [rbx + 0x19c], 0x40000000
je 0x140178d89
mov rbp, qword [rbx + 0x130]
xor r11d, r11d
mov r8, qword [rbp + 0xe0]
mov rcx, r8
call fcn.1400a1900
movsxd rsi, eax
test eax, eax
jle 0x140178d80
xor edx, edx
nop dword [rax + rax]
test r8, r8
je 0x140178d39
test rdx, rdx
js 0x140178d39
cmp r11d, dword [r8]
jge 0x140178d39
mov rax, qword [r8 + 8]
mov rcx, qword [rax + rdx*8]
jmp 0x140178d3b
xor ecx, ecx
test byte [rcx + 0x1c], 0x20
cmovne r9, rcx
test byte [rcx + 0x28], 2
cmovne r10, rcx
inc r11d
inc rdx
cmp rdx, rsi
jl 0x140178d20
test r9, r9
je 0x140178d6b
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x3a0], r9
jmp 0x140178da5
test r10, r10
je 0x140178d80
mov rax, qword [rbx + 0x80]
mov qword [rax + 0x3a0], r10
jmp 0x140178da5
mov rax, qword [rbp + 0xd0]
jmp 0x140178d97
mov rax, qword [rbx + 0x130]
mov rax, qword [rax + 0xd0]
mov rcx, qword [rbx + 0x80]
mov qword [rcx + 0x3a0], rax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0xc8]
test byte [rcx + 0x70], 2
je 0x140178dbf
test byte [rbx + 0x140], 1
jne 0x140178dcb
mov rcx, rbx
call fcn.1400eb0c0
test eax, eax
je 0x140178e42
cmp dword [rbx], 0x300
jl 0x140178df3
mov rcx, rbx
call fcn.1400d1650
test eax, eax
jg 0x140178df3
mov dword [rsp + 0x20], 0x5bd
lea r9, [0x140360650]
jmp 0x140178bf6
xor ebx, ebx
cmp dword [rsp + 0x80], ebx
setne bl
inc ebx
jmp 0x1401787db
mov r13, qword [rsp + 0x98]
jmp 0x1401787d1
mov dword [rsp + 0x20], 0x3f2
lea r9, [0x1403604c0]
mov r8d, 0x9f
mov edi, reloc.WLDAP32.dll_Ordinal_50
mov edx, 0x8a
lea ecx, [rdx - 0x76]
call fcn.1400a36f0
mov r13, qword [rsp + 0x90]
mov r8d, edi
mov edx, 2
mov rcx, rbx
call fcn.1400d63b0
jmp 0x1401787d1