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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x338
mov rax, qword [0x180482700]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x350]
mov rax, qword [rax + 0x1a0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x350]
movsx eax, byte [rax + 0x202]
test eax, eax
jle 0x18010d16b
mov byte [rsp + 0x21], 1
jmp 0x18010d170
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x350]
movsx eax, byte [rax + 0x204]
test eax, eax
jle 0x18010d193
mov byte [rsp + 0x22], 1
jmp 0x18010d198
mov byte [rsp + 0x22], 0
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x24], al
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x138], 4
lea rax, [rsp + 0x290]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x138]
dec rax
mov qword [rsp + 0x138], rax
cmp qword [rsp + 0x240], 0
jbe 0x18010d227
lea rax, [0x1801046b0]
mov qword [rsp + 0x1a0], rax
mov rcx, qword [rsp + 0x140]
call qword [rsp + 0x1a0]
mov rax, qword [rsp + 0x140]
add rax, 0x28
mov qword [rsp + 0x140], rax
jmp 0x18010d1c5
mov dword [rsp + 0x2c], 0
jmp 0x18010d23b
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x350]
mov eax, dword [rax + 0x74]
cmp dword [rsp + 0x2c], eax
jge 0x18010d766
mov eax, dword [rsp + 0x2c]
mov ecx, 1
mov qword [rsp + 0x1a8], rcx
movzx ecx, al
mov rax, qword [rsp + 0x1a8]
shl rax, cl
mov rcx, qword [rsp + 0x350]
mov rcx, qword [rcx + 0x58]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x18010d288
jmp 0x18010d231
mov rax, qword [rsp + 0x350]
add rax, 0x18
mov qword [rsp + 0x1b0], rax
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0x68
mov rcx, qword [rsp + 0x1b0]
add rax, qword [rcx]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18010d2db
mov dword [rsp + 0xe0], 2
jmp 0x18010d2e6
mov dword [rsp + 0xe0], 1
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x130], eax
mov dword [rsp + 0x30], 0
jmp 0x18010d308
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x130]
cmp dword [rsp + 0x30], eax
jge 0x18010d758
cmp dword [rsp + 0x30], 0
jne 0x18010d32f
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x58]
mov byte [rsp + 0x23], al
jmp 0x18010d33c
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x59]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x1c0], rax
movsxd rax, dword [rsp + 0xbc]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x1c0]
add rax, qword [rcx + 8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jle 0x18010d41b
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov eax, dword [rax]
dec eax
cdqe
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x178]
mov rcx, qword [rcx + 8]
cmp dword [rcx + rax + 0x20], 0
jne 0x18010d41b
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov eax, dword [rax]
dec eax
cdqe
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx + 8]
cmp qword [rcx + rax + 0x28], 0
jne 0x18010d41b
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x158]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
cmp dword [rax], 1
je 0x18010d42d
jmp 0x18010d2fe
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
jne 0x18010d55a
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18010d4bd
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rax + 0x48]
movss dword [rsp + 0xf0], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rax + 0x44]
movss dword [rsp + 0xe8], xmm0
movss xmm0, dword [rsp + 0xe8]
comiss xmm0, dword [rsp + 0xf0]
jb 0x18010d497
movss xmm0, dword [rsp + 0xe8]
movss dword [rsp + 0xf8], xmm0
jmp 0x18010d4a9
movss xmm0, dword [rsp + 0xf0]
movss dword [rsp + 0xf8], xmm0
movss xmm0, dword [rsp + 0xf8]
movss dword [rsp + 0x78], xmm0
jmp 0x18010d544
cmp dword [rsp + 0x30], 0
jne 0x18010d534
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rax + 0x48]
movss dword [rsp + 0x110], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rax + 0x40]
movss dword [rsp + 0x100], xmm0
movss xmm0, dword [rsp + 0x100]
comiss xmm0, dword [rsp + 0x110]
jb 0x18010d511
movss xmm0, dword [rsp + 0x100]
movss dword [rsp + 0xb0], xmm0
jmp 0x18010d523
movss xmm0, dword [rsp + 0x110]
movss dword [rsp + 0xb0], xmm0
movss xmm0, dword [rsp + 0xb0]
movss dword [rsp + 0x78], xmm0
jmp 0x18010d544
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rax + 0x44]
movss dword [rsp + 0x78], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x78]
comiss xmm0, dword [rax + 0x28]
jbe 0x18010d55a
jmp 0x18010d2fe
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18010d585
mov rax, qword [rsp + 0x350]
movsx eax, byte [rax + 0x204]
cmp dword [rsp + 0x2c], eax
jge 0x18010d585
mov dword [rsp + 0xb8], 0
jmp 0x18010d590
mov dword [rsp + 0xb8], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18010d5ad
cmp dword [rsp + 0x30], 0
jne 0x18010d5ad
mov dword [rsp + 0xb4], 0
jmp 0x18010d5b8
mov dword [rsp + 0xb4], 2
mov eax, dword [rsp + 0xb4]
mov ecx, dword [rsp + 0xb8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc0], eax
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x290]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x10], 0
jne 0x18010d68b
lea rax, [rsp + 0x248]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
movss xmm0, dword [0x1801ee070]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x160]
movss xmm0, dword [0x1801ee070]
movss dword [rax + 4], xmm0
lea rax, [rsp + 0x250]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
movss xmm0, dword [0x1801ee090]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x168]
movss xmm0, dword [0x1801ee090]
movss dword [rax + 4], xmm0
lea rax, [rsp + 0x248]
mov rdi, qword [rsp + 0x98]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x98]
add rax, 0x14
mov qword [rsp + 0x1c8], rax
mov edx, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x1c8]
call fcn.1800d85d0
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x10]
inc eax
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1d0], rax
xor eax, eax
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x1d0]
mov rcx, qword [rcx + 8]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x258]
call fcn.1800338d0
lea rdx, [rsp + 0x258]
mov rcx, qword [rsp + 0x1d8]
call fcn.1800b6390
mov eax, dword [rsp + 0xc0]
mov ecx, 1
mov dword [rsp + 0x150], ecx
movzx ecx, al
mov eax, dword [rsp + 0x150]
shl eax, cl
mov ecx, dword [rsp + 0x7c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
jmp 0x18010d2fe
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x57], 0xff
jmp 0x18010d231
cmp dword [rsp + 0x7c], 0
je 0x18010de80
mov dword [rsp + 0x238], 2
mov rax, qword [rsp + 0x148]
add rax, 0x4360
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
sub eax, 2
mov edx, eax
mov rcx, qword [rsp + 0x1e0]
call fcn.1800f2c10
mov rax, qword [rsp + 0x148]
mov rax, qword [rax + 0x4368]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x188]
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
mov rcx, rax
call fcn.1801e3520
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x88], 2
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x188]
mov r8d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x88]
mov rcx, rax
call fcn.1800c50f0
mov rax, qword [rsp + 0x350]
movzx eax, byte [rax + 0x208]
mov edx, eax
lea rcx, [rsp + 0x188]
call fcn.180105d70
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18010d861
mov dword [rsp + 0xc4], 3
jmp 0x18010d86c
mov dword [rsp + 0xc4], 2
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0xc4]
mov eax, dword [rax + 4]
sub eax, ecx
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x118]
mov rcx, qword [rsp + 0x350]
mov rdi, rax
lea rsi, [rcx + 0x160]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x28], 0
jmp 0x18010d8b6
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 4
jge 0x18010dd2b
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
mov eax, dword [rsp + rax + 0x2a0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18010dcb3
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x290]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xa0]
mov rdi, rax
mov rsi, qword [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x18010d927
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x18010d972
movss xmm0, dword [rsp + 0x118]
comiss xmm0, dword [rsp + 0xa0]
jbe 0x18010d94e
movss xmm0, dword [rsp + 0xa0]
movss dword [rsp + 0xc8], xmm0
jmp 0x18010d960
movss xmm0, dword [rsp + 0x118]
movss dword [rsp + 0xc8], xmm0
movss xmm0, dword [rsp + 0xc8]
movss dword [rsp + 0xa0], xmm0
mov eax, dword [rsp + 0x28]
and eax, 2
test eax, eax
je 0x18010d986
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18010d9d1
movss xmm0, dword [rsp + 0x11c]
comiss xmm0, dword [rsp + 0xa4]
jbe 0x18010d9ad
movss xmm0, dword [rsp + 0xa4]
movss dword [rsp + 0xcc], xmm0
jmp 0x18010d9bf
movss xmm0, dword [rsp + 0x11c]
movss dword [rsp + 0xcc], xmm0
movss xmm0, dword [rsp + 0xcc]
movss dword [rsp + 0xa4], xmm0
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x18010da27
movss xmm0, dword [rsp + 0xa8]
comiss xmm0, dword [rsp + 0x120]
jb 0x18010da03
movss xmm0, dword [rsp + 0xa8]
movss dword [rsp + 0xd0], xmm0
jmp 0x18010da15
movss xmm0, dword [rsp + 0x120]
movss dword [rsp + 0xd0], xmm0
movss xmm0, dword [rsp + 0xd0]
movss dword [rsp + 0xa8], xmm0
mov eax, dword [rsp + 0x28]
and eax, 2
test eax, eax
je 0x18010da91
mov rax, qword [rsp + 0x350]
mov eax, dword [rax + 4]
and eax, 0x20000
test eax, eax
jne 0x18010da91
movss xmm0, dword [rsp + 0xac]
comiss xmm0, dword [rsp + 0x124]
jb 0x18010da6d
movss xmm0, dword [rsp + 0xac]
movss dword [rsp + 0xd4], xmm0
jmp 0x18010da7f
movss xmm0, dword [rsp + 0x124]
movss dword [rsp + 0xd4], xmm0
movss xmm0, dword [rsp + 0xd4]
movss dword [rsp + 0xac], xmm0
mov rax, qword [rsp + 0x108]
mov eax, dword [rax + 0x10]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x34], 0
jmp 0x18010dabc
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 5
jge 0x18010daf4
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x108]
mov eax, dword [rcx + rax*4 + 0x14]
not eax
movsxd rcx, dword [rsp + 0x34]
mov ecx, dword [rsp + rcx*4 + 0x188]
and ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x34]
mov dword [rsp + rcx*4 + 0x188], eax
jmp 0x18010dab2
mov dword [rsp + 0x38], 0
jmp 0x18010db08
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x38], eax
jge 0x18010dcb3
cmp dword [rsp + 0x60], 0
je 0x18010dcb3
mov rax, qword [rsp + 0x108]
add rax, 0x14
mov qword [rsp + 0x1e8], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
and eax, 0x1f
mov ecx, 1
mov dword [rsp + 0x128], ecx
movzx ecx, al
mov eax, dword [rsp + 0x128]
shl eax, cl
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x58]
sar eax, 5
cdqe
mov rcx, qword [rsp + 0x1e8]
mov edx, dword [rsp + 0x12c]
mov eax, dword [rcx + rax*4]
and eax, edx
test eax, eax
je 0x18010db9d
mov dword [rsp + 0xd8], 1
jmp 0x18010dba8
mov dword [rsp + 0xd8], 0
movzx eax, byte [rsp + 0xd8]
test eax, eax
jne 0x18010dbb9
jmp 0x18010dafe
mov rax, qword [rsp + 0x108]
add rax, 0x14
mov qword [rsp + 0x1f0], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x1f0]
call fcn.180105d70
mov eax, dword [rsp + 0x60]
dec eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x1f8], rax
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x1f8]
add rax, qword [rcx + 8]
mov qword [rsp + 0x170], rax
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0xa0]
call fcn.1800da610
lea rcx, [rsp + 0x268]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x200], rax
xor eax, eax
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x200]
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x268]
lea rdi, [rcx + rax]
mov rsi, rdx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov qword [rsp + 0x70], rax
mov r8d, 0x20
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x208]
call fcn.1801e2da0
jmp 0x18010dafe
cmp dword [rsp + 0x28], 1
jne 0x18010dd26
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18010dd26
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x210], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x350]
movzx eax, byte [rax + 0x208]
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x210]
add rax, qword [rcx + 8]
mov r8d, 0x20
mov rdx, rax
mov rcx, qword [rsp + 0x218]
call fcn.1801e2da0
jmp 0x18010d8ac
mov dword [rsp + 0x3c], 0
jmp 0x18010dd3f
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x3c], eax
jge 0x18010de4b
cmp dword [rsp + 0x40], 0
je 0x18010de4b
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
and eax, 0x1f
mov ecx, 1
mov dword [rsp + 0x154], ecx
movzx ecx, al
mov eax, dword [rsp + 0x154]
shl eax, cl
mov dword [rsp + 0x134], eax
mov eax, dword [rsp + 0x68]
sar eax, 5
cdqe
mov ecx, dword [rsp + 0x134]
mov eax, dword [rsp + rax*4 + 0x188]
and eax, ecx
test eax, eax
je 0x18010ddbc
mov dword [rsp + 0xdc], 1
jmp 0x18010ddc7
mov dword [rsp + 0xdc], 0
movzx eax, byte [rsp + 0xdc]
test eax, eax
jne 0x18010ddd8
jmp 0x18010dd35
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x220], rax
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x220]
add rax, qword [rcx + 8]
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov qword [rsp + 0x70], rax
mov r8d, 0x20
mov rdx, qword [rsp + 0x228]
mov rcx, qword [rsp + 0x230]
call fcn.1801e2da0
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x18010dd35
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
sub eax, 2
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
add rcx, 0x40
mov r8, rax
mov rax, qword [rsp + 0x148]
mov rdx, qword [rax + 0x4368]
call fcn.1801e2da0
add rsp, 0x338
pop rdi
pop rsi
ret