Function at 0x14013f550
Capabilities:
Get local ipv4 addresses
Get socket information
Manipulate boot configuration
Read .ini file
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
mov eax, 0x415e8
call fcn.1401d5c30
sub rsp, rax
mov qword [rsp + 0x41568], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x415d8], rax
mov rax, qword [rsp + 0x41608]
cmp dword [rax + 0x28], 0x65
jne 0x14013f59f
mov eax, 1
jmp 0x140140f96
mov rax, qword [rsp + 0x41608]
cmp dword [rax + 0x28], 0x67
jne 0x14013f5c4
mov rcx, qword [rsp + 0x41600]
call fcn.140135ae0
mov eax, 1
jmp 0x140140f96
mov ecx, 1
call fcn.140132a60
test eax, eax
je 0x14013f62c
mov edx, 1
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rsp + 0xfb0], 0
lea rdi, [rsp + 0xfb1]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0xfb0]
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_recv]
xor eax, eax
jmp 0x140140f96
mov dword [rsp + 0x30], 0
xor r9d, r9d
mov rax, qword [rsp + 0x41608]
mov r8d, dword [rax + 0x14]
mov rdx, qword [rsp + 0x41600]
lea rcx, [0x1403ade90]
call fcn.14001de00
mov edx, eax
mov rax, qword [rsp + 0x41600]
cmp edx, dword [rax + 0x230]
jle 0x14013f685
mov r8, qword [rsp + 0x41608]
mov rdx, qword [rsp + 0x41600]
lea rcx, [0x1403ade90]
call fcn.14001dd00
lea rcx, [rsp + 0x40]
call fcn.1401cd320
nop
mov rax, qword [rsp + 0x41608]
mov edx, dword [rax + 0x14]
lea rcx, [rsp + 0x40]
call fcn.1401d2da0
mov dword [rsp + 0x384], eax
cmp dword [rsp + 0x384], 0
jne 0x14013f72a
mov edx, 1
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rsp + 0x1fb0], 0
lea rdi, [rsp + 0x1fb1]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0x1fb0]
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x4150c], 0
lea rcx, [rsp + 0x40]
call fcn.140005d50
mov eax, dword [rsp + 0x4150c]
jmp 0x140140f96
lea rcx, [rsp + 0x1e8]
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
test eax, eax
jne 0x14013f8ec
lea rcx, [rsp + 0x3fd0]
call fcn.140119c70
mov rdx, qword [rsp + 0x41608]
mov ecx, dword [rdx + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x4080]
call fcn.1400acdd0
mov rdx, qword [rsp + 0x41608]
movzx ecx, word [rdx + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0x4380], eax
mov dword [rsp + 0x3fdc], 0xffffffff
mov rax, qword [rsp + 0x41608]
mov rax, qword [rax + 8]
mov qword [rsp + 0x3fe0], rax
mov dword [rsp + 0x4384], 2
lea rax, [rsp + 0xd098]
mov qword [rsp + 0x4028], rax
mov rax, qword [rsp + 0x4028]
mov dword [rax + 0x258], 2
mov dword [rsp + 0x2fb0], 0x10
lea r8, [rsp + 0x2fb0]
lea rdx, [rsp + 0x3fc0]
mov rcx, qword [rsp + 0x3fe0]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x3fc2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov rax, qword [rsp + 0x4028]
mov word [rax + 0x200], dx
mov rax, qword [rsp + 0x4028]
movzx edi, word [rax + 0x200]
mov ecx, dword [rsp + 0x3fc4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x4028]
add rcx, 0x27c
mov r9d, edi
mov r8, rax
lea rdx, [0x140233ca8]
call fcn.1400acc54
lea rdx, [rsp + 0x3fd0]
mov rcx, qword [rsp + 0x41600]
call fcn.140125ac0
mov edx, 1
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rsp + 0x2fc0], 0
lea rdi, [rsp + 0x2fc1]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0x2fc0]
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x41510], 0
lea rcx, [rsp + 0x40]
call fcn.140005d50
mov eax, dword [rsp + 0x41510]
jmp 0x140140f96
mov rax, qword [rsp + 0x41600]
mov rax, qword [rax]
mov edx, dword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x41600]
call qword [rax + 0x30]
mov qword [rsp + 0xfa0], 0
mov rcx, qword [rsp + 0x41600]
add rcx, 0x518
call fcn.140010ae0
mov rcx, qword [rsp + 0x41600]
add rcx, 0x4e0
lea r8, [rsp + 0xfa0]
mov edx, dword [rsp + 0x1d8]
call fcn.14001fb20
mov rcx, qword [rsp + 0x41600]
add rcx, 0x518
mov rax, qword [rsp + 0x41600]
mov rax, qword [rax + 0x518]
call qword [rax + 0x28]
cmp qword [rsp + 0xfa0], 0
je 0x14013f98d
mov rax, qword [rsp + 0xfa0]
cmp dword [rax + 0x84], 0
jne 0x14013fb32
lea rcx, [rsp + 0xe740]
call fcn.140119c70
mov rdx, qword [rsp + 0x41608]
mov ecx, dword [rdx + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0xe7f0]
call fcn.1400acdd0
mov rdx, qword [rsp + 0x41608]
movzx ecx, word [rdx + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0xeaf0], eax
mov dword [rsp + 0xe74c], 0xffffffff
mov rax, qword [rsp + 0x41608]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe750], rax
mov dword [rsp + 0xeaf4], 2
lea rax, [rsp + 0x17808]
mov qword [rsp + 0xe798], rax
mov rax, qword [rsp + 0xe798]
mov dword [rax + 0x258], 2
mov dword [rsp + 0xd720], 0x10
lea r8, [rsp + 0xd720]
lea rdx, [rsp + 0xe730]
mov rcx, qword [rsp + 0xe750]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0xe732]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov rax, qword [rsp + 0xe798]
mov word [rax + 0x200], dx
mov rax, qword [rsp + 0xe798]
movzx edi, word [rax + 0x200]
mov ecx, dword [rsp + 0xe734]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0xe798]
add rcx, 0x27c
mov r9d, edi
mov r8, rax
lea rdx, [0x140233cb0]
call fcn.1400acc54
lea rdx, [rsp + 0xe740]
mov rcx, qword [rsp + 0x41600]
call fcn.140125ac0
mov edx, 1
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rsp + 0xd730], 0
lea rdi, [rsp + 0xd731]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0xd730]
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x41514], 0
lea rcx, [rsp + 0x40]
call fcn.140005d50
mov eax, dword [rsp + 0x41514]
jmp 0x140140f96
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x41600]
lea rcx, [0x1403ade90]
call fcn.14001de00
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x380], 5
xor eax, eax
mov word [rsp + 0x7a0], ax
lea rdi, [rsp + 0x7a2]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x41600]
add rdx, 0x228
lea r8, [0x140233cb8]
lea rcx, [rsp + 0x41518]
call fcn.1400010b0
mov qword [rsp + 0x41570], rax
mov rcx, qword [rsp + 0x41570]
call fcn.1400012c0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x7a0]
lea r8, [0x1402306ec]
lea rdx, [0x140233cd0]
lea rcx, [0x140233ce0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x41518]
call fcn.140001470
lea rdx, [rsp + 0x7a0]
lea rcx, [rsp + 0x388]
call fcn.140002090
nop
lea rcx, [rsp + 0x388]
call fcn.1400012c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xc
jle 0x14013fc9a
lea rcx, [rsp + 0x388]
call fcn.1400012c0
mov rdx, rax
lea rcx, [0x1403ad8a0]
call fcn.140012810
test eax, eax
je 0x14013fc9a
lea rcx, [0x140233cf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rdx, [rsp + 0x41520]
lea rcx, [rsp + 0x388]
call fcn.1400069a0
mov qword [rsp + 0x41578], rax
mov rcx, qword [rsp + 0x41578]
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
mov dword [rsp + 0x380], eax
lea rcx, [rsp + 0x41520]
call fcn.140001470
jmp 0x14013fe7d
mov ecx, 0x1e
call fcn.1400d7f20
mov dword [rsp + 0x17e90], eax
cmp dword [rsp + 0x17e90], 0xffffffff
jmp 0x14013fe7d
mov eax, dword [rsp + 0x380]
add eax, 1
cmp dword [rsp + 0x30], eax
jmp 0x14014035f
mov rax, qword [rsp + 0x41608]
movzx ecx, word [rax + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
mov rax, qword [rsp + 0x41608]
mov ecx, dword [rax + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r9d, edi
mov r8, rax
lea rdx, str._s:_d_connect
lea rcx, [rsp + 0x3a0]
call fcn.1400acc54
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x41530]
call fcn.140010e20
mov qword [rsp + 0x41580], rax
mov rax, qword [rsp + 0x41580]
mov qword [rsp + 0x41588], rax
mov rcx, qword [rsp + 0x41588]
call fcn.140010eb0
mov rdx, rax
xor ecx, ecx
call fcn.1400dc5d0
nop
lea rcx, [rsp + 0x41530]
call fcn.140002e10
nop
mov dword [rsp + 0x36568], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x36568]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x36540], eax
mov dword [rsp + 0x36548], 0x100000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x36548]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x36540], eax
mov dword [rsp + 0x36548], 0x100000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x36548]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x36540], eax
lea rcx, [rsp + 0x2cdf0]
call fcn.140119c70
lea rdx, [rsp + 0x2cdf0]
mov qword [rsp + 0x36560], rdx
mov rax, qword [rsp + 0x41608]
mov ecx, dword [rax + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x36560]
add rcx, 0xb0
mov rdx, rax
call fcn.1400acdd0
mov rdx, qword [rsp + 0x41608]
movzx ecx, word [rdx + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov rax, qword [rsp + 0x36560]
mov dword [rax + 0x3b0], ecx
mov rax, qword [rsp + 0x36560]
mov dword [rax + 0xc], 0xffffffff
mov rcx, qword [rsp + 0x36560]
mov rax, qword [rsp + 0x41608]
mov rax, qword [rax + 8]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x36560]
mov dword [rax + 0x3b4], 2
mov rax, qword [rsp + 0x41608]
mov ecx, dword [rax + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x36560]
add rcx, 0xb0
mov rdx, rax
call fcn.1400acdd0
mov rdx, qword [rsp + 0x36560]
mov eax, dword [rsp + 0x1d8]
mov dword [rdx], eax
lea rcx, [rsp + 0x2c0]
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
mov edx, eax
mov rax, qword [rsp + 0x36560]
mov dword [rax + 4], edx
mov rax, qword [rsp + 0x41600]
mov r8d, dword [rax + 0x210]
mov rdx, qword [rsp + 0x36560]
mov rcx, qword [rsp + 0x41600]
call fcn.140137510
mov dword [rsp + 0x41590], eax
cmp dword [rsp + 0x41590], 0
jne 0x140140895
mov rcx, qword [rsp + 0xfa0]
add rcx, 0x50
call fcn.1400012c0
mov rdx, rax
lea rcx, [rsp + 0x41538]
call fcn.140002d80
mov qword [rsp + 0x41598], rax
mov rax, qword [rsp + 0x41598]
mov qword [rsp + 0x415a0], rax
mov rcx, qword [rsp + 0x415a0]
call fcn.140002e30
mov qword [rsp + 0x415a8], rax
mov rax, qword [rsp + 0x41608]
movzx ecx, word [rax + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
mov rax, qword [rsp + 0x41608]
mov ecx, dword [rax + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov rax, qword [rsp + 0x415a8]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea rdx, str._ERROR___s:_d_disconnect:_InitDisk___s_failed
lea rcx, [rsp + 0x3a0]
call fcn.1400acc54
nop
lea rcx, [rsp + 0x41538]
call fcn.140002e10
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x41540]
call fcn.140010e20
mov qword [rsp + 0x415b0], rax
mov rax, qword [rsp + 0x415b0]
mov qword [rsp + 0x415b8], rax
mov rcx, qword [rsp + 0x415b8]
call fcn.140010eb0
mov rdx, rax
mov ecx, 1
call fcn.1400dc5d0
nop
lea rcx, [rsp + 0x41540]
call fcn.140002e10
lea rcx, [rsp + 0x37580]
call fcn.140119c70
mov rdx, qword [rsp + 0x41608]
mov ecx, dword [rdx + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x37630]
call fcn.1400acdd0
mov rdx, qword [rsp + 0x41608]
movzx ecx, word [rdx + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0x37930], eax
mov dword [rsp + 0x3758c], 0xffffffff
mov rax, qword [rsp + 0x41608]
mov rax, qword [rax + 8]
mov qword [rsp + 0x37590], rax
mov dword [rsp + 0x37934], 2
lea rax, [rsp + 0x40648]
mov qword [rsp + 0x375d8], rax
mov rax, qword [rsp + 0x375d8]
mov dword [rax + 0x258], 2
mov dword [rsp + 0x3656c], 0x10
lea r8, [rsp + 0x3656c]
lea rdx, [rsp + 0x37570]
mov rcx, qword [rsp + 0x37590]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x37572]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov rax, qword [rsp + 0x375d8]
mov word [rax + 0x200], dx
mov rax, qword [rsp + 0x375d8]
movzx edi, word [rax + 0x200]
mov ecx, dword [rsp + 0x37574]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x375d8]
add rcx, 0x27c
mov r9d, edi
mov r8, rax
lea rdx, [0x140233db8]
call fcn.1400acc54
lea rdx, [rsp + 0x37580]
mov rcx, qword [rsp + 0x41600]
call fcn.140125ac0
mov edx, 1
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov byte [rsp + 0x36570], 0
lea rdi, [rsp + 0x36571]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0x36570]
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x41548], 0
lea rcx, [rsp + 0x388]
call fcn.140001470
nop
lea rcx, [rsp + 0x40]
call fcn.140005d50
mov eax, dword [rsp + 0x41548]
jmp 0x140140f96
mov rcx, qword [rsp + 0x36560]
add rcx, 0x90c8
mov rax, qword [rsp + 0x36560]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0x36560]
mov rax, qword [rax + 0x58]
mov dword [rax + 0x258], 2
mov dword [rsp + 0x36544], 0x10
lea r8, [rsp + 0x36544]
lea rdx, [rsp + 0x36550]
mov rcx, qword [rsp + 0x36560]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_getsockname]
mov rdi, qword [rsp + 0x36560]
mov rdi, qword [rdi + 0x58]
movzx ecx, word [rsp + 0x36552]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 0x200], ax
mov rax, qword [rsp + 0x36560]
mov rax, qword [rax + 0x58]
movzx edi, word [rax + 0x200]
mov ecx, dword [rsp + 0x36554]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rsp + 0x36560]
mov rcx, qword [rcx + 0x58]
add rcx, 0x27c
mov r9d, edi
mov r8, rax
lea rdx, str._s:_u_1
call fcn.1400acc54
mov rcx, qword [rsp + 0xfa0]
call fcn.14001e350
mov rdx, qword [rsp + 0xfa0]
mov dword [rdx + 0xf0], 0
mov rax, qword [rsp + 0xfa0]
mov ecx, dword [rax + 0xf4]
add ecx, 1
mov rax, qword [rsp + 0xfa0]
mov dword [rax + 0xf4], ecx
mov rdx, qword [rsp + 0x41600]
add rdx, 0x228
lea r8, [0x140233dc8]
lea rcx, [rsp + 0x41550]
call fcn.1400010b0
mov qword [rsp + 0x415c0], rax
mov rcx, qword [rsp + 0x415c0]
call fcn.1400012c0
mov r9, rax
xor r8d, r8d
lea rdx, str.SuperClientReadCache
lea rcx, [0x140233e10]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0xfa0]
mov dword [rax + 0xf8], edx
lea rcx, [rsp + 0x41550]
call fcn.140001470
mov rcx, qword [rsp + 0xfa0]
call fcn.14001e380
mov dword [rsp + 0x40cd0], 1
mov dword [rsp + 0x410e0], 0
xor eax, eax
mov word [rsp + 0x40ce0], ax
lea rdi, [rsp + 0x40ce2]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov r8d, 0x200
lea rdx, [rsp + 0x40ce0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x410e0]
lea rdx, [rsp + 0x40cd0]
lea rcx, [rsp + 0x40ce0]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
je 0x140140ac7
mov dword [rsp + 0x410e4], 0
jmp 0x140140a9a
mov eax, dword [rsp + 0x410e4]
add eax, 1
mov dword [rsp + 0x410e4], eax
movsxd rax, dword [rsp + 0x410e4]
cmp rax, 0xa
jae 0x140140ac5
movsxd rcx, dword [rsp + 0x410e4]
mov rax, qword [rsp + 0x41600]
mov dword [rax + rcx*4 + 0x4ac], 1
jmp 0x140140a89
jmp 0x140140b20
mov eax, dword [rsp + 0x410e0]
cmp dword [rsp + 0x40cd0], eax
je 0x140140b20
mov dword [rsp + 0x410e8], 0
jmp 0x140140af5
mov eax, dword [rsp + 0x410e8]
add eax, 1
mov dword [rsp + 0x410e8], eax
movsxd rax, dword [rsp + 0x410e8]
cmp rax, 0xa
jae 0x140140b20
movsxd rcx, dword [rsp + 0x410e8]
mov rax, qword [rsp + 0x41600]
mov dword [rax + rcx*4 + 0x4ac], 1
jmp 0x140140ae4
mov r8, qword [rsp + 0x41608]
mov rdx, qword [rsp + 0x36560]
mov rcx, qword [rsp + 0x41600]
call fcn.140131650
mov rax, qword [rsp + 0x36560]
cmp qword [rax + 0x30], 0
je 0x140140b6d
mov rcx, qword [rsp + 0x36560]
mov rcx, qword [rcx + 0x30]
call fcn.1400f8900
mov rdx, qword [rsp + 0x36560]
mov qword [rdx + 0x30], 0
mov rdx, qword [rsp + 0x36560]
mov rdx, qword [rdx + 0x3c0]
mov rcx, qword [rsp + 0x41600]
call fcn.14011cfc0
mov dword [rsp + 0x410ec], 0
jmp 0x140140ba7
mov eax, dword [rsp + 0x410ec]
add eax, 1
mov dword [rsp + 0x410ec], eax
cmp dword [rsp + 0x410ec], 0x40
jge 0x140140bdc
movsxd rax, dword [rsp + 0x410ec]
imul rax, rax, 0x10
mov rdx, qword [rsp + 0x36560]
mov rdx, qword [rdx + rax + 0x3d0]
mov rcx, qword [rsp + 0x41600]
call fcn.14011cfc0
jmp 0x140140b96
mov qword [rsp + 0xfa0], 0
mov rcx, qword [rsp + 0x41600]
add rcx, 0x518
call fcn.140010ae0
mov rcx, qword [rsp + 0x41600]
add rcx, 0x4e0
lea r8, [rsp + 0xfa0]
mov rax, qword [rsp + 0x36560]
mov edx, dword [rax]
call fcn.14001fb20
mov rcx, qword [rsp + 0x41600]
add rcx, 0x518
mov rax, qword [rsp + 0x41600]
mov rax, qword [rax + 0x518]
call qword [rax + 0x28]
cmp qword [rsp + 0xfa0], 0
je 0x140140cd8
mov rax, qword [rsp + 0x36560]
cmp dword [rax + 0xc], 0
jl 0x140140cd8
mov rcx, qword [rsp + 0xfa0]
call fcn.14001e350
mov rdx, qword [rsp + 0xfa0]
mov ecx, dword [rdx + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xfa0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xfa0]
cmp dword [rax + 0xf4], 0
ja 0x140140ccb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov rax, qword [rsp + 0xfa0]
mov dword [rax + 0xf0], edx
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xfa0]
call fcn.140136070
mov rcx, qword [rsp + 0xfa0]
call fcn.14001e380
mov dword [rsp + 0x410f0], 1
mov dword [rsp + 0x41500], 0
xor eax, eax
mov word [rsp + 0x41100], ax
lea rdi, [rsp + 0x41102]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov r8d, 0x200
lea rdx, [rsp + 0x41100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x41500]
lea rdx, [rsp + 0x410f0]
lea rcx, [rsp + 0x41100]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
je 0x140140d8c
mov dword [rsp + 0x41504], 0
jmp 0x140140d5f
mov eax, dword [rsp + 0x41504]
add eax, 1
mov dword [rsp + 0x41504], eax
movsxd rax, dword [rsp + 0x41504]
cmp rax, 0xa
jae 0x140140d8a
movsxd rcx, dword [rsp + 0x41504]
mov rax, qword [rsp + 0x41600]
mov dword [rax + rcx*4 + 0x4ac], 1
jmp 0x140140d4e
jmp 0x140140de5
mov eax, dword [rsp + 0x41500]
cmp dword [rsp + 0x410f0], eax
je 0x140140de5
mov dword [rsp + 0x41508], 0
jmp 0x140140dba
mov eax, dword [rsp + 0x41508]
add eax, 1
mov dword [rsp + 0x41508], eax
movsxd rax, dword [rsp + 0x41508]
cmp rax, 0xa
jae 0x140140de5
movsxd rcx, dword [rsp + 0x41508]
mov rax, qword [rsp + 0x41600]
mov dword [rax + rcx*4 + 0x4ac], 1
jmp 0x140140da9
mov rax, qword [rsp + 0x36560]
movzx ebx, word [rax + 0x18]
mov rax, qword [rsp + 0x41608]
movzx ecx, word [rax + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
mov rax, qword [rsp + 0x41608]
mov ecx, dword [rax + 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x36560]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
mov r9d, edi
lea rdx, str._s:_d_targetid__d_connectionid__d_disconnect
lea rcx, [rsp + 0x3a0]
call fcn.1400acc54
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x41558]
call fcn.140010e20
mov qword [rsp + 0x415c8], rax
mov rax, qword [rsp + 0x415c8]
mov qword [rsp + 0x415d0], rax
mov rcx, qword [rsp + 0x415d0]
call fcn.140010eb0
mov rdx, rax
xor ecx, ecx
call fcn.1400dc5d0
nop
lea rcx, [rsp + 0x41558]
call fcn.140002e10
mov rax, qword [rsp + 0xfa0]
cmp dword [rax + 0x3c], 0
je 0x140140f55
mov rax, qword [rsp + 0xfa0]
mov dword [rax + 0x3c], 0
mov rcx, qword [rsp + 0x41600]
add rcx, 0x518
call fcn.140010ae0
mov rcx, qword [rsp + 0x41600]
add rcx, 0x4e0
mov r8, qword [rsp + 0xfa0]
mov rax, qword [rsp + 0x36560]
mov edx, dword [rax]
call fcn.14001fb80
mov rcx, qword [rsp + 0x41600]
add rcx, 0x518
mov rax, qword [rsp + 0x41600]
mov rax, qword [rax + 0x518]
call qword [rax + 0x28]
mov rax, qword [rsp + 0xfa0]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xfa0]
mov r9d, dword [rax + 0x40]
mov rax, qword [rsp + 0xfa0]
mov r8d, dword [rax + 0x38]
mov rax, qword [rsp + 0xfa0]
mov edx, dword [rax + 0x110]
mov rcx, qword [rsp + 0x41600]
call fcn.140138f90
nop
mov edx, 1
mov rcx, qword [rsp + 0x41608]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rsp + 0x41560], 1
lea rcx, [rsp + 0x388]
call fcn.140001470
nop
lea rcx, [rsp + 0x40]
call fcn.140005d50
mov eax, dword [rsp + 0x41560]
mov rcx, qword [rsp + 0x415d8]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x415e8
pop rdi
pop rbx
ret