Function at 0x180004a70
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa28]
sub rsp, 0xb00
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rbp + 0x9f0], rax
mov rdi, rcx
xor ebx, ebx
mov word [rbp - 0x20], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x1e]
call fcn.18004a690
lea rdx, str.localhost.ini
mov qword [rsp + 0x20], rdx
mov r9, rdi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.180041ea0
mov eax, 0xa
mov dword [reloc.WS2_32.dll_ioctlsocket], eax
lea rax, vtable.CIni.0
mov qword [rsp + 0x48], rax
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
lea rdi, [rbp - 0x20]
repne scasw ax, word [rdi]
not rcx
movsxd rdi, ecx
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov r12, rax
mov qword [rsp + 0x50], rax
lea r8, [rbp - 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.180042e20
nop
mov edi, 0x200
mov eax, 2
mov r15d, 0x201
mul r15
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov r8, r12
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov r13d, eax
lea ecx, [rax + 2]
cmp ecx, edi
jb 0x180004bc1
add edi, 0x200
mov rcx, rsi
call fcn.180042a5c
lea ecx, [rdi + 1]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov r8, r12
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov r13d, eax
add eax, 2
cmp eax, edi
jae 0x180004b81
mov rcx, rsi
call fcn.180042a5c
add r13d, 2
je 0x18000511f
lea ecx, [r13 + 1]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
test rax, rax
jne 0x180004bff
lea rcx, [rsp + 0x48]
call fcn.180004680
jmp 0x180004c0e
mov r8, r12
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov rcx, rsi
call fcn.1800048b0
mov edi, ebx
test eax, eax
sete dil
mov rcx, rsi
call fcn.180042a5c
test edi, edi
je 0x18000511f
mov word [rbp + 0x1f0], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x1f2]
call fcn.18004a690
lea r8, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
lea rdx, str.hostname
lea rcx, [rsp + 0x48]
call fcn.180004750
lea rdi, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
mov rsi, rax
mov ecx, 0x27
repe cmpsw word [rsi], word [rdi]
mov edi, ebx
setne dil
mov rcx, rax
call fcn.180042a5c
test edi, edi
je 0x180004dba
mov word [rbp + 0x1f0], bx
mov edi, 0x200
mov eax, 2
mul r15
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800641fc]
lea rdx, str.hostname
lea rcx, str.basic
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jb 0x180004d35
nop dword [rax]
add edi, 0x200
mov rcx, rsi
call fcn.180042a5c
lea ecx, [rdi + 1]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800641fc]
lea rdx, str.hostname
lea rcx, str.basic
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jae 0x180004ce0
mov r9d, 0x400
mov r8, rsi
mov edx, r9d
lea rcx, [rbp + 0x1f0]
call fcn.1800420f4
mov rcx, rsi
call fcn.180042a5c
cmp word [rbp + 0x1f0], 0
je 0x180004dba
xor edx, edx
mov r8d, 0x1000
lea rdi, [0x1800a4e30]
mov rcx, rdi
call fcn.18004a690
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xfff
mov qword [rsp + 0x20], rdi
mov r9d, r14d
lea r8, [rbp + 0x1f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r9d, 0xff
mov r8, rdi
lea edx, [r9 + 1]
lea rcx, [0x1800a3b50]
call fcn.180042ac8
lea r8, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
lea rdx, [0x1800642c0]
lea rcx, [rsp + 0x48]
call fcn.180004750
lea rdi, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
mov rsi, rax
mov ecx, 0x27
repe cmpsw word [rsi], word [rdi]
mov edi, ebx
setne dil
mov rcx, rax
call fcn.180042a5c
test edi, edi
je 0x1800050bf
mov word [rbp + 0x1f0], bx
mov edi, 0x200
mov eax, 2
mul r15
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800641fc]
lea rdx, [0x1800642c0]
lea rcx, str.basic
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jb 0x180004ea5
nop word [rax + rax]
add edi, 0x200
mov rcx, rsi
call fcn.180042a5c
lea ecx, [rdi + 1]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800641fc]
lea rdx, [0x1800642c0]
lea rcx, str.basic
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jae 0x180004e50
mov r9d, 0x400
mov r8, rsi
mov edx, r9d
lea rcx, [rbp + 0x1f0]
call fcn.1800420f4
mov rcx, rsi
call fcn.180042a5c
cmp word [rbp + 0x1f0], 0
je 0x1800050bf
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
mov r8d, 1
lea rdx, [0x180064250]
lea rcx, [rbp - 0x48]
call fcn.180002de0
nop
mov edx, 7
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
xor eax, eax
mov rcx, r14
lea rdi, [rbp + 0x1f0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x180004f4e
lea rcx, str.string_too_long
call fcn.180041a2c
int3
cmp rcx, rdx
jbe 0x180004f68
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x70]
call fcn.180003560
mov rdx, qword [rbp - 0x58]
jmp 0x180004f75
test rcx, rcx
jne 0x180004f75
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
test rsi, rsi
setne al
test al, al
je 0x180004fb5
lea rcx, [rbp - 0x70]
cmp rdx, 8
cmovae rcx, qword [rbp - 0x70]
lea rdi, [rsi + rsi]
mov r8, rdi
lea rdx, [rbp + 0x1f0]
call fcn.180042380
mov qword [rbp - 0x60], rsi
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rax, qword [rbp - 0x70]
mov word [rdi + rax], bx
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.18001fc10
nop
cmp qword [rbp - 0x58], 8
jb 0x180004fd8
mov rcx, qword [rbp - 0x70]
call fcn.180042a64
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
cmp qword [rbp - 0x30], 8
jb 0x180004ff8
mov rcx, qword [rbp - 0x48]
call fcn.180042a64
mov r15, qword [rsp + 0x60]
mov rcx, r15
mov r14, qword [rsp + 0x58]
sub rcx, r14
movabs rax, 0x6666666666666667
imul rcx
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
je 0x180005082
mov esi, ebx
test r13d, r13d
jle 0x180005082
mov rdi, r14
cmp qword [rdi + 0x18], 8
jb 0x18000503e
mov rcx, qword [rdi]
jmp 0x180005041
mov rcx, rdi
call fcn.18001fa10
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [0x1800a43b0]
call fcn.180005f60
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [0x1800a43b0]
call fcn.180005ba0
inc esi
add rdi, 0x28
cmp esi, r13d
jl 0x180005032
test r14, r14
je 0x1800050bf
mov rsi, r14
cmp r14, r15
je 0x1800050b7
nop
cmp qword [rsi + 0x18], 8
jb 0x18000509f
mov rcx, qword [rsi]
call fcn.180042a64
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rbx
mov word [rsi], bx
add rsi, 0x28
cmp rsi, r15
jne 0x180005090
mov rcx, r14
call fcn.180042a64
lea r8, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
lea rdx, str.dummyip
lea rcx, [rsp + 0x48]
call fcn.180004750
lea rdi, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
mov rsi, rax
mov ecx, 0x27
repe cmpsw word [rsi], word [rdi]
setne bl
mov rcx, rax
call fcn.180042a5c
test ebx, ebx
je 0x18000511f
lea rcx, [rsp + 0x48]
call fcn.1800045d0
cmp eax, 0xa
je 0x180005114
cmp eax, 0xf0
mov ecx, 0xa
cmovne eax, ecx
mov dword [reloc.WS2_32.dll_ioctlsocket], eax
mov r12, qword [rsp + 0x50]
test r12, r12
je 0x18000512c
mov rcx, r12
call fcn.180042a5c
mov eax, 1
mov rcx, qword [rbp + 0x9f0]
xor rcx, rsp
call fcn.180041e80
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret