Function at 0x1800040e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18003e0a8]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
call fcn.1800047d0
lea rdi, [rsi + 0x20]
lea rbx, [rsi + 0x60]
cmp rbx, rdi
je 0x180004156
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18000414a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.180001cf0
mov r8d, 0xf
lea rdx, str.ColorfulRrn.exe
mov rcx, rbx
call fcn.180001b70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov r14, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x180004181
mov rdi, qword [rdi]
cmp r14, 8
jae 0x180004199
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], 7
jmp 0x1800041db
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x70]
call fcn.180001b00
mov qword [rsp + 0x70], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.18000d6b0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r14
mov r8d, 0x10
lea rdx, str.ColorfulWiFi.ini
lea rcx, [rsp + 0x70]
call fcn.180001b70
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.18000db10
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000428b
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp]
lea r8, [0x180027650]
lea rdx, str.CfgPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rbp]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180004270
lea rcx, [rsi + 0xa0]
lea rdx, [rbp]
call fcn.180001cf0
lea rbx, [rsi + 0xa0]
cmp qword [rbx + 0x10], 0
jne 0x1800046d8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call fcn.18000db10
nop
movdqa xmm0, xmmword [0x180027690]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r13w
xor r8d, r8d
lea rdx, [0x180027650]
lea rcx, [rbp - 0x70]
call fcn.180001cf0
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x48], r13
lea rdx, [0x1800277d0]
mov rcx, rsi
call fcn.180003b10
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000441e
mov rdi, r13
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x18000436d
mov edx, r9d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000440a
mov r15, qword [rdi]
mov dword [rsp + 0x54], 0x14
mov dword [rsp + 0x50], 0x14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
lea r8, [rbp - 0x28]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x180004401
lea rdx, str.ConvertSidToStringSidW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x58]
mov rcx, r15
call rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x18000445f
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180004440
lea rcx, [rbp - 0x70]
call fcn.180001cf0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
lea rax, [rbp + 0x210]
mov qword [rsp + 0x30], rax
lea rax, str.1d143
mov qword [rsp + 0x28], rax
lea rax, str.TBSet
mov qword [rsp + 0x20], rax
lea r8, str.ColorfulWiFi
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.180003db0
mov rdi, rax
cmp rbx, rax
je 0x1800044d2
mov rcx, rbx
call fcn.1800019d0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180004512
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000450d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047b0
call fcn.18000b848
cmp qword [rbx + 0x10], 0
je 0x180004692
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180001790
nop
lea r8, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 8
cmovae r8, r9
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180004579
dec rcx
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rdx, [r8 + rax*2]
cmp word [rdx], 0x5c
je 0x180004571
cmp rdx, r8
je 0x180004579
sub rdx, 2
cmp word [rdx], 0x5c
jne 0x180004562
sub rdx, r8
sar rdx, 1
jmp 0x180004580
mov rdx, 0xffffffffffffffff
cmp edx, 0xffffffff
jle 0x180004656
movdqa xmm0, xmmword [0x180027690]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r13w
lea eax, [rdx + 1]
movsxd r8, eax
cmp qword [rbx + 0x10], r8
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800045b7
mov rdx, qword [rbx]
lea rcx, [rbp - 0x50]
call fcn.180001cf0
mov dword [rsp + 0x44], 3
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1800034d0
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180004614
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000460f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047b6
call fcn.18000b848
add rsi, 0xc0
cmp rsi, rbx
je 0x180004639
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18000462d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.180001cf0
mov r8d, 0xf
lea rdx, str.Competition.ini
mov rcx, rsi
call fcn.180001b70
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp r10, 8
jb 0x180004692
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x180004689
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047bc
mov rcx, r9
call fcn.18000b848
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x18000473d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800046d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047c2
call fcn.18000b848
jmp 0x18000473d
mov r8d, 6
lea rdx, str.Config
mov rcx, rbx
call fcn.180001b70
mov r8d, 1
lea rdx, [0x180027654]
mov rcx, rbx
call fcn.180001b70
add rsi, 0xc0
cmp rsi, rbx
je 0x180004727
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18000471b
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.180001cf0
mov r8d, 0xe
lea rdx, str.userconfig.ini
mov rcx, rsi
call fcn.180001b70
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000477a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004775
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047aa
call fcn.18000b848
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.18000b960
lea r11, [rsp + 0x530]
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
call fcn.180010294
nop
call fcn.180010294
nop
call fcn.180010294
nop
call fcn.180010294
nop
call fcn.180010294
int3