Function at 0x140040bc0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor eax, eax
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x30], 0
mov word [rsp + 0x31], ax
mov byte [rsp + 0x33], al
call fcn.14005fe50
lea rbp, [0x1400ad4c0]
lea r9, [rsp + 0x40]
lea rdx, str.IRCServer
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x140040c61
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
jmp 0x140040c78
lea rdx, str.irc.itembuy.org
lea rcx, [rsp + 0x40]
mov r8d, 0x103
call fcn.140060000
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx + 7]
mov ecx, edi
call fcn.140007720
mov qword [0x1400ad420], rax
test rax, rax
je 0x140040dee
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14005fe50
mov rcx, qword [0x1400ad420]
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x40]
call fcn.140060000
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea r9, [rsp + 0x40]
lea rdx, str.DefaultChannel
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x140040d26
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
jmp 0x140040d3d
lea rdx, str.CNProxy
lea rcx, [rsp + 0x40]
mov r8d, 0x103
call fcn.140060000
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx + 7]
mov ecx, edi
call fcn.140007720
mov qword [0x1400ad428], rax
test rax, rax
je 0x140040dee
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14005fe50
mov rcx, qword [0x1400ad428]
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x40]
call fcn.140060000
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea r9, [rsp + 0x40]
lea rdx, str.DefaultUserName
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x140040e1e
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140040a90
test eax, eax
jne 0x140040e3e
call fcn.140007b50
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14005fe20
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rbx, [rcx + 0x1f]
mov ecx, ebx
call fcn.140007720
mov qword [0x1400ad430], rax
test rax, rax
je 0x140040dee
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.14005fe50
or rcx, 0xffffffffffffffff
xor edx, edx
mov dword [rsp + 0x30], edx
mov rdx, qword [0x1400ad428]
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 2
jbe 0x140040dee
movzx eax, byte [rdx + 1]
or rcx, 0xffffffffffffffff
xor esi, esi
mov byte [rsp + 0x30], al
movzx eax, byte [rdx + 2]
lea rdi, [rsp + 0x40]
mov byte [rsp + 0x31], al
xor eax, eax
mov byte [rsp + 0x32], 0
repne scasb al, byte [rdi]
mov r8d, esi
not rcx
dec rcx
test ecx, ecx
je 0x140040ef6
lea rdx, [rsp + 0x40]
nop
cmp byte [rdx], 0x2e
jne 0x140040ed8
mov byte [rdx], 0x5f
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
inc r8d
inc rdx
not rcx
dec rcx
cmp r8d, ecx
jb 0x140040ed0
mov rax, qword [0x1400abd00]
lea edx, [rbx - 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 [0x1400ad430]
mov qword [rsp + 0x20], rax
call fcn.14005ff3c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea r9, [rsp + 0x40]
lea rdx, str.MasterPassword
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x140040f8a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
jmp 0x140040fa1
lea rdx, str.master
lea rcx, [rsp + 0x40]
mov r8d, 0x103
call fcn.140060000
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx + 7]
mov ecx, edi
call fcn.140007720
mov qword [0x1400ad438], rax
test rax, rax
je 0x140040dee
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14005fe50
mov rcx, qword [0x1400ad438]
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x40]
call fcn.140060000
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea r9, [rsp + 0x40]
lea rdx, str.IRCServerPort
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x140041083
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
lea rcx, [rsp + 0x40]
call fcn.140004d50
test eax, eax
je 0x140040dee
lea rcx, [rsp + 0x40]
call fcn.140061730
mov dword [0x1400ad460], eax
test eax, eax
je 0x140040dee
cmp eax, 0xffff
jbe 0x14004108d
jmp 0x140040dee
mov dword [0x1400ad460], 0x1a0d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea r9, [rsp + 0x40]
lea rdx, str.ChannelKey
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x1400410f3
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
lea rdx, [rsp + 0x40]
jmp 0x140041118
xor eax, eax
lea rdx, str.barren
mov qword [0x1400ad440], rax
mov qword [0x1400ad448], rax
mov qword [0x1400ad450], rax
mov qword [0x1400ad458], rax
lea rcx, [0x1400ad440]
mov r8d, reloc.ODBC32.dll_SQLFreeHandle
call fcn.140060000
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.14005fe50
lea r9, [rsp + 0x40]
lea rdx, str.IsIRCEnable
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x1400411b8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x40]
mov edx, edx
call fcn.14000cac0
lea rdx, [0x14007795c]
lea rcx, [rsp + 0x40]
call fcn.1400605e0
test eax, eax
sete sil
mov dword [0x1400ad464], esi
test esi, esi
je 0x140040dee
mov eax, 1
jmp 0x140040df5
mov dword [0x1400ad464], 1
mov eax, 1
jmp 0x140040df5