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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r11, qword [r8]
lea rax, [0x140000000]
mov r10, rcx
mov qword [rsp + 0x20], r8
movzx ecx, byte [rdx + 4]
lea rax, [rax + 0x69be00]
imul r14, rcx, 0xd8
mov rdi, r8
mov qword [rsp + 0x18], rdx
add rax, r14
mov byte [rsp], cl
mov qword [r10], rax
mov rbx, rdx
xor al, al
mov qword [r10 + 8], r9
mov byte [r10 + 0x10], cl
nop word [rax + rax]
mov rcx, qword [r10 + 8]
movzx r8d, al
inc al
mov edx, r8d
shl rdx, 6
mov ecx, dword [rcx + r8*4]
mov dword [rdx + r10 + 0x1c], ecx
cmp al, 4
jne 0x14017c4e0
mov eax, dword [rbx]
shr eax, 4
test al, 1
je 0x14017c519
mov rax, qword [r10]
movzx ecx, byte [rax + 1]
mov eax, dword [r10 + 0x1c]
btr eax, ecx
mov dword [r10 + 0x1c], eax
xor r13d, r13d
lea rcx, [rdi + 0xc]
sub r11, rdi
mov dword [rsp + 4], r13d
mov ebp, r13d
mov qword [rsp + 8], rcx
lea rax, [r11 + 0x90]
mov qword [rsp + 0x10], rax
nop dword [rax]
mov r12d, r13d
mov r15, rcx
nop word [rax + rax]
test dword [r15], 0x300
je 0x14017c7dc
mov r9d, dword [rax + r15]
test r9d, 0x300
je 0x14017c891
mov eax, ebp
lea rsi, [r10 + 0x11c]
lea rsi, [rsi + rax*8]
mov ecx, r9d
mov dword [rsi], r9d
mov r11b, reloc.WS2_32.dll_ntohs
mov eax, dword [r15]
mov edi, 0xff
mov edx, eax
shr ecx, 0xa
mov ebx, eax
shr edx, 0x10
shr ebx, 0x18
mov r8, r13
mov dword [rsi + 4], eax
test cl, 1
jne 0x14017c887
mov ecx, eax
shr ecx, 8
test cl, 1
je 0x14017c65b
cmp bl, 0x1f
ja 0x14017c87d
mov rcx, qword [r10]
cmp dword [rcx + rbx*4 + 0x14], r13d
je 0x14017c87d
test al, al
jne 0x14017c5e6
movzx edx, byte [rbx + rcx + 0x94]
and eax, 0xffffff00
or edx, eax
mov dword [rsi + 4], edx
shr edx, 0x10
mov rax, qword [r10]
mov r11d, dword [rax + rbx*4 + 0x14]
shr r11d, 8
and r11b, 0xf
cmp r11b, 3
ja 0x14017c873
movzx r8d, r11b
shl r8, 6
add r8, 0x1c
movzx edi, dl
add r8, r10
cmp edi, 0x20
jae 0x14017c869
mov ecx, edi
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x14017c869
mov ecx, dword [r8 + 0x10]
test eax, ecx
jne 0x14017c8d2
mov eax, dword [r8 + 0x14]
bts ecx, edi
bts eax, edi
mov dword [r8 + 0x10], ecx
mov dword [r8 + 0x14], eax
mov eax, dword [r8 + 8]
bts eax, edi
mov dword [r8 + 8], eax
jmp 0x14017c75b
test al, al
jne 0x14017c66d
and eax, 0xffffff00
movzx ecx, r9b
or eax, ecx
mov dword [rsi + 4], eax
movzx ebx, byte [rsi]
lea r9, [0x140000000]
movzx ecx, al
movzx edx, byte [rcx + r9 + 0x69ce90]
movzx r9d, byte [rbx + r9 + 0x69ce90]
movzx ecx, byte [rsp]
cmp dl, r9b
not cl
cmovae r9d, edx
and ecx, 1
lea ecx, [rcx*4 + 4]
cmp r9d, ecx
jbe 0x14017c722
sub al, 0x20
cmp al, 9
ja 0x14017c6b6
sub bl, 0x20
cmp bl, 9
jbe 0x14017c722
cmp r9d, 8
ja 0x14017c6d1
lea rax, [0x140000000]
mov ecx, dword [r14 + rax + 0x69be40]
test ecx, ecx
je 0x14017c6de
jmp 0x14017c749
cmp r9d, 0x10
ja 0x14017c6ec
lea rax, [0x140000000]
mov ecx, dword [r14 + rax + 0x69be44]
test ecx, ecx
je 0x14017c6f9
jmp 0x14017c749
cmp r9d, 0x20
ja 0x14017c707
lea rax, [0x140000000]
mov ecx, dword [r14 + rax + 0x69be48]
test ecx, ecx
je 0x14017c718
jmp 0x14017c749
cmp r9d, 0x40
ja 0x14017c891
lea rax, [0x140000000]
mov ecx, dword [r14 + rax + 0x69be4c]
jmp 0x14017c741
lea rax, [0x140000000]
cmp r9d, 4
ja 0x14017c739
mov ecx, dword [r14 + rax + 0x69be2c]
jmp 0x14017c741
mov ecx, dword [r14 + rax + 0x69be30]
test ecx, ecx
je 0x14017c891
movzx eax, byte [r10 + 0x13]
shr ecx, 8
and ecx, 0xf
bts eax, ecx
mov byte [r10 + 0x13], al
mov ecx, dword [rsi]
mov eax, ecx
shr eax, 8
test al, 1
je 0x14017c7c7
mov eax, ecx
shr rcx, 0x18
shr eax, 0x10
movzx r9d, al
mov rax, qword [r10]
mov edx, dword [rax + rcx*4 + 0x14]
shr edx, 8
and dl, 0xf
cmp r11b, dl
jne 0x14017c7a3
mov byte [r9 + r8 + 0x20], bpl
mov eax, dword [r8 + 0xc]
btc eax, r9d
mov dword [r8 + 0xc], eax
cmp edi, r9d
jne 0x14017c7d5
or dword [rsi], 0x800
jmp 0x14017c7d5
cmp dl, 3
ja 0x14017c891
movzx ecx, dl
shl rcx, 6
add rcx, r10
mov byte [r9 + rcx + 0x3c], bpl
mov eax, dword [rcx + 0x28]
btc eax, r9d
mov dword [rcx + 0x28], eax
jmp 0x14017c7d5
test r8, r8
je 0x14017c7d0
inc byte [r8 + 0x19]
mov byte [r10 + 0x11], 1
mov rax, qword [rsp + 0x10]
inc ebp
inc r12d
add r15, 4
cmp r12d, 4
jb 0x14017c550
mov edx, dword [rsp + 4]
mov rcx, qword [rsp + 8]
inc edx
add rcx, 0x10
mov dword [rsp + 4], edx
mov qword [rsp + 8], rcx
cmp edx, 0x10
jb 0x14017c540
mov rbx, qword [rsp + 0x18]
xor al, al
nop word [rax + rax]
movzx edx, al
inc al
mov r8d, edx
shl r8, 6
add r8, r10
mov ecx, dword [rbx + rdx*4 + 0x40]
not ecx
or ecx, dword [rbx + rdx*4 + 0x30]
and ecx, dword [r8 + 0x1c]
or ecx, dword [r8 + 0x2c]
or ecx, dword [r8 + 0x28]
mov dword [r8 + 0x20], ecx
cmp al, 4
jne 0x14017c820
cmp byte [r10 + 0x11], r13b
je 0x14017c89b
movzx eax, byte [rbx + 0xa]
cmp byte [rbx + 0xd], al
jb 0x14017c89b
mov eax, dword [rbx]
shr eax, 4
test al, 1
jne 0x14017c89b
mov cl, 1
jmp 0x14017c89d
mov eax, Ordinal_30
jmp 0x14017cab4
mov eax, Ordinal_30
jmp 0x14017cab4
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14017cab4
mov eax, Ordinal_26
jmp 0x14017cab4
mov eax, 3
jmp 0x14017cab4
xor cl, cl
mov rax, qword [rsp + 0x20]
lea r8, [r10 + 0x28]
movzx r9d, byte [rbx + 6]
movzx edx, byte [rax + 8]
cmp r9d, 0xff
je 0x14017c8c1
mov eax, dword [r8]
bt eax, r9d
jb 0x14017c8d2
cmp edx, 0xff
je 0x14017c8dc
mov eax, dword [r10 + 0x2c]
bt eax, edx
jae 0x14017c8e4
mov eax, 0x41
jmp 0x14017cab4
test cl, cl
je 0x14017c9e0
movzx edi, byte [rsp]
movzx r11d, dil
mov byte [r10 + 0x15], bpl
mov eax, dword [rbx]
not r11b
shr eax, 4
lea rbx, [r10 + 0x11c]
and al, 1
and r11b, 1
mov byte [r10 + 0x12], al
not dil
add r11b, r11b
mov eax, ebp
and dil, 1
mov qword [rbx + rax*8], r13
add r11b, 0x27
lea rbx, [rbx + rax*8]
or dil, 6
cmp r9d, 0xff
jne 0x14017c96f
cmp edx, r9d
je 0x14017c945
mov eax, dword [r10 + 0x28]
lea r8, [r10 + 0x28]
bt eax, edx
jb 0x14017c945
mov r9d, edx
jmp 0x14017c96f
mov eax, dword [r10 + 0x28]
lea r8, [r10 + 0x28]
mov ecx, dword [r10 + 0x20]
not eax
and eax, ecx
jne 0x14017c96b
mov eax, ecx
not eax
and eax, dword [r10 + 0x1c]
jne 0x14017c96b
mov eax, 0x40
jmp 0x14017cab4
bsf r9d, eax
movzx ecx, dil
shl ecx, 8
mov eax, ecx
movzx r11d, r11b
or eax, r9d
shl eax, 0x10
or eax, r11d
bts eax, 8
mov dword [rbx], eax
mov eax, r9d
mov byte [rax + r10 + 0x3c], bpl
mov eax, dword [r8]
btc eax, r9d
mov dword [r8], eax
mov eax, dword [r10 + 0x20]
bts eax, r9d
mov dword [r10 + 0x20], eax
cmp edx, 0xff
je 0x14017c9d8
or ecx, edx
shl ecx, 0x10
or ecx, r11d
bts ecx, 8
mov dword [rbx + 4], ecx
mov eax, dword [r10 + 0x2c]
bts eax, edx
mov dword [r10 + 0x2c], eax
mov eax, dword [r10 + 0x20]
bts eax, edx
mov dword [r10 + 0x20], eax
jmp 0x14017c9de
or dword [rbx], 0x800
inc ebp
mov dword [r10 + 0x18], ebp
test ebp, ebp
je 0x14017cab2
nop dword [rax]
mov eax, r13d
lea rcx, [r10 + rax*8]
mov r8d, dword [rcx + 0x11c]
mov eax, r8d
shr eax, 8
test al, 1
je 0x14017caa5
mov ecx, dword [rcx + 0x120]
mov eax, ecx
shr eax, 8
test al, 1
je 0x14017caa5
mov r11, qword [r10]
mov eax, ecx
shr eax, 0x10
movzx ebx, al
mov eax, r8d
shr rax, 0x18
mov edx, dword [r11 + rax*4 + 0x14]
mov eax, ecx
shr rax, 0x18
shr edx, 8
and dl, 0xf
mov ecx, dword [r11 + rax*4 + 0x14]
shr ecx, 8
and cl, 0xf
cmp dl, cl
jne 0x14017caa5
movzx r9d, dl
shl r9, 6
add r9, r10
mov eax, dword [r9 + 0x28]
bt eax, ebx
jae 0x14017caa5
movzx ecx, byte [rbx + r9 + 0x3c]
lea rbx, [r10 + rcx*8]
movzx eax, byte [rbx + 0x123]
mov ecx, dword [r11 + rax*4 + 0x14]
shr ecx, 8
and cl, 0xf
cmp cl, dl
jne 0x14017caa5
shr r8d, 0x10
cmp byte [rbx + 0x122], r8b
jne 0x14017caa5
inc byte [r9 + 0x34]
movzx ecx, byte [r10 + 0x14]
movzx eax, dl
bts ecx, eax
mov byte [r10 + 0x14], cl
inc r13d
cmp r13d, dword [r10 + 0x18]
jb 0x14017c9f0
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret