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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rcx, [0x1805f6cd5]
call fcn.1802647b0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x16f4], 0
je 0x1803c6bfb
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x16e8]
movzx eax, byte [rcx + rax]
and eax, 0xff
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x16e8]
movzx eax, byte [rcx + rax]
and eax, 0xff
shl eax, 8
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x16e8]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x20], 0
jne 0x1803c645e
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*4 + 2]
mov dword [rsp + 0x34], eax
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1710], eax
jle 0x1803c63f6
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*4]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
and eax, 0xff
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
sar eax, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
movzx eax, word [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
sub edx, dword [rcx + 0x1710]
mov ecx, edx
sar eax, cl
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + rax - 0x10]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c6459
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*4]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c6be3
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x180510fe0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add eax, 0x101
mov eax, eax
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*4 + 2]
mov dword [rsp + 0x3c], eax
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1710], eax
jle 0x1803c65d8
mov eax, dword [rsp + 0x2c]
add eax, 0x101
mov eax, eax
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*4]
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
and eax, 0xff
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
sar eax, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
sub edx, dword [rcx + 0x1710]
mov ecx, edx
sar eax, cl
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
mov ecx, dword [rsp + 0x3c]
lea eax, [rcx + rax - 0x10]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c6641
mov eax, dword [rsp + 0x2c]
add eax, 0x101
mov eax, eax
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*4]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
add eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
mov eax, dword [rsp + 0x2c]
lea rcx, [0x1805112e0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803c680e
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180511950]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1710], eax
jle 0x1803c67b7
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
and eax, 0xff
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
sar eax, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
sub edx, dword [rcx + 0x1710]
mov ecx, edx
sar eax, cl
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
mov ecx, dword [rsp + 0x44]
lea eax, [rcx + rax - 0x10]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c680e
movzx eax, word [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
add eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jae 0x1803c6837
mov eax, dword [rsp + 0x20]
lea rcx, [0x1805110e0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x64], eax
jmp 0x1803c6854
mov eax, dword [rsp + 0x20]
shr eax, 7
add eax, 0x100
mov eax, eax
lea rcx, [0x1805110e0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*4 + 2]
mov dword [rsp + 0x4c], eax
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1710], eax
jle 0x1803c69b4
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*4]
mov dword [rsp + 0x50], eax
movzx eax, word [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
and eax, 0xff
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
sar eax, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
movzx eax, word [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
sub edx, dword [rcx + 0x1710]
mov ecx, edx
sar eax, cl
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx + rax - 0x10]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c6a16
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*4]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
add eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180511360]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803c6be3
mov eax, dword [rsp + 0x2c]
lea rcx, [0x1805119d0]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x54], eax
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1710], eax
jle 0x1803c6b8c
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x58], eax
movzx eax, word [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
and eax, 0xff
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
sar eax, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
movzx eax, word [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
sub edx, dword [rcx + 0x1710]
mov ecx, edx
sar eax, cl
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
mov ecx, dword [rsp + 0x54]
lea eax, [rcx + rax - 0x10]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c6be3
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
add eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x16f4]
cmp dword [rsp + 0x28], eax
jb 0x1803c620d
mov eax, 4
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax + 2]
mov dword [rsp + 0x5c], eax
mov eax, reloc.WS2_32.dll_recv
sub eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x1710], eax
jle 0x1803c6d63
mov eax, 4
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax]
mov dword [rsp + 0x60], eax
movzx eax, word [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
and eax, 0xff
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x170c]
sar eax, 8
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x28]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x28]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x28], eax
movzx eax, word [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
sub edx, dword [rcx + 0x1710]
mov ecx, edx
sar eax, cl
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx + rax - 0x10]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
jmp 0x1803c6dcd
mov eax, 4
imul rax, rax, 0x100
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1710]
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x170c]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov word [rcx + 0x170c], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1710]
add eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1710], eax
add rsp, 0x70
pop rdi
ret