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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rsi
push rdi
push r13
sub rsp, 0x50
xor esi, esi
mov rdi, rdx
mov rax, rcx
movzx r13d, si
mov word [rsp + 0x88], si
cmp si, word [rcx + 0xc]
jae 0x14012e58b
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x20], rbp
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop word [rax + rax]
mov rax, qword [rax + 0x10]
movzx ecx, r13w
mov r14, qword [rax + rcx*8]
test r14, r14
je 0x14012e555
movzx edx, byte [r14]
test dl, dl
je 0x14012e555
mov r13, qword [rsp + 0x80]
nop dword [rax]
lea rbp, [r14 + 1]
movzx ecx, dl
lea r14, [rbp + 1]
mov r8, rbp
add r14, rcx
mov r12, r14
mov r10, r14
movzx eax, byte [rcx + rbp]
add r14, rax
cmp al, 1
jne 0x14012e3cf
movzx ecx, byte [r10]
movzx eax, byte [rbp]
mov byte [rdi + rcx*2 + 0x3c], al
movzx ecx, byte [r10]
movzx eax, byte [rbp + 1]
mov byte [rdi + rcx*2 + 0x3d], al
jmp 0x14012e53b
cmp dl, 1
jne 0x14012e525
mov r9d, dword [rdi + 0xc]
test r9d, r9d
je 0x14012e53b
inc dword [rdi + 0x18]
xor edx, edx
movzx r11d, byte [r10 + 1]
movzx ebx, byte [r10]
shl r11d, 8
or r11d, ebx
mov eax, r11d
div dword [rdi + 0x24]
mov rax, qword [rdi + 0x28]
lea rdx, [rdx + rdx*4]
cmp byte [rdx + rax], 0
jne 0x14012e44b
cmp byte [rdx + rax + 1], 0
jne 0x14012e44b
mov byte [rdx + rax], bl
movzx eax, byte [r10 + 1]
mov rcx, qword [rdi + 0x28]
mov byte [rdx + rcx + 1], al
movzx eax, byte [rbp]
mov rcx, qword [rdi + 0x28]
mov byte [rdx + rcx + 2], al
mov rax, qword [rdi + 0x28]
mov byte [rdx + rax + 3], 0
mov rax, qword [rdi + 0x28]
mov byte [rdx + rax + 4], 1
inc dword [rdi + 0x20]
jmp 0x14012e53b
mov rcx, qword [rdi + 0x10]
xor edx, edx
mov eax, r11d
div r9d
lea r15, [rdx*8]
cmp qword [r15 + rcx], 0
jne 0x14012e489
mov ecx, 6
call fcn.140060e70
mov rbx, rax
mov rax, qword [rdi + 0x10]
mov qword [r15 + rax], rbx
test rbx, rbx
je 0x14012e53b
jmp 0x14012e508
movsxd rax, edx
mov rax, qword [rcx + rax*8]
test rax, rax
je 0x14012e4c8
movzx ecx, byte [rax]
mov r9d, esi
test cl, cl
je 0x14012e4c4
nop
movzx r8d, cl
inc rax
add rax, r8
add r9d, 2
movzx edx, byte [rax]
lea ecx, [rdx + r8]
inc edx
add rax, rdx
add r9d, ecx
movzx ecx, byte [rax]
test cl, cl
jne 0x14012e4a0
lea esi, [r9 + 1]
lea ecx, [rsi + 5]
call fcn.140060e70
mov rbx, rax
test rax, rax
je 0x14012e53b
mov rdx, qword [rdi + 0x10]
mov rcx, rax
movsxd r8, esi
mov rdx, qword [r15 + rdx]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 0x10]
mov rcx, qword [r15 + rcx]
call fcn.1401fe33c
mov rcx, qword [rdi + 0x10]
lea eax, [rsi - 1]
cdqe
mov qword [r15 + rcx], rbx
add rbx, rax
mov byte [rbx], 2
movzx eax, word [r12]
mov word [rbx + 1], ax
mov byte [rbx + 3], 1
movzx eax, byte [rbp]
mov byte [rbx + 4], al
mov byte [rbx + 5], 0
jmp 0x14012e53b
mov r9d, reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], r13
mov rdx, r10
mov rcx, rdi
call fcn.14012e760
movzx edx, byte [r14]
mov esi, 0
test dl, dl
jne 0x14012e390
movzx r13d, word [rsp + 0x88]
mov rax, qword [rsp + 0x70]
inc r13w
mov word [rsp + 0x88], r13w
cmp r13w, word [rax + 0xc]
jb 0x14012e360
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r13
pop rdi
pop rsi
ret