Function at 0x1803c97f0
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, [0x1805f2ccb]
call fcn.1802680d0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x16f4], 0
je 0x1803ca21b
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 0x1803c9a7e
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 0x1803c9a16
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 0x1803c9a79
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 0x1803ca203
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x180512670]
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 0x1803c9bf8
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 0x1803c9c61
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, [0x180512970]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803c9e2e
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180512fe0]
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 0x1803c9dd7
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 0x1803c9e2e
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 0x1803c9e57
mov eax, dword [rsp + 0x20]
lea rcx, [0x180512770]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x64], eax
jmp 0x1803c9e74
mov eax, dword [rsp + 0x20]
shr eax, 7
add eax, 0x100
mov eax, eax
lea rcx, [0x180512770]
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 0x1803c9fd4
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 0x1803ca036
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, [0x1805129f0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803ca203
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180513060]
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 0x1803ca1ac
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 0x1803ca203
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 0x1803c982d
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 0x1803ca383
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 0x1803ca3ed
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