Function at 0x180003a10
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 - 0x858]
sub rsp, 0x930
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800490a8]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.180015fb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.180015fb0
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rsp + 0x68], xmm0
xor r14d, r14d
mov word [rsp + 0x58], r14w
xor r8d, r8d
lea rsi, [0x180030910]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180006190
nop
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.180006190
nop
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.180006190
nop
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.180006190
nop
xor r9d, r9d
lea r8d, [r14 + 0x2c]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.18000b290
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180003b30
mov eax, dword [0x180030914]
mov dword [rcx], eax
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180003b50
movups xmm1, xmmword [str.ButterflyImage]
movups xmmword [rcx], xmm1
movsd xmm2, qword [0x180030950]
movsd qword [rcx + 0x10], xmm2
mov edx, dword [0x180030958]
mov dword [rcx + 0x18], edx
movzx r8d, word [0x18003095c]
mov word [rcx + 0x1c], r8w
lea rcx, [rbp + 0x1f0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180003b92
mov dword [rcx], eax
lea rax, [rbp + 0x1f0]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x180003bb0
movups xmmword [rax], xmm1
movsd qword [rax + 0x10], xmm2
mov dword [rax + 0x18], edx
mov word [rax + 0x1c], r8w
lea rcx, [rbp + 0x1f0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180003bd5
movsd xmm0, qword [str..ini]
movsd qword [rcx], xmm0
movzx eax, word [0x180030968]
mov word [rcx + 8], ax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.CfgPath
lea rcx, str.MainConfig
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x180003c33
test eax, eax
jle 0x180003ca6
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003ca6
lea rax, [rbp - 0x20]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180003c60
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.180006190
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180003c80
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
call fcn.180006190
mov byte [rdi + 0xa], 1
cmp byte [rdi + 0xc], 0
je 0x180003ec5
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.180015fb0
cmp qword [rdi + 0x88], 0
jne 0x180003cf3
mov r8d, 0x104
lea rdx, [rbp + 0x400]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x400]
call fcn.180016140
mov word [rax + 2], r14w
jmp 0x180003d20
lea rcx, [rdi + 0x78]
cmp qword [rcx + 0x18], 8
jb 0x180003d01
mov rcx, qword [rcx]
lea rdx, [rbp + 0x400]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003d10
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.180015fb0
lea r9, str.MConfig.ini
lea r8, [rbp + 0x400]
lea rdx, str._s_s
lea rcx, [rbp + 0x610]
call fcn.180002c70
lea rax, [rbp + 0x610]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.CfgPath
lea rcx, str.MainAppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180003d90
test eax, eax
jle 0x180003df8
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003df8
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180003db3
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.180006190
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180003dd2
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
call fcn.180006190
mov byte [rdi + 0xa], 1
cmp byte [rdi + 0xc], 0
je 0x180003ec5
lea r8, [rdi + 0x98]
cmp qword [r8 + 0x18], 8
jb 0x180003e09
mov r8, qword [r8]
lea r9, str.MConfig.ini
lea rdx, str._s_s
lea rcx, [rbp + 0x610]
call fcn.180002c70
lea rax, [rbp + 0x610]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.CfgPath
lea rcx, str.MainAppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180003e60
test eax, eax
jle 0x180003ee1
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003ee1
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180003e83
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x78]
call fcn.180006190
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180003ea3
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
call fcn.180006190
mov byte [rdi + 0xa], 1
cmp byte [rdi + 0xc], 0
jne 0x180003ee1
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rbp - 0x48]
mov r13, qword [rbp - 0x70]
mov r15, qword [rsp + 0x78]
jmp 0x18000410a
mov qword [rsp + 0x20], rsi
lea r9, str.CfgPath
lea r8, str.MainAppInfo
lea rdx, str.ButterflyImage
lea rcx, [rsp + 0x38]
call fcn.18000c860
nop
lea rax, [rsp + 0x38]
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x50]
cmp r11, 8
cmovae rax, r10
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003f20
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rbp - 0x48]
mov r13, qword [rbp - 0x70]
mov r15, qword [rsp + 0x78]
test ebx, ebx
jle 0x180003fcb
lea rcx, [rsp + 0x38]
cmp r11, 8
cmovae rcx, r10
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003fc1
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.180006190
lea rcx, [rdi + 0x38]
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x180003fa8
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
call fcn.180006190
mov byte [rdi + 0xa], 1
cmp byte [rdi + 0xc], 0
jne 0x180003fc1
mov r11, qword [rsp + 0x50]
mov r10, qword [rsp + 0x38]
jmp 0x1800040ba
mov r11, qword [rsp + 0x50]
mov r10, qword [rsp + 0x38]
cmp byte [rdi + 0xc], 0
je 0x1800040ba
cmp byte [rdi + 0xa], 0
je 0x1800040ba
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, r14
lea r9, [rsp + 0x58]
cmp r12, 8
cmovae r9, rsi
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rbp - 0x38]
jne 0x180004026
mov r8, rdx
test rdx, rdx
je 0x18000402a
sub r9, rcx
nop
movzx eax, word [rcx]
cmp word [r9 + rcx], ax
jne 0x180004026
add rcx, 2
sub r8, 1
jne 0x180004010
jmp 0x18000402a
mov byte [rdi + 0xd], 1
lea rcx, [rsp + 0x78]
cmp r13, 8
cmovae rcx, r15
lea r9, [rsp + 0x58]
cmp r12, 8
cmovae r9, rsi
cmp rdx, qword [rbp - 0x78]
jne 0x18000406b
mov r8, rdx
test rdx, rdx
je 0x18000406f
sub r9, rcx
movzx eax, word [rcx]
cmp word [r9 + rcx], ax
jne 0x18000406b
add rcx, 2
sub r8, 1
jne 0x180004055
jmp 0x18000406f
mov byte [rdi + 0xd], 1
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
lea r8, [rsp + 0x58]
cmp r12, 8
cmovae r8, rsi
cmp rdx, qword [rbp - 0x58]
jne 0x1800040b6
test rdx, rdx
je 0x1800040ba
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800040b6
add rcx, 2
sub rdx, 1
jne 0x1800040a0
jmp 0x1800040ba
mov byte [rdi + 0xd], 1
cmp r11, 8
jb 0x1800040f5
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x1800040ed
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004234
mov rcx, r10
call fcn.180013eac
movdqa xmm0, xmmword [0x180030770]
movdqu xmmword [rsp + 0x48], xmm0
xor eax, eax
mov word [rsp + 0x38], ax
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x18000414b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004145
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000423a
call fcn.180013eac
nop
cmp r13, 8
jb 0x180004187
lea rdx, [r13*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18000417e
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004240
mov rcx, r15
call fcn.180013eac
nop
mov rax, qword [rbp - 0x30]
cmp rax, 8
jb 0x1800041c7
lea rdx, [rax*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1800041be
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004246
mov rcx, r14
call fcn.180013eac
nop
cmp r12, 8
jb 0x1800041fe
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1800041f6
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000422e
mov rcx, rsi
call fcn.180013eac
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.180013fc0
lea r11, [rsp + 0x930]
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.180018734
nop
call fcn.180018734
nop
call fcn.180018734
nop
call fcn.180018734
nop
call fcn.180018734
int3