Function at 0x180006b10
Capabilities:
Print debug messages
Read .ini file
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1800c6d00]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x198]
mov esi, edx
mov r15, qword [rsp + 0x190]
mov r14, r9
mov qword [rsp + 0x68], rax
mov rbp, r8
mov r12, rcx
and esi, 1
je 0x180006b78
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006b7f
mov byte [0x1800c9b58], 0
lea r8, [0x1800a6318]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r9, r14
lea rdx, [0x1800c9b58]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x1800a616c]
mov edx, 0xf
mov r13d, eax
lea rcx, [0x1800c9b40]
xor eax, eax
mov r9d, r13d
mov qword [r12], rax
call fcn.180004550
mov r9, r14
lea r8, [0x1800c9b40]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, 1
mov ecx, 0x113c
call fcn.180079124
mov rdi, rax
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x180007068
lea rcx, [rax + 0x164]
mov dword [rax], 0xf
mov r9, rbx
mov dword [rax + 8], 0x80
mov r8, r15
mov dword [rax + 0x184], 0xc350
mov edx, 0x1e
mov dword [rax + 0x188], 1
call fcn.1800428e4
test esi, esi
je 0x180006c63
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006c6a
mov byte [0x1800c9b58], 0
lea r8, str.ListMode
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r8d, dword [rdi]
lea rdx, [0x1800c9b58]
mov r9, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x1800a616c]
mov edx, 0xf
lea rcx, [0x1800c9b40]
mov dword [rdi], eax
mov r9d, eax
call fcn.180004550
mov r9, r14
lea r8, [0x1800c9b40]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test esi, esi
je 0x180006ced
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006cf4
mov byte [0x1800c9b58], 0
lea r8, str.ListMd2
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r8d, dword [rdi + 0x18c]
lea rdx, [0x1800c9b58]
mov r9, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [rdi]
and ecx, 0x800
or ecx, eax
mov dword [rdi + 0x18c], ecx
test esi, esi
je 0x180006d54
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006d5b
mov byte [0x1800c9b58], 0
lea r8, str.FileName
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
lea r9, [rdi + 0x10]
mov qword [rsp + 0x28], r14
lea r8, [rdi + 0x10]
mov dword [rsp + 0x20], 0x104
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rdi + 0x10], 0x2a
jne 0x180006dd6
xor eax, eax
mov dword [rdi + 0xc], 1
cmp byte [rdi + 0x11], 0x2b
mov r8, rbx
sete al
lea rdx, [rax + 0x11]
add rdx, rdi
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180006dc0
inc r8
lea rcx, [rdi + 0x10]
call fcn.1800a1e50
mov r9, r14
lea r8, [rdi + 0x10]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test esi, esi
je 0x180006e0b
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006e12
mov byte [0x1800c9b58], 0
lea r8, str.FileAppend
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r8d, dword [rdi + 0x188]
lea rdx, [0x1800c9b58]
mov r9, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x1800a616c]
mov edx, 0xf
lea rcx, [0x1800c9b40]
mov dword [rdi + 0x188], eax
mov r9d, eax
call fcn.180004550
mov r9, r14
lea r8, [0x1800c9b40]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test esi, esi
je 0x180006e9d
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006ea4
mov byte [0x1800c9b58], 0
lea r8, str.FileMaxKB
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r8d, dword [rdi + 0x184]
lea rdx, [0x1800c9b58]
mov r9, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x1800a616c]
mov edx, 0xf
lea rcx, [0x1800c9b40]
mov dword [rdi + 0x184], eax
mov r9d, eax
call fcn.180004550
mov r9, r14
lea r8, [0x1800c9b40]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test esi, esi
je 0x180006f2f
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006f36
mov byte [0x1800c9b58], 0
lea r8, str.WriteThroughCache
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r8d, dword [rdi + 4]
lea rdx, [0x1800c9b58]
mov r9, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x1800a616c]
mov edx, 0xf
lea rcx, [0x1800c9b40]
mov dword [rdi + 4], eax
mov r9d, eax
call fcn.180004550
mov r9, r14
lea r8, [0x1800c9b40]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test esi, esi
je 0x180006fbb
lea r8, [0x1800a629c]
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.180065ef0
jmp 0x180006fc2
mov byte [0x1800c9b58], 0
lea r8, str.DbgOut
mov edx, 0x28
lea rcx, [0x1800c9b58]
call fcn.1800790b8
mov r8d, dword [rdi + 0xc]
lea rdx, [0x1800c9b58]
mov r9, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea r8, [0x1800a616c]
mov edx, 0xf
lea rcx, [0x1800c9b40]
mov dword [rdi + 0xc], eax
mov r9d, eax
call fcn.180004550
mov r9, r14
lea r8, [0x1800c9b40]
lea rdx, [0x1800c9b58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [rdi + 4], 0
mov r14d, 0x80
mov eax, r14d
mov ecx, 0x80000080
cmovne eax, ecx
and dword [rdi], 0xffff7fff
mov dword [rdi + 8], eax
test r13d, r13d
je 0x18000705e
cmp byte [rdi + 0x10], 0
jne 0x180007058
cmp dword [rdi + 0xc], 0
je 0x18000705e
mov qword [r12], rdi
jmp 0x18000707b
mov rcx, rdi
call fcn.1800429d4
jmp 0x18000707b
lea rcx, str._LOG____ErrNoMem_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r14d, 0x80
mov rdi, qword [r12]
test rdi, rdi
je 0x1800072e0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ebp, ebp
cmp byte [rdi + 0x10], bpl
je 0x18000716b
test byte [rdi + 0x188], 1
jne 0x1800070ea
cmp dword [section..LOGGLO], ebp
je 0x1800070ea
mov eax, dword [rdi + 8]
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov r8d, 1
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, rbx
je 0x1800070ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
lea rcx, [rdi + 0x10]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, rbx
je 0x18000716b
lea r9, [rsp + 0x64]
mov word [rsp + 0x60], bp
mov r8d, 2
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180007162
movzx eax, word [rsp + 0x60]
mov ecx, 0xfeff
cmp ax, cx
je 0x180007158
cmp ax, r14w
jae 0x180007162
mov dword [rdi + 0x194], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rdi + 0x188], 4
je 0x18000718d
xor r9d, r9d
mov qword [rsp + 0x20], rbp
lea r8, [0x1800a6168]
xor edx, edx
mov rcx, rdi
call fcn.1800076f0
test byte [rdi + 0x188], 2
je 0x1800071af
xor r9d, r9d
mov qword [rsp + 0x20], rbp
lea r8, str.______________________________________________________________________________
xor edx, edx
mov rcx, rdi
call fcn.1800076f0
mov r9d, 0x96
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180007520
lea rax, [rsp + 0x80]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800071d2
movzx eax, word [rsp + 0x72]
lea rcx, [0x1800a6138]
movzx r10d, word [rsp + 0x70]
dec rax
movzx r9d, word [rsp + 0x76]
mov edx, 0x96
mov dword [rsp + 0x28], r10d
sub rdx, rbx
lea r8, [rcx + rax*4]
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x80]
add rcx, rbx
lea r8, str.__2u._s._u
call fcn.180004550
mov rax, qword [rsp + 0x68]
lea r9, str.Start
lea r8, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call fcn.1800076f0
mov eax, dword [rdi + 0xc]
lea r8, str.md_u_md20x_X_conv_c_d_sv0x_X_wtc_u_mxkb_u_dbgout_u
mov r9d, dword [rdi + 0x188]
lea rcx, [rdi + 0x114]
mov dword [rsp + 0x50], eax
mov edx, 0x50
mov eax, dword [rdi + 0x184]
mov dword [rsp + 0x48], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi]
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 0x194]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x18c]
mov dword [rsp + 0x28], 0x41
mov dword [rsp + 0x20], eax
call fcn.180004550
mov r9d, 0x96
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180007520
lea r9, [rdi + 0x114]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call fcn.1800076f0
mov dword [section..LOGGLO], ebp
jmp 0x1800072e8
xor eax, eax
mov dword [section..LOGGLO], eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180032180
mov rbx, qword [rsp + 0x178]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret