Function at 0x180038480
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1800830c8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r15d, 0x103
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8, r15
mov byte [rsp + 0x40], 0
call fcn.180052810
xor eax, eax
lea r12d, [r15 + 1]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, r12
mov byte [rsp + 0x30], 0
mov word [rsp + 0x31], ax
mov byte [rsp + 0x33], al
call fcn.180052810
lea r13, str.GlobalSettings
lea r14, [0x18009b470]
lea r9, [rsp + 0x40]
lea rdx, str.IRCServer
mov rcx, r13
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x40]
test eax, eax
jle 0x18003853c
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
jmp 0x18003854b
lea rdx, str.irc.itembuy.org
mov r8, r15
call fcn.180052a80
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea ebx, [rax + 8]
mov ecx, ebx
call fcn.180006f1c
mov qword [0x18009b3e0], rax
test rax, rax
je 0x180038685
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.180052810
mov rcx, qword [0x18009b3e0]
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x40]
call fcn.180052a80
lea rcx, [rsp + 0x40]
mov r8, r12
xor edx, edx
call fcn.180052810
lea r9, [rsp + 0x40]
lea rdx, str.DefaultChannel
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x40]
test eax, eax
jle 0x1800385df
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
jmp 0x1800385ee
lea rdx, str.CNProxy
mov r8, r15
call fcn.180052a80
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea ebx, [rax + 8]
mov ecx, ebx
call fcn.180006f1c
mov qword [0x18009b3e8], rax
test rax, rax
je 0x180038685
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.180052810
mov rcx, qword [0x18009b3e8]
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x40]
call fcn.180052a80
lea rcx, [rsp + 0x40]
mov r8, r12
xor edx, edx
call fcn.180052810
lea r9, [rsp + 0x40]
lea rdx, str.DefaultUserName
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x1800386be
mov r8, r12
xor edx, edx
call fcn.180052810
lea rcx, [rsp + 0x40]
mov edx, r12d
call fcn.180038358
test eax, eax
jne 0x1800386d0
call fcn.1800072ec
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800527e0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea edi, [rax + 0x20]
mov ecx, edi
call fcn.180006f1c
mov qword [0x18009b3f0], rax
test rax, rax
je 0x180038685
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.180052810
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 4]
call fcn.180052810
mov rcx, qword [0x18009b3e8]
call fcn.1800529c0
cmp eax, 2
jbe 0x180038685
mov rcx, qword [0x18009b3e8]
xor esi, esi
mov al, byte [rcx + 1]
mov byte [rsp + 0x30], al
mov al, byte [rcx + 2]
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x31], al
mov byte [rsp + 0x32], 0
call fcn.1800529c0
test eax, eax
je 0x18003876c
lea rbx, [rsp + 0x40]
cmp byte [rbx], 0x2e
jne 0x180038759
mov byte [rbx], 0x5f
lea rcx, [rsp + 0x40]
inc esi
inc rbx
call fcn.1800529c0
cmp esi, eax
jb 0x180038751
mov rax, qword [0x180099cf0]
lea edx, [rdi - 1]
lea r9, [rsp + 0x30]
movzx ecx, word [rax]
lea rax, [rsp + 0x40]
lea r8, str._s__s__d
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x18009b3f0]
mov qword [rsp + 0x20], rax
call fcn.1800528fc
lea rcx, [rsp + 0x40]
mov r8, r12
xor edx, edx
call fcn.180052810
lea r9, [rsp + 0x40]
lea rdx, str.MasterPassword
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x40]
test eax, eax
jle 0x1800387ed
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
jmp 0x1800387fc
lea rdx, str.master
mov r8, r15
call fcn.180052a80
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea ebx, [rax + 8]
mov ecx, ebx
call fcn.180006f1c
mov qword [0x18009b3f8], rax
test rax, rax
je 0x180038685
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.180052810
mov rcx, qword [0x18009b3f8]
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x40]
call fcn.180052a80
lea rcx, [rsp + 0x40]
mov r8, r12
xor edx, edx
call fcn.180052810
lea r9, [rsp + 0x40]
lea rdx, str.IRCServerPort
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x1800388c4
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
lea rcx, [rsp + 0x40]
call fcn.18000496c
test eax, eax
je 0x180038685
lea rcx, [rsp + 0x40]
call fcn.180054324
mov dword [0x18009b420], eax
test eax, eax
je 0x180038685
cmp eax, 0xffff
jbe 0x1800388ce
jmp 0x180038685
mov dword [0x18009b420], 0x1a0d
lea rcx, [rsp + 0x40]
mov r8, r12
xor edx, edx
call fcn.180052810
lea r9, [rsp + 0x40]
lea rdx, str.ChannelKey
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x180038921
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
lea rdx, [rsp + 0x40]
jmp 0x18003893a
xor edx, edx
lea rcx, [0x18009b400]
lea r8d, [rdx + 0x20]
call fcn.180052810
lea rdx, str.barren
lea rcx, [0x18009b400]
mov r8d, reloc.ODBC32.dll_SQLFreeHandle
call fcn.180052a80
lea rcx, [rsp + 0x40]
mov r8, r12
xor edx, edx
call fcn.180052810
lea r9, [rsp + 0x40]
lea rdx, str.IsIRCEnable
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x1800389b2
lea rcx, [rsp + 0x40]
call fcn.1800529c0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.18000b550
lea rdx, [0x1800691f4]
lea rcx, [rsp + 0x40]
call fcn.180053060
xor ecx, ecx
test eax, eax
sete cl
jmp 0x1800389b7
mov ecx, 1
mov dword [0x18009b424], ecx
test ecx, ecx
je 0x180038685
mov eax, 1
jmp 0x18003868c