Function at 0x18001be60
Capabilities:
Create thread
Read .ini file
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov rdx, qword [rcx + 0x10]
lea rcx, [rbp + 0x60]
call fcn.180022200
nop
mov rax, qword [rbp + 0x60]
cmp dword [rax - 0x10], 0
jne 0x18001bec3
lea rdx, [rax - 0x18]
or r13d, 0xffffffff
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x18001c23e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18001c23e
mov edi, dword [rsi + 0x18]
mov r9, qword [0x18005fed0]
mov r8d, 2
lea rdx, str.ptype
lea rcx, str.para
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
mov rcx, qword [rbp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.180001790
add rax, 0x18
mov qword [rbp - 0x48], rax
mov dword [rsp + 0x20], ebx
mov r9d, 0x3c
mov r8d, edi
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x58]
call fcn.18002b740
mov r15, rax
test rax, rax
jne 0x18001bf2d
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
jmp 0x18001be9f
mov eax, dword [rbp + 0x58]
mov dword [rbp - 0x28], eax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
or edx, 0xffffffff
mov rcx, qword [0x18005fea0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x18]
lea rcx, [0x18005fea8]
call fcn.18001d500
mov rax, qword [rax]
cmp rax, qword [0x18005feb0]
je 0x18001bf8a
mov dword [rax + 0x28], 1
mov qword [rax + 0x48], r15
mov rcx, qword [rbp - 0x28]
mov qword [rax + 0x50], rcx
mov rcx, qword [0x18005fea0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, [rbx - 0x18]
or r13d, 0xffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001bfc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop word [rax + rax]
mov rbx, qword [rsi]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x18001bfe6
cmp rax, qword [rbx - 0x18]
jne 0x18001bfe6
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x18001c01d
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x18001c238
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
inc ecx
movsxd rdx, ecx
lea rcx, [rax + 0x18]
mov r8, rbx
mov r9, rdx
call fcn.18002feb4
lea r12, [rdi + 0x18]
xor r14d, r14d
or edx, 0xffffffff
mov rcx, qword [0x18005fea0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r11, qword [0x18005feb0]
mov rbx, qword [r11 + 8]
mov rdi, r11
cmp byte [rbx + 0x59], r14b
jne 0x18001c087
xor esi, esi
test r12, r12
setne sil
test esi, esi
je 0x18001c1e5
mov rdx, r12
mov rcx, qword [rbx + 0x18]
call fcn.180030ab0
test eax, eax
sets al
test al, al
je 0x18001c074
mov rbx, qword [rbx + 0x10]
jmp 0x18001c07a
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x59], r14b
je 0x18001c051
mov r11, qword [0x18005feb0]
mov qword [rbp - 0x38], rdi
cmp rdi, r11
je 0x18001c0c2
mov rdx, qword [rdi + 0x18]
xor eax, eax
test rdx, rdx
setne al
test eax, eax
je 0x18001c1f0
mov rcx, r12
call fcn.180030ab0
test eax, eax
sets al
mov r11, qword [0x18005feb0]
test al, al
jne 0x18001c0c2
lea rax, [rbp - 0x38]
jmp 0x18001c0ca
mov qword [rbp - 0x30], r11
lea rax, [rbp - 0x30]
mov rax, qword [rax]
cmp rax, r11
je 0x18001c0d6
mov r14d, dword [rax + 0x40]
mov rcx, qword [0x18005fea0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, [r12 - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001c0ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov esi, dword [rbp + 0x58]
test r14d, r14d
je 0x18001c205
cmp dword [0x18005e630], 0
je 0x18001c1fb
test esi, esi
je 0x18001c159
xor ebx, ebx
mov edi, 4
nop word [rax + rax]
lea rdx, [rbp + rbx + 0x50]
xor r9d, r9d
mov r8d, edi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18001c205
add ebx, eax
cmp ebx, 4
jae 0x18001c173
sub edi, eax
jne 0x18001c130
jmp 0x18001c173
mov r8d, 4
lea rdx, [rbp + 0x50]
mov rcx, r15
call fcn.18002ce00
test eax, eax
je 0x18001c222
cmp dword [rbp + 0x50], 0
mov rsi, qword [rbp + 0x48]
je 0x18001bfc0
mov rax, qword [rsi]
mov ecx, dword [rax - 0x10]
sub ecx, 0xffffff80
movsxd rcx, ecx
call fcn.18002f604
mov rbx, rax
mov r9d, dword [rbp + 0x50]
mov r8, qword [rsi]
lea rdx, str._s_t_u
mov rcx, rax
call fcn.18003069c
movsxd rcx, eax
mov byte [rcx + rbx], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x18001f570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001bfc0
mov ecx, 0x80004005
call fcn.180001050
int3
mov ecx, 0x80004005
call fcn.180001050
int3
mov dword [0x18005e630], 1
test esi, esi
je 0x18001c222
mov edx, 2
mov rcx, r15
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18001c22b
mov ecx, r15d
call fcn.180004100
nop
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
jmp 0x18001bea3
call fcn.180001c20
nop
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret