Function at 0x1401597b0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rsi, rdx
xor r14d, r14d
mov dword [rbp - 0x49], r14d
mov qword [rdx], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], recv
mov byte [rdx], r14b
mov dword [rbp - 0x49], 1
lea r15, [r14 - 1]
cmp byte [0x1405d8020], r14b
je 0x140159a5a
lea rbx, [0x1405d8020]
mov r8, r15
inc r8
cmp byte [rbx + r8], 0
jne 0x140159811
mov rdx, rbx
mov rcx, rsi
call fcn.1400f6dc0
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140159856
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x14015984e
mov rax, qword [rsi]
mov word [rax + rcx], 0x2c
jmp 0x140159875
mov qword [rsp + 0x20], 1
lea r9, [0x14048c658]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.1400f8cc0
mov r8d, 0x7fffffff
lea rdx, [0x14048c65c]
mov rcx, rbx
call fcn.1402a9930
test eax, eax
je 0x140159a5a
mov r8d, 0x7fffffff
lea rdx, [0x14048c664]
mov rcx, rbx
call fcn.1402a9930
test eax, eax
je 0x140159a5a
mov r8d, 0x7fffffff
lea rdx, str.zh_CH
mov rcx, rbx
call fcn.1402a9930
test eax, eax
je 0x140159a5a
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], recv
mov byte [rbp - 0x41], 0
mov qword [rbp - 0x31], 2
movzx eax, word [0x1405d8020]
mov word [rbp - 0x41], ax
mov byte [rbp - 0x3f], 0
mov rcx, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x29]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140159934
lea rax, [rcx + 1]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x41]
mov word [rax + rcx], 0x2c
lea rax, [rbp - 0x41]
jmp 0x140159954
mov qword [rsp + 0x20], 1
lea r9, [0x14048c658]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x41]
call fcn.1400f8cc0
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov ebx, 3
mov dword [rbp - 0x49], ebx
lea rdx, [rbp - 0x69]
movq rcx, xmm0
mov qword [rbp - 0x69], rcx
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
mov qword [rbp - 0x51], rax
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
mov qword [rbp - 0x59], r8
mov rcx, rsi
call fcn.14010b180
and ebx, 0xfffffffd
mov dword [rbp - 0x49], ebx
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x1401599ff
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401599fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140159db9
call fcn.14031dc44
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], recv
mov byte [rbp - 0x69], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140159a4a
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140159a45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140159dbf
call fcn.14031dc44
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], recv
mov byte [rbp - 0x41], 0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
test ax, ax
je 0x140159d00
movzx edi, ax
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 1]
lea edx, [r9 + 0x49]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
setg bl
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x41]
lea edx, [r9 + 0x4a]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
setg al
or bl, al
je 0x140159d00
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], recv
mov byte [rbp - 0x69], 0
lea rax, [rbp - 1]
mov r8, r15
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140159ad0
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x69]
call fcn.1400f6dc0
nop
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], recv
mov byte [rbp - 0x21], 0
lea rax, [rbp - 0x41]
mov r8, r15
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140159b10
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.1400f6dc0
nop
lea r8, [rbp - 0x21]
lea rdx, [0x14048c674]
lea rcx, [rbp + 0xf]
call fcn.140151b80
mov r9, rax
mov rdi, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140159b4d
mov r9, qword [rax]
mov r12, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
sub rax, r12
cmp rdi, rax
ja 0x140159b8f
lea rax, [rdi + r12]
mov qword [rbp - 0x59], rax
lea rbx, [rbp - 0x69]
cmp rcx, 0x10
cmovae rbx, qword [rbp - 0x69]
lea rcx, [rbx + r12]
mov r8, rdi
mov rdx, r9
call fcn.140320ff0
lea rax, [rdi + rbx]
mov byte [rax + r12], 0
jmp 0x140159ba4
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.1400f8cc0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140159bdf
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140159bda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140159dc5
call fcn.14031dc44
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], recv
mov byte [rbp + 0xf], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x140159c2a
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140159c25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140159dcb
call fcn.14031dc44
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], recv
mov byte [rbp - 0x21], 0
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rdx, qword [rbp - 0x69]
nop dword [rax + rax]
inc r15
cmp byte [rdx + r15], 0
jne 0x140159c50
mov r8, r15
mov rcx, rsi
call fcn.14010b180
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140159c95
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140159c8d
mov rax, qword [rsi]
mov word [rax + rcx], 0x2c
jmp 0x140159cb5
mov qword [rsp + 0x20], 1
lea r9, [0x14048c658]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.1400f8cc0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140159cf0
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140159ceb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140159db3
call fcn.14031dc44
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], recv
mov byte [rbp - 0x69], 0
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 8
jb 0x140159d3d
lea rax, [rcx + 8]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140159d28
mov rax, qword [rsi]
movabs rdx, 0x6e652c53552d6e65
mov qword [rax + rcx], rdx
mov byte [rax + rcx + 8], 0
jmp 0x140159d5c
mov qword [rsp + 0x20], 8
lea r9, str.en_US_en
xor r8d, r8d
lea edx, [r8 + 8]
mov rcx, rsi
call fcn.1400f8cc0
cmp qword [rsi + 0x10], 0
jbe 0x140159d94
mov rax, rsi
mov rcx, qword [rsi + 0x18]
cmp rcx, 0x10
jb 0x140159d73
mov rax, qword [rsi]
cmp byte [rax + r14], 0x5f
jne 0x140159d8b
mov rax, rsi
cmp rcx, 0x10
jb 0x140159d86
mov rax, qword [rsi]
mov byte [rax + r14], 0x2d
inc r14
cmp r14, qword [rsi + 0x10]
jb 0x140159d63
mov rax, rsi
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14032c23c
nop
call fcn.14032c23c
nop
call fcn.14032c23c
nop
call fcn.14032c23c
nop
call fcn.14032c23c
int3