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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
mov dword [rsp + 0x28], 0
mov edi, dword [rsp + 0x28]
shl edi, 8
and edi, 0xffff
mov edx, dword [rsp + 0x28]
shr edx, 8
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
movzx ecx, byte [rax + 0xfcc]
mov eax, edx
xor eax, ecx
mov edx, eax
lea rcx, [0x180113180]
mov eax, edi
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0x28], eax
mov edi, dword [rsp + 0x28]
shl edi, 8
and edi, 0xffff
mov edx, dword [rsp + 0x28]
shr edx, 8
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
movzx ecx, byte [rax + 0xfcd]
mov eax, edx
xor eax, ecx
mov edx, eax
lea rcx, [0x180113180]
mov eax, edi
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
movzx edx, word [rsp + 0x28]
mov rcx, qword [rcx + 0x80]
call fcn.1800bf150
mov rcx, qword [rsp + 0x60]
call fcn.1800c4780
test eax, eax
jne 0x1800c54ba
xor eax, eax
jmp 0x1800c5a12
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax], 2
jne 0x1800c54d1
mov eax, 1
jmp 0x1800c5a12
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov r8d, dword [rcx + 0x568]
mov edx, dword [rax + 0x560]
mov rcx, qword [rsp + 0x60]
call fcn.1800c2fc0
test eax, eax
jne 0x1800c5505
xor eax, eax
jmp 0x1800c5a12
mov dword [rsp + 0x30], 0
jmp 0x1800c551a
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x568]
cmp dword [rsp + 0x30], eax
jae 0x1800c55eb
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x570]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x56c]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 1
je 0x1800c5572
cmp dword [rsp + 0x3c], 2
je 0x1800c5586
cmp dword [rsp + 0x3c], 3
je 0x1800c559a
jmp 0x1800c55ac
cmp dword [rsp + 0x30], 1
jne 0x1800c5584
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
jmp 0x1800c55ac
cmp dword [rsp + 0x30], 0
jne 0x1800c5598
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
jmp 0x1800c55ac
cmp dword [rsp + 0x30], 1
jne 0x1800c55ac
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.1800c4440
test eax, eax
jne 0x1800c55cf
xor eax, eax
jmp 0x1800c5a12
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax], 2
jne 0x1800c55e6
mov eax, 1
jmp 0x1800c5a12
jmp 0x1800c550f
mov rcx, qword [rsp + 0x60]
call fcn.1800c2d10
test eax, eax
jne 0x1800c5600
xor eax, eax
jmp 0x1800c5a12
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax], 2
jne 0x1800c5617
mov eax, 1
jmp 0x1800c5a12
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx + 0x80]
call fcn.1800bf080
movzx eax, ax
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov r8d, dword [reloc.WS2_32.dll_recv]
lea rdx, [rsp + 0x24]
mov rcx, qword [rcx + 0x80]
call fcn.1800c01a0
test eax, eax
jne 0x1800c565f
xor eax, eax
jmp 0x1800c5a12
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jne 0x1800c586c
cmp dword [rsp + 0x70], 0
je 0x1800c586a
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x56c]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 1
je 0x1800c56b2
cmp dword [rsp + 0x40], 2
je 0x1800c572a
cmp dword [rsp + 0x40], 3
je 0x1800c57a0
jmp 0x1800c586a
mov dword [rsp + 0x2c], 0
jmp 0x1800c56c7
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x560]
cmp dword [rsp + 0x2c], eax
jae 0x1800c5725
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 8]
mov edi, dword [rsp + 0x2c]
mov rdx, qword [rdx + 0x88]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x90]
mov eax, dword [rax + rcx*4]
mov edx, dword [rdx + rdi*4]
sub edx, eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x90]
mov dword [rax + rcx*4], edx
jmp 0x1800c56bc
jmp 0x1800c586a
mov dword [rsp + 0x2c], 0
jmp 0x1800c573f
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x560]
cmp dword [rsp + 0x2c], eax
jae 0x1800c579b
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 8]
mov edi, dword [rsp + 0x2c]
mov rdx, qword [rdx + 0x88]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x90]
mov edx, dword [rdx + rdi*4]
add edx, dword [rax + rcx*4]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x88]
mov dword [rax + rcx*4], edx
jmp 0x1800c5734
jmp 0x1800c586a
mov dword [rsp + 0x2c], 0
jmp 0x1800c57b5
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x560]
cmp dword [rsp + 0x2c], eax
jae 0x1800c586a
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x88]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x90]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x34]
and ecx, 1
mov eax, dword [rsp + 0x20]
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
mov edx, dword [rsp + 0x20]
add edx, eax
sar edx, 1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x88]
mov dword [rax + rcx*4], edx
mov eax, dword [rsp + 0x34]
mov edx, dword [rsp + 0x20]
sub edx, eax
sar edx, 1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rax + 0x90]
mov dword [rax + rcx*4], edx
jmp 0x1800c57aa
jmp 0x1800c58da
mov edx, 2
mov rcx, qword [rsp + 0x60]
call fcn.1800c1160
cmp dword [rsp + 0x70], 0
je 0x1800c58da
mov dword [rsp + 0x30], 0
jmp 0x1800c5897
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x568]
cmp dword [rsp + 0x30], eax
jae 0x1800c58da
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rax + 0x560]
shl rcx, 2
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov edi, dword [rsp + 0x30]
mov rdi, qword [rax + rdi*8 + 0x88]
xor eax, eax
rep stosb byte [rdi], al
jmp 0x1800c588c
mov rax, qword [rsp + 0x68]
mov dword [rax], 1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
cmp dword [rax + 0x1d4], 0
je 0x1800c5915
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov eax, dword [rax + 0x1d4]
mov dword [rcx + 0x1d0], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, dword [rax + 0x568]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, dword [rax + 0x56c]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, dword [rax + 0x570]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, dword [rax + 0x564]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, dword [rax + 0x560]
mov dword [rcx + 0x14], eax
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 8]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov ecx, dword [rax + 0x560]
add rcx, qword [rdx + 0x578]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rax + 0x1d8], rcx
cmp dword [rsp + 0x70], 0
je 0x1800c59ff
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 8]
add r8, 0x88
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 8]
add rdx, 0x560
mov rcx, qword [rsp + 0x60]
call fcn.1800c29d0
test eax, eax
je 0x1800c59ff
xor eax, eax
jmp 0x1800c5a12
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov dword [rax], 2
mov eax, 1
add rsp, 0x50
pop rdi
ret