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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx + 0x138]
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 0xb8], rax
mov r13d, dword [rdx + 0x34]
mov r12d, dword [rdx + 0x38]
mov qword [rdx + 0x138], 0
mov rax, qword [rcx]
add r12d, r13d
mov qword [rsp + 0x28], rax
movsx eax, word [rdx + 0x120]
mov dword [rsp + 0xa0], r13d
mov dword [rsp + 0x90], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0x98], eax
test r13d, r13d
jne 0x1401c6493
test r12d, r12d
jle 0x1401c6493
inc r12d
mov eax, dword [rcx + 0x98]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea rdx, [rsp + 0x98]
lea ecx, [rcx*8 + 7]
and ecx, 0xfffffff8
movsxd r15, ecx
sub eax, ecx
add r15, qword [rbx + 0x90]
movsxd rcx, eax
and rcx, 0xfffffffffffffff8
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call fcn.140174590
cmp byte [rdi + 0x20], 0
je 0x1401c64e6
cmp byte [rdi + 0x21], 0
je 0x1401c64e6
mov al, 1
jmp 0x1401c64e8
xor eax, eax
and dword [rbx + 0xd0], 0xffffffbf
movzx eax, al
mov ebp, 1
and eax, 1
shl eax, 6
or dword [rbx + 0xd0], eax
movzx eax, byte [rdi + 0x123]
mov ecx, dword [rbx + 0xd0]
test al, al
je 0x1401c671b
movzx eax, al
mov edx, 0xa
cmp r12d, edx
cmovl r12d, edx
shl eax, 2
xor eax, ecx
mov dword [rsp + 0xa8], r12d
and eax, 0xc
xor eax, ecx
mov rcx, rbx
mov dword [rbx + 0xd0], eax
cmp byte [rdi + 0x123], 2
jne 0x1401c655b
lea edx, [rbp + 3]
call fcn.1401c9390
lea eax, [rbp + 7]
lea edi, [rbp + 0xb]
jmp 0x1401c6569
mov edi, 8
mov edx, edi
call fcn.1401c9390
xor eax, eax
movsxd r15, eax
movsxd rax, edi
mov qword [rsp + 0x30], rax
cmp r15, rax
jge 0x1401c6716
xor r12d, r12d
lea rax, str.addr
mov ecx, 0x2400
mov r8d, 0x202
lea rdx, [fcn.1401a4c30]
nop dword [rax]
mov rsi, qword [rax + r15*8]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x1401c66e6
mov rdi, qword [rbx + 0xa0]
add rdi, r12
test rsi, rsi
jne 0x1401c65dc
test word [rdi + 8], cx
je 0x1401c65d3
mov rcx, rdi
call fcn.1401dd590
jmp 0x1401c66db
mov word [rdi + 8], bp
jmp 0x1401c66e6
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1401c65ee
mov r13d, dword [rax + 0x88]
jmp 0x1401c65f4
mov r13d, 0x3b9aca00
or rbp, 0xffffffffffffffff
nop dword [rax + rax]
inc rbp
cmp byte [rsi + rbp], 0
jne 0x1401c6600
movzx r14d, r8w
test word [rdi + 8], cx
jne 0x1401c6619
cmp dword [rdi + 0x20], 0
je 0x1401c6628
mov rcx, rdi
call fcn.1401dd4c0
lea rdx, [fcn.1401a4c30]
mov qword [rdi + 0x10], rsi
test rdx, rdx
jne 0x1401c667d
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x18], rsi
test rax, rax
je 0x1401c666f
cmp rsi, qword [rax + 0x1f0]
jae 0x1401c666f
cmp rsi, qword [rax + 0x1e0]
jb 0x1401c665a
mov eax, pe_nt_image_headers64
mov dword [rdi + 0x20], eax
jmp 0x1401c668b
cmp rsi, qword [rax + 0x1e8]
jb 0x1401c666f
movzx eax, word [rax + 0x1a6]
mov dword [rdi + 0x20], eax
jmp 0x1401c668b
mov rcx, rsi
call qword [0x1404b40d8]
mov dword [rdi + 0x20], eax
jmp 0x1401c668b
mov qword [rdi + 0x30], 0
mov r14d, 0xa02
mov eax, ebp
mov word [rdi + 8], r14w
mov byte [rdi + 0xa], 1
btr eax, 0x1f
mov dword [rdi + 0xc], eax
movsxd rax, r13d
cmp rbp, rax
jle 0x1401c66d6
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1401c66d6
mov rax, qword [rax + 0x160]
mov ebp, 1
mov ecx, 0x2400
mov r8d, 0x202
test rax, rax
je 0x1401c66e6
inc dword [rax + 0x30]
mov dword [rax + 0x18], reloc.WS2_32.dll_select
jmp 0x1401c66e6
mov ebp, 1
mov ecx, 0x2400
mov r8d, 0x202
inc r15
add r12, 0x38
lea rax, str.addr
lea rdx, [fcn.1401a4c30]
cmp r15, qword [rsp + 0x30]
jl 0x1401c65a0
mov r12d, dword [rsp + 0xa8]
mov r13d, dword [rsp + 0xa0]
mov r15, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
and dword [rbx + 0xd0], 0xfffffffc
xor r9d, r9d
movsxd rax, r12d
mov edi, r9d
mov ecx, r9d
imul rsi, rax, 0x38
add rsi, 7
and rsi, 0xfffffffffffffff8
cmp rsi, rdx
jg 0x1401c674d
sub rdx, rsi
lea rcx, [rdx + r15]
jmp 0x1401c6750
mov rdi, rsi
movsxd r8, dword [rsp + 0x90]
mov qword [rbx + 0x70], rcx
mov rcx, r9
imul rbp, r8, 0x38
add rbp, 7
and rbp, 0xfffffffffffffff8
cmp rbp, rdx
jg 0x1401c6779
sub rdx, rbp
lea rcx, [rdx + r15]
jmp 0x1401c677c
add rdi, rbp
movsxd rax, dword [rsp + 0x98]
mov qword [rbx + 0x88], rcx
mov rcx, r9
lea r14, [rax*8 + 7]
and r14, 0xfffffffffffffff8
cmp r14, rdx
jg 0x1401c67a8
sub rdx, r14
lea rcx, [rdx + r15]
jmp 0x1401c67ab
add rdi, r14
movsxd rax, r13d
mov qword [rbx + 0x78], rcx
mov rcx, r9
lea r13, [rax*8]
lea r15, [r13 + 7]
and r15, 0xfffffffffffffff8
cmp r15, rdx
jg 0x1401c67d7
mov rcx, qword [rsp + 0x20]
sub rdx, r15
add rcx, rdx
jmp 0x1401c67da
add rdi, r15
mov qword [rbx + 0x80], rcx
test rdi, rdi
je 0x1401c6887
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.1401877d0
mov qword [rbx + 0x108], rax
mov rcx, rax
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x67], 0
jne 0x1401c687c
mov rax, qword [rbx + 0x70]
test rax, rax
jne 0x1401c6821
cmp rsi, rdi
jg 0x1401c6821
sub rdi, rsi
lea rax, [rdi + rcx]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x88]
test rax, rax
jne 0x1401c683d
cmp rbp, rdi
jg 0x1401c683d
sub rdi, rbp
lea rax, [rdi + rcx]
mov qword [rbx + 0x88], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x1401c6859
cmp r14, rdi
jg 0x1401c6859
sub rdi, r14
lea rax, [rdi + rcx]
mov qword [rbx + 0x78], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1401c6875
cmp r15, rdi
jg 0x1401c6875
sub rdi, r15
lea rax, [rdi + rcx]
mov qword [rbx + 0x80], rax
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov rcx, qword [rsp + 0x28]
mov edi, 1
cmp byte [rcx + 0x67], 0
je 0x1401c68a9
mov word [rbx + 0x20], r9w
mov qword [rbx + 0x28], 0
jmp 0x1401c692b
mov eax, dword [rsp + 0xa0]
mov word [rbx + 0x20], r8w
mov dword [rbx + 0x2c], eax
mov rax, qword [rbx + 0x88]
test r8d, r8d
jle 0x1401c68e7
add rax, 8
nop dword [rax + rax]
dec r8d
mov qword [rax + 0x20], rcx
mov word [rax], di
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r8d, r8d
jg 0x1401c68d0
mov rax, qword [rbx + 0x70]
mov dword [rbx + 0x28], r12d
test r12d, r12d
jle 0x1401c6917
add rax, 8
mov edx, pe_nt_image_headers64
nop dword [rax]
dec r12d
mov qword [rax + 0x20], rcx
mov word [rax], dx
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r12d, r12d
jg 0x1401c6900
mov rcx, qword [rbx + 0x80]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
xor r9d, r9d
mov dword [rbx + 0x24], 0x2df20da3
mov dword [rbx + 0x34], 0xffffffff
mov dword [rbx + 0x38], r9d
mov word [rbx + 0xca], 0xff02
mov qword [rbx + 0x40], r9
mov dword [rbx + 0x30], edi
mov dword [rbx + 0x48], r9d
mov qword [rbx + 0x58], r9
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret