Function at 0x180033a70
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rbp + 0x790], rax
xor r13d, r13d
mov word [rsp + 0x70], r13w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x72]
call fcn.18004a690
lea rcx, [rsp + 0x70]
call fcn.1800209d0
test eax, eax
je 0x180033ea7
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.PaladinVPN_Helper
mov edx, 0x208
lea rcx, [rsp + 0x70]
call fcn.180046650
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.profile.ini
mov edx, 0x208
lea rcx, [rsp + 0x70]
call fcn.180046650
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.180044808
cmp eax, 0xffffffff
je 0x180033ea7
mov word [rbp + 0x380], r13w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0x382]
call fcn.18004a690
lea rdx, vtable.CIni.0
mov qword [rsp + 0x30], rdx
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
lea rdi, [rsp + 0x70]
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 rbx, rax
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x70]
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, rbx
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov r12d, eax
lea ecx, [rax + 2]
cmp ecx, edi
jb 0x180033c20
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 r8, rbx
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov r12d, eax
add eax, 2
cmp eax, edi
jae 0x180033be0
mov rcx, rsi
call fcn.180042a5c
add r12d, 2
je 0x180033e9a
lea ecx, [r12 + 1]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
test rax, rax
jne 0x180033c5f
lea rcx, [rsp + 0x30]
call fcn.180004680
jmp 0x180033c6e
mov r8, rbx
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov rcx, rsi
call fcn.1800048b0
mov edi, r13d
test eax, eax
sete dil
mov rcx, rsi
call fcn.180042a5c
test edi, edi
je 0x180033e9a
lea r8, str.63788286_AE30_4D6B_95DF_3B451C1C79F9
lea rdx, str.work_directory
lea rcx, [rsp + 0x30]
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, r13d
setne dil
mov rcx, rax
call fcn.180042a5c
test edi, edi
je 0x180033e9a
mov word [rbp + 0x380], r13w
mov edi, 0x200
mov eax, 2
mul r15
cmovo rax, r14
mov rcx, rax
call fcn.180041b14
mov rsi, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800641fc]
lea rdx, str.work_directory
lea rcx, str.basic
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jb 0x180033d76
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], rbx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800641fc]
lea rdx, str.work_directory
lea rcx, str.basic
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jae 0x180033d21
mov r9d, 0x208
mov r8, rsi
mov edx, r9d
lea rcx, [rbp + 0x380]
call fcn.1800420f4
mov rcx, rsi
call fcn.180042a5c
cmp word [rbp + 0x380], 0
jne 0x180033da5
jmp 0x180033e9a
mov edx, 7
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], r13w
xor eax, eax
mov rcx, r14
lea rdi, [rbp + 0x380]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x180033dee
lea rcx, str.string_too_long
call fcn.180041a2c
int3
cmp rcx, rdx
jbe 0x180033e0a
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.180003560
mov rdx, qword [rsp + 0x60]
jmp 0x180033e1a
test rcx, rcx
jne 0x180033e1a
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], r13w
test rsi, rsi
setne al
test al, al
je 0x180033e61
lea rcx, [rsp + 0x48]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x48]
lea rdi, [rsi + rsi]
mov r8, rdi
lea rdx, [rbp + 0x380]
call fcn.180042380
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rdi], r13w
lea rdx, [rsp + 0x48]
lea rcx, [0x1800a1c80]
call fcn.180004990
nop
cmp qword [rsp + 0x60], 8
jb 0x180033e86
mov rcx, qword [rsp + 0x48]
call fcn.180042a64
nop
test rbx, rbx
je 0x180033e93
mov rcx, rbx
call fcn.180042a5c
mov eax, 1
jmp 0x180033ea9
test rbx, rbx
je 0x180033ea7
mov rcx, rbx
call fcn.180042a5c
xor eax, eax
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.180041e80
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret