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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov dword [r11 + 0x18], r8d
push rbx
push r14
sub rsp, 0x78
mov qword [r11 - 0x20], rsi
xor eax, eax
mov qword [r11 - 0x28], rdi
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov rbx, rcx
mov qword [r11 - 0x30], r12
mov r12d, r9d
cmp r8d, r12d
mov qword [r11 - 0x38], r13
lea r9, [r11 + 0x10]
mov qword [r11 - 0x40], r15
mov r13d, r8d
mov dword [r11 + 0x10], eax
cmove r9, rax
lea r8d, [rax + 3]
call fcn.14006dcb0
mov rcx, rsi
mov r14d, eax
call fcn.14006b770
movzx ecx, byte [rbx + 0x1f]
inc dword [rbx + 0x70]
mov byte [rsp + 0x90], al
test cl, cl
jne 0x14006e896
inc dword [rbx + 0x54]
mov r15d, dword [rbx + 0x54]
jmp 0x14006e8a3
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0x24]
mov rdx, qword [rsi + 0x10]
mov r8d, r15d
mov rcx, rbx
mov qword [rsp + 0x70], rbp
call fcn.140070990
cmp r14d, 5
jne 0x14006ec0b
mov rdx, qword [rsi + 0x10]
mov rcx, rbx
mov r14, qword [rsi + 0x20]
call fcn.14006b590
mov rcx, rdi
mov qword [rsp + 0x38], rax
call fcn.140056400
xor esi, esi
mov dword [rsp + 0x30], eax
mov ebp, eax
cmp r12d, r13d
je 0x14006e91e
movzx ecx, byte [rbx + 0x1f]
test cl, cl
jne 0x14006e8fb
inc dword [rbx + 0x54]
mov esi, dword [rbx + 0x54]
jmp 0x14006e907
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0x24]
mov r9d, r15d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov edx, 0x55
mov rcx, rdi
call fcn.140056030
xor r12d, r12d
cmp dword [r14], r12d
jle 0x14006eb09
xor r13d, r13d
nop dword [rax]
mov rdx, qword [r14 + 8]
lea r8, [rsp + 0x34]
mov rcx, rbx
mov rdx, qword [rdx + r13]
call fcn.140070830
mov ebp, eax
test esi, esi
je 0x14006e9c7
mov rcx, qword [r14 + 8]
mov r8, qword [rcx + r13]
movzx ecx, byte [r8]
add cl, 0x63
cmp cl, 1
ja 0x14006e965
mov r8, qword [r8 + 0x10]
jmp 0x14006e953
movzx eax, byte [r8]
cmp al, 0x9f
jne 0x14006e972
movzx eax, byte [r8 + 0x36]
cmp al, 0x61
je 0x14006e9c7
cmp al, 0x83
jbe 0x14006e9b0
cmp al, 0x86
jbe 0x14006e9c7
cmp al, 0x9a
jne 0x14006e9b0
test dword [r8 + 4], 0x100000
jne 0x14006e9b0
movzx eax, word [r8 + 0x30]
test ax, ax
js 0x14006e9c7
movsx rax, ax
lea rdx, [rax + rax*2]
mov rax, qword [r8 + 0x40]
add rdx, rdx
mov rcx, qword [rax + 8]
cmp byte [rcx + rdx*8 + 0x28], 0
jne 0x14006e9c7
mov r9d, ebp
mov dword [rsp + 0x20], esi
mov r8d, esi
mov edx, 0x55
mov rcx, rdi
call fcn.140056030
mov eax, dword [r14]
dec eax
cmp r12d, eax
jl 0x14006ea4f
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0xa8], eax
jne 0x14006ea4f
mov r9d, eax
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov edx, Ordinal_79
mov rcx, rdi
call fcn.140056030
mov r8, qword [rsp + 0x38]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rdi
call fcn.140056aa0
mov rax, qword [rdi]
movzx edx, byte [rsp + 0x90]
mov ecx, dword [rdi + 0x3c]
or dl, 0x10
dec ecx
cmp byte [rax + 0x51], 0
je 0x14006ea36
mov ebp, dword [rsp + 0x30]
lea rax, [0x140330198]
mov byte [rax + 3], dl
jmp 0x14006eab0
mov ebp, dword [rsp + 0x30]
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov byte [rax + rcx*8 + 3], dl
lea rax, [rax + rcx*8]
jmp 0x14006eab0
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov ebp, dword [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov r9d, ebp
mov rcx, rdi
call fcn.140056030
mov r8, qword [rsp + 0x38]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rdi
call fcn.140056aa0
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x14006ea96
lea rcx, [0x140330198]
jmp 0x14006eaa5
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rcx, [rax + rcx*8]
movzx eax, byte [rsp + 0x90]
mov byte [rcx + 3], al
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x14006eaf1
movzx r8d, byte [rbx + 0x1f]
cmp r8b, 8
jae 0x14006eaf1
xor ecx, ecx
lea rax, [rbx + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], edx
je 0x14006eaed
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006ead0
movzx eax, r8b
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
jmp 0x14006eaf1
mov byte [rax + 6], 1
inc r12d
add r13, 0x28
cmp r12d, dword [r14]
jl 0x14006e930
mov r13d, dword [rsp + 0xa0]
test esi, esi
je 0x14006eb47
mov r9d, dword [rsp + 0xa8]
mov r8d, esi
mov edx, Ordinal_79
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140056030
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140056030
mov rdx, qword [rdi + 0x30]
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x14006eb66
or eax, 0xffffffff
sub eax, ebp
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
test esi, esi
je 0x14006eb9e
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14006eb9e
xor ecx, ecx
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], esi
je 0x14006ec05
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006eb84
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], esi
inc byte [rbx + 0x1f]
xor r14d, r14d
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
test r15d, r15d
je 0x14006ede3
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14006ede3
mov ecx, r14d
lea rax, [rbx + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], r15d
je 0x14006eddf
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006ebe0
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r15d
inc byte [rbx + 0x1f]
jmp 0x14006ede3
mov byte [rax + 6], 1
jmp 0x14006eb9e
mov rcx, qword [rsi + 0x10]
call fcn.14006d980
lea rbp, [0x140330198]
test eax, eax
je 0x14006ecd0
mov dword [rsp + 0x20], 0
mov r8d, r15d
mov rcx, rdi
cmp r12d, r13d
jne 0x14006ec48
mov r9d, r12d
mov edx, Ordinal_79
call fcn.140056030
jmp 0x14006ecd0
xor r9d, r9d
lea edx, [r9 + 0x4d]
call fcn.140056030
mov r8d, dword [rsi + 0x2c]
mov r9d, r13d
mov edx, WSASetLastError
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov ebp, eax
call fcn.140056030
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r12d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140056030
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 0x14006eca2
lea ebp, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], 0
je 0x14006ecb7
lea rbp, [0x140330198]
mov rax, rbp
jmp 0x14006eccd
movsxd rax, ebp
lea rbp, [0x140330198]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r8d, r15d
mov rcx, rdi
cmp r14d, 1
jne 0x14006ed0d
xor r14d, r14d
mov r9d, r13d
mov dword [rsp + 0x20], r14d
lea edx, [r14 + 0x26]
call fcn.140056030
mov r8d, dword [rsi + 0x2c]
lea edx, [r14 + 0x49]
mov r9d, r13d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call fcn.140056030
jmp 0x14006eba1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r9d, [r14 + 1]
lea edx, [r14 + 0x30]
call fcn.140056030
lea r9d, [r14 + 1]
mov edx, eax
lea r8, [rsp + 0x90]
mov rcx, rdi
call fcn.140056aa0
mov rcx, rdi
mov r8d, dword [rsi + 0x2c]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
cmp dword [rsp + 0x98], r14d
jne 0x14006ed67
mov r9d, r13d
lea edx, [r14 + 0x45]
call fcn.140056360
jmp 0x14006eba1
xor r9d, r9d
lea edx, [r9 + 0x46]
call fcn.140056360
mov r8d, dword [rsp + 0x98]
mov r9d, r12d
mov edx, Ordinal_79
mov dword [rsp + 0x20], r14d
mov rcx, rdi
mov esi, eax
call fcn.140056030
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140056030
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
test esi, esi
jns 0x14006edbf
lea esi, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], r14b
jne 0x14006edd7
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rbp, [rax + rcx*8]
mov dword [rbp + 8], edx
jmp 0x14006eba1
mov byte [rax + 6], 1
dec dword [rbx + 0x70]
lea rcx, [rbx + 0x94]
mov r15, qword [rsp + 0x48]
mov r8d, 0xa
mov edx, dword [rcx]
test edx, edx
je 0x14006ee25
mov eax, dword [rbx + 0x70]
cmp dword [rcx - 4], eax
jle 0x14006ee25
cmp byte [rcx - 6], 0
je 0x14006ee22
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14006ee1e
movzx eax, al
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r14d
add rcx, 0x14
sub r8, 1
jne 0x14006edf8
add rsp, 0x78
pop r14
pop rbx
ret