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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x338
mov rax, qword [0x180479700]
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 0x1801043db
mov byte [rsp + 0x21], 1
jmp 0x1801043e0
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 0x180104403
mov byte [rsp + 0x22], 1
jmp 0x180104408
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 0x180104497
lea rax, [0x1800fb920]
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 0x180104435
mov dword [rsp + 0x2c], 0
jmp 0x1801044ab
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 0x1801049d6
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 0x1801044f8
jmp 0x1801044a1
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 0x18010454b
mov dword [rsp + 0xe0], 2
jmp 0x180104556
mov dword [rsp + 0xe0], 1
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x130], eax
mov dword [rsp + 0x30], 0
jmp 0x180104578
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x130]
cmp dword [rsp + 0x30], eax
jge 0x1801049c8
cmp dword [rsp + 0x30], 0
jne 0x18010459f
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x58]
mov byte [rsp + 0x23], al
jmp 0x1801045ac
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 0x18010468b
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 0x18010468b
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 0x18010468b
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 0x18010469d
jmp 0x18010456e
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
jne 0x1801047ca
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18010472d
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 0x180104707
movss xmm0, dword [rsp + 0xe8]
movss dword [rsp + 0xf8], xmm0
jmp 0x180104719
movss xmm0, dword [rsp + 0xf0]
movss dword [rsp + 0xf8], xmm0
movss xmm0, dword [rsp + 0xf8]
movss dword [rsp + 0x78], xmm0
jmp 0x1801047b4
cmp dword [rsp + 0x30], 0
jne 0x1801047a4
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 0x180104781
movss xmm0, dword [rsp + 0x100]
movss dword [rsp + 0xb0], xmm0
jmp 0x180104793
movss xmm0, dword [rsp + 0x110]
movss dword [rsp + 0xb0], xmm0
movss xmm0, dword [rsp + 0xb0]
movss dword [rsp + 0x78], xmm0
jmp 0x1801047b4
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 0x1801047ca
jmp 0x18010456e
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1801047f5
mov rax, qword [rsp + 0x350]
movsx eax, byte [rax + 0x204]
cmp dword [rsp + 0x2c], eax
jge 0x1801047f5
mov dword [rsp + 0xb8], 0
jmp 0x180104800
mov dword [rsp + 0xb8], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18010481d
cmp dword [rsp + 0x30], 0
jne 0x18010481d
mov dword [rsp + 0xb4], 0
jmp 0x180104828
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 0x1801048fb
lea rax, [rsp + 0x248]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
movss xmm0, dword [0x1801e60a0]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x160]
movss xmm0, dword [0x1801e60a0]
movss dword [rax + 4], xmm0
lea rax, [rsp + 0x250]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
movss xmm0, dword [0x1801e60c0]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x168]
movss xmm0, dword [0x1801e60c0]
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.1800cf840
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.18002a4b0
lea rdx, [rsp + 0x258]
mov rcx, qword [rsp + 0x1d8]
call fcn.1800ad600
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 0x18010456e
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x57], 0xff
jmp 0x1801044a1
cmp dword [rsp + 0x7c], 0
je 0x1801050f0
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.1800e9e80
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.1801da6f0
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.1800bc360
mov rax, qword [rsp + 0x350]
movzx eax, byte [rax + 0x208]
mov edx, eax
lea rcx, [rsp + 0x188]
call fcn.1800fcfe0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180104ad1
mov dword [rsp + 0xc4], 3
jmp 0x180104adc
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 0x180104b26
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 4
jge 0x180104f9b
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 0x180104f23
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 0x180104b97
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x180104be2
movss xmm0, dword [rsp + 0x118]
comiss xmm0, dword [rsp + 0xa0]
jbe 0x180104bbe
movss xmm0, dword [rsp + 0xa0]
movss dword [rsp + 0xc8], xmm0
jmp 0x180104bd0
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 0x180104bf6
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x180104c41
movss xmm0, dword [rsp + 0x11c]
comiss xmm0, dword [rsp + 0xa4]
jbe 0x180104c1d
movss xmm0, dword [rsp + 0xa4]
movss dword [rsp + 0xcc], xmm0
jmp 0x180104c2f
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 0x180104c97
movss xmm0, dword [rsp + 0xa8]
comiss xmm0, dword [rsp + 0x120]
jb 0x180104c73
movss xmm0, dword [rsp + 0xa8]
movss dword [rsp + 0xd0], xmm0
jmp 0x180104c85
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 0x180104d01
mov rax, qword [rsp + 0x350]
mov eax, dword [rax + 4]
and eax, 0x20000
test eax, eax
jne 0x180104d01
movss xmm0, dword [rsp + 0xac]
comiss xmm0, dword [rsp + 0x124]
jb 0x180104cdd
movss xmm0, dword [rsp + 0xac]
movss dword [rsp + 0xd4], xmm0
jmp 0x180104cef
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 0x180104d2c
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 5
jge 0x180104d64
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 0x180104d22
mov dword [rsp + 0x38], 0
jmp 0x180104d78
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 0x180104f23
cmp dword [rsp + 0x60], 0
je 0x180104f23
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 0x180104e0d
mov dword [rsp + 0xd8], 1
jmp 0x180104e18
mov dword [rsp + 0xd8], 0
movzx eax, byte [rsp + 0xd8]
test eax, eax
jne 0x180104e29
jmp 0x180104d6e
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.1800fcfe0
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.1800d1880
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.1801d9f70
jmp 0x180104d6e
cmp dword [rsp + 0x28], 1
jne 0x180104f96
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180104f96
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.1801d9f70
jmp 0x180104b1c
mov dword [rsp + 0x3c], 0
jmp 0x180104faf
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 0x1801050bb
cmp dword [rsp + 0x40], 0
je 0x1801050bb
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 0x18010502c
mov dword [rsp + 0xdc], 1
jmp 0x180105037
mov dword [rsp + 0xdc], 0
movzx eax, byte [rsp + 0xdc]
test eax, eax
jne 0x180105048
jmp 0x180104fa5
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.1801d9f70
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x180104fa5
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.1801d9f70
add rsp, 0x338
pop rdi
pop rsi
ret