Function at 0x18030bfa0
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, [0x1804baabb]
call fcn.1801a9330
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x16f4], 0
je 0x18030c9cb
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 0x18030c22e
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 0x18030c1c6
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 0x18030c229
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 0x18030c9b3
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x18040e040]
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 0x18030c3a8
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 0x18030c411
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, [0x18040e340]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18030c5de
mov eax, dword [rsp + 0x2c]
lea rcx, [0x18040e9b0]
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 0x18030c587
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 0x18030c5de
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 0x18030c607
mov eax, dword [rsp + 0x20]
lea rcx, [0x18040e140]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x64], eax
jmp 0x18030c624
mov eax, dword [rsp + 0x20]
shr eax, 7
add eax, 0x100
mov eax, eax
lea rcx, [0x18040e140]
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 0x18030c784
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 0x18030c7e6
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, [0x18040e3c0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18030c9b3
mov eax, dword [rsp + 0x2c]
lea rcx, [0x18040ea30]
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 0x18030c95c
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 0x18030c9b3
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 0x18030bfdd
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 0x18030cb33
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 0x18030cb9d
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