Function at 0x1401c7810
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 0x1401c7883
test r12d, r12d
jle 0x1401c7883
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.140175980
cmp byte [rdi + 0x20], 0
je 0x1401c78d6
cmp byte [rdi + 0x21], 0
je 0x1401c78d6
mov al, 1
jmp 0x1401c78d8
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 0x1401c7b0b
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 0x1401c794b
lea edx, [rbp + 3]
call fcn.1401ca780
lea eax, [rbp + 7]
lea edi, [rbp + 0xb]
jmp 0x1401c7959
mov edi, 8
mov edx, edi
call fcn.1401ca780
xor eax, eax
movsxd r15, eax
movsxd rax, edi
mov qword [rsp + 0x30], rax
cmp r15, rax
jge 0x1401c7b06
xor r12d, r12d
lea rax, str.addr
mov ecx, 0x2400
mov r8d, 0x202
lea rdx, [fcn.1401a6020]
nop dword [rax]
mov rsi, qword [rax + r15*8]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x1401c7ad6
mov rdi, qword [rbx + 0xa0]
add rdi, r12
test rsi, rsi
jne 0x1401c79cc
test word [rdi + 8], cx
je 0x1401c79c3
mov rcx, rdi
call fcn.1401de980
jmp 0x1401c7acb
mov word [rdi + 8], bp
jmp 0x1401c7ad6
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1401c79de
mov r13d, dword [rax + 0x88]
jmp 0x1401c79e4
mov r13d, 0x3b9aca00
or rbp, 0xffffffffffffffff
nop dword [rax + rax]
inc rbp
cmp byte [rsi + rbp], 0
jne 0x1401c79f0
movzx r14d, r8w
test word [rdi + 8], cx
jne 0x1401c7a09
cmp dword [rdi + 0x20], 0
je 0x1401c7a18
mov rcx, rdi
call fcn.1401de8b0
lea rdx, [fcn.1401a6020]
mov qword [rdi + 0x10], rsi
test rdx, rdx
jne 0x1401c7a6d
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x18], rsi
test rax, rax
je 0x1401c7a5f
cmp rsi, qword [rax + 0x1f0]
jae 0x1401c7a5f
cmp rsi, qword [rax + 0x1e0]
jb 0x1401c7a4a
mov eax, pe_nt_image_headers64
mov dword [rdi + 0x20], eax
jmp 0x1401c7a7b
cmp rsi, qword [rax + 0x1e8]
jb 0x1401c7a5f
movzx eax, word [rax + 0x1a6]
mov dword [rdi + 0x20], eax
jmp 0x1401c7a7b
mov rcx, rsi
call qword [0x1404b24a8]
mov dword [rdi + 0x20], eax
jmp 0x1401c7a7b
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 0x1401c7ac6
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1401c7ac6
mov rax, qword [rax + 0x160]
mov ebp, 1
mov ecx, 0x2400
mov r8d, 0x202
test rax, rax
je 0x1401c7ad6
inc dword [rax + 0x30]
mov dword [rax + 0x18], reloc.WS2_32.dll_select
jmp 0x1401c7ad6
mov ebp, 1
mov ecx, 0x2400
mov r8d, 0x202
inc r15
add r12, 0x38
lea rax, str.addr
lea rdx, [fcn.1401a6020]
cmp r15, qword [rsp + 0x30]
jl 0x1401c7990
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 0x1401c7b3d
sub rdx, rsi
lea rcx, [rdx + r15]
jmp 0x1401c7b40
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 0x1401c7b69
sub rdx, rbp
lea rcx, [rdx + r15]
jmp 0x1401c7b6c
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 0x1401c7b98
sub rdx, r14
lea rcx, [rdx + r15]
jmp 0x1401c7b9b
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 0x1401c7bc7
mov rcx, qword [rsp + 0x20]
sub rdx, r15
add rcx, rdx
jmp 0x1401c7bca
add rdi, r15
mov qword [rbx + 0x80], rcx
test rdi, rdi
je 0x1401c7c77
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.140188bc0
mov qword [rbx + 0x108], rax
mov rcx, rax
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x67], 0
jne 0x1401c7c6c
mov rax, qword [rbx + 0x70]
test rax, rax
jne 0x1401c7c11
cmp rsi, rdi
jg 0x1401c7c11
sub rdi, rsi
lea rax, [rdi + rcx]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x88]
test rax, rax
jne 0x1401c7c2d
cmp rbp, rdi
jg 0x1401c7c2d
sub rdi, rbp
lea rax, [rdi + rcx]
mov qword [rbx + 0x88], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x1401c7c49
cmp r14, rdi
jg 0x1401c7c49
sub rdi, r14
lea rax, [rdi + rcx]
mov qword [rbx + 0x78], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1401c7c65
cmp r15, rdi
jg 0x1401c7c65
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 0x1401c7c99
mov word [rbx + 0x20], r9w
mov qword [rbx + 0x28], 0
jmp 0x1401c7d1b
mov eax, dword [rsp + 0xa0]
mov word [rbx + 0x20], r8w
mov dword [rbx + 0x2c], eax
mov rax, qword [rbx + 0x88]
test r8d, r8d
jle 0x1401c7cd7
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 0x1401c7cc0
mov rax, qword [rbx + 0x70]
mov dword [rbx + 0x28], r12d
test r12d, r12d
jle 0x1401c7d07
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 0x1401c7cf0
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