Function at 0x14001ffd8
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r14, rcx
mov rbx, qword [rcx + 0x40]
lea rcx, str.languageList
call qword [sym.imp.DUI70.dll_StrToID]
xor r13d, r13d
test rbx, rbx
je 0x140020021
movzx edx, ax
mov rcx, rbx
call qword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
mov r12, rax
jmp 0x140020024
mov r12, r13
mov r8, qword [0x140054f08]
mov qword [rbp - 0x18], r8
mov rsi, qword [r8 + 0x248]
sub rsi, qword [r8 + 0x240]
sar rsi, 1
mov eax, r13d
mov dword [rbp + 0x48], eax
test r12, r12
je 0x140020369
cmp eax, esi
jae 0x140020369
mov rcx, qword [r8 + 0x240]
mov edx, eax
mov rax, qword [r8 + 0x248]
sub rax, rcx
sar rax, 1
cmp rdx, rax
movzx r15d, r13w
jae 0x14002007b
movzx r15d, word [rcx + rdx*2]
mov qword [rbp + 0x50], r13
lea r9, [rbp + 0x50]
xor r8d, r8d
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.DUI70.dll_public:_static_long_int___cdecl_DirectUI::Element::Create_unsigned_int__class_DirectUI::Element____ptr64__unsigned_long_int____ptr64__class_DirectUI::Element____ptr64____ptr64_]
mov edi, eax
test eax, eax
js 0x1400200aa
lea rdx, str.languageRow
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::SetClass_unsigned_short_int_const____ptr64____ptr64]
mov edi, eax
mov qword [rbp - 0x30], r13
test edi, edi
js 0x1400200e5
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov edx, r9d
xor ecx, ecx
call qword [sym.imp.DUI70.dll_public:_static_long_int___cdecl_DirectUI::FlowLayout::Create_bool__unsigned_int__unsigned_int__unsigned_int__class_DirectUI::Layout____ptr64____ptr64_]
mov edi, eax
test eax, eax
js 0x1400200e5
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::SetLayout_class_DirectUI::Layout____ptr64____ptr64]
mov edi, eax
mov qword [rbp - 0x28], r13
test edi, edi
js 0x1400201f4
mov r13, qword [rbp + 0x50]
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
add rax, 0x18
mov qword [rbp + 0x58], rax
movzx ebx, r15w
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 3]
mov edx, edi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140020138
mov edi, 0x8000ffff
jmp 0x14002014b
mov r9d, eax
mov r8d, ebx
lea rdx, [rbp + 0x58]
mov ecx, edi
call fcn.14001d3c8
mov edi, eax
mov r8d, 2
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x58]
call fcn.14001e314
nop
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.14000c454
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140020191
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
mov rbx, qword [rbp + 0x58]
test edi, edi
js 0x1400201bc
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov r9, r13
mov r8d, 1
lea rdx, str.languageIcon
mov rcx, rbx
call fcn.140020380
mov edi, eax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor r13d, r13d
sub eax, 1
jg 0x1400201e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
test edi, edi
js 0x1400201f4
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::Add_class_DirectUI::Element____ptr64____ptr64]
mov edi, eax
mov qword [rbp - 0x38], r13
test edi, edi
js 0x14002033e
mov r13, qword [rbp + 0x50]
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x60], rbx
movzx r15d, r15w
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 2]
mov edx, edi
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400202d2
mov edi, 0x8000ffff
xor r13d, r13d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002026e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
test edi, edi
js 0x14002033e
mov rbx, qword [rbp - 0x38]
mov rdx, rbx
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::Add_class_DirectUI::Element____ptr64____ptr64]
mov edi, eax
test eax, eax
js 0x14002033e
mov rax, qword [0x140054f08]
mov r9d, dword [rax + 0xe0]
mov rax, qword [r14 + 0x80]
cmp r15d, dword [rax + 0x15c]
je 0x1400202c9
mov ecx, r15d
call fcn.14001bd7c
cmp eax, r9d
jne 0x140020342
cmp qword [r14 + 0xa0], r13
jne 0x140020342
mov qword [r14 + 0xa0], rbx
jmp 0x140020342
mov r9d, eax
mov r8d, r15d
lea rdx, [rbp + 0x60]
mov ecx, edi
call fcn.14001d3c8
mov edi, eax
mov rbx, qword [rbp + 0x60]
test eax, eax
js 0x14002024a
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov r9, r13
mov r8d, 3
lea rdx, str.languageName
mov rcx, rbx
call fcn.140020380
mov edi, eax
xor r13d, r13d
test eax, eax
js 0x14002024d
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14002024d
mov edx, 0x100000
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::SetAccState_int____ptr64]
mov edi, eax
jmp 0x14002024d
mov qword [rbp + 0x50], r13
test edi, edi
js 0x140020355
mov rdx, qword [rbp + 0x50]
mov rcx, r12
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::Add_class_DirectUI::Element____ptr64____ptr64]
mov edi, eax
mov eax, dword [rbp + 0x48]
inc eax
mov dword [rbp + 0x48], eax
test edi, edi
mov r8, qword [rbp - 0x18]
jns 0x14002004f
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret