Function at 0x1803da6e0
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, [0x180609d23]
call fcn.180278fb0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x16f4], 0
je 0x1803db10b
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 0x1803da96e
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 0x1803da906
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 0x1803da969
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 0x1803db0f3
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x180523db0]
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 0x1803daae8
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 0x1803dab51
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, [0x1805240b0]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803dad1e
mov eax, dword [rsp + 0x2c]
lea rcx, [0x180524720]
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 0x1803dacc7
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 0x1803dad1e
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 0x1803dad47
mov eax, dword [rsp + 0x20]
lea rcx, [0x180523eb0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x64], eax
jmp 0x1803dad64
mov eax, dword [rsp + 0x20]
shr eax, 7
add eax, 0x100
mov eax, eax
lea rcx, [0x180523eb0]
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 0x1803daec4
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 0x1803daf26
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, [0x180524130]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1803db0f3
mov eax, dword [rsp + 0x2c]
lea rcx, [0x1805247a0]
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 0x1803db09c
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 0x1803db0f3
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 0x1803da71d
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 0x1803db273
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 0x1803db2dd
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