Function at 0x1803bba50
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, [0x1805d9cae]
call fcn.18025a230
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x16f4], 0
je 0x1803bc47b
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 0x1803bbcde
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 0x1803bbc76
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 0x1803bbcd9
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 0x1803bc463
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x1804f8de0]
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 0x1803bbe58
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 0x1803bbec1
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, [0x1804f90e0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803bc08e
mov eax, dword [rsp + 0x2c]
lea rcx, [0x1804f9750]
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 0x1803bc037
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 0x1803bc08e
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 0x1803bc0b7
mov eax, dword [rsp + 0x20]
lea rcx, [0x1804f8ee0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x64], eax
jmp 0x1803bc0d4
mov eax, dword [rsp + 0x20]
shr eax, 7
add eax, 0x100
mov eax, eax
lea rcx, [0x1804f8ee0]
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 0x1803bc234
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 0x1803bc296
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, [0x1804f9160]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803bc463
mov eax, dword [rsp + 0x2c]
lea rcx, [0x1804f97d0]
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 0x1803bc40c
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 0x1803bc463
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 0x1803bba8d
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 0x1803bc5e3
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 0x1803bc64d
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