Function at 0x2100f96a0
Capabilities:
Get geographical location

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, qword [rsp + 0xb8]
mov rdi, rdx
mov rbx, r8
mov rsi, r9
call sym.__get_lcid_from_locale_char_const_
mov r13d, eax
cmp eax, 0xffffffff
je 0x2100f9770
test eax, eax
jne 0x2100f9780
lea rdx, [0x21029d5de]
mov rcx, r14
call sym.msys_2.0.dll_strcmp
test eax, eax
je 0x2100f9754
mov ecx, 0x100
call sym.malloc_1
mov r12, rax
test rax, rax
je 0x2100f9770
movdqu xmm0, xmmword [rdi]
mov rcx, r12
movups xmmword [rbx], xmm0
movdqu xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movdqu xmm2, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x20], xmm2
mov qword [rbx + 0x18], rcx
mov rdx, r14
call sym.msys_2.0.dll_stpcpy
mov rcx, r12
lea rdi, [rax + 1]
mov rdx, rdi
mov qword [rsp + 0x38], rdi
sub rdx, r12
call sym.realloc_1
test rax, rax
je 0x2100f9765
cmp r12, rax
jne 0x2100f99e9
mov qword [rsi], rax
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
call sym.free_1
nop dword [rax]
mov eax, 0xffffffff
jmp 0x2100f9754
mov ecx, 0x100
call sym.malloc_1
mov r12, rax
lea rdi, [rax + 0x100]
test rax, rax
je 0x2100f9770
mov qword [rsp + 0x38], r12
cmp r13d, 0x429
je 0x2100f9940
cmp r13d, 0x463
jne 0x2100f9868
mov qword [rbx + 0x20], r12
lea r13, [r12 + 8]
mov r9, rdi
mov r8, r12
movabs rax, 0x66c0000066b
sub r9, r13
mov rdx, r13
mov qword [rsp + 0x38], r13
mov qword [r12], rax
lea rax, [r12 + 4]
mov rcx, qword [rsp + 0xb0]
mov qword [rbx + 0x28], rax
mov dword [rsp + 0x20], 0
call sym.lc_wcstombs_int_____reent__char__wchar_t___mbstate_t___char__wchar_t_const__unsigned_long__bool_
mov rdx, qword [rsp + 0x38]
mov r8, qword [rbx + 0x28]
mov qword [rbx], r13
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
lea rbp, [rdx + rax + 1]
sub rdi, rbp
mov rdx, rbp
mov qword [rsp + 0x38], rbp
mov r9, rdi
call sym.lc_wcstombs_int_____reent__char__wchar_t___mbstate_t___char__wchar_t_const__unsigned_long__bool_
mov qword [rbx + 8], rbp
mov ecx, 0x463
lea r8, [rsp + 0x38]
mov edx, 0x10
add rax, 1
add qword [rsp + 0x38], rax
call sym.conv_grouping_unsigned_int__unsigned_int__char_
mov rcx, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
jmp 0x2100f971b
mov r9d, pe_nt_image_headers64
mov r8, r12
mov edx, 0xe
mov ecx, r13d
call sym.GetLocaleInfoW
mov qword [rbx + 0x20], r12
mov edx, 0xf
mov ecx, r13d
cdqe
mov r9d, 0x100
add rax, rax
lea rbp, [r12 + rax]
sub r9, rax
mov r8, rbp
shr r9, 1
mov qword [rsp + 0x38], rbp
call sym.GetLocaleInfoW
mov qword [rbx + 0x28], rbp
mov r8, qword [rbx + 0x20]
mov r9, rdi
cdqe
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
lea r15, [rbp + rax*2]
sub r9, r15
mov rdx, r15
mov qword [rsp + 0x38], r15
call sym.lc_wcstombs_int_____reent__char__wchar_t___mbstate_t___char__wchar_t_const__unsigned_long__bool_
mov rdx, qword [rsp + 0x38]
mov r8, qword [rbx + 0x28]
mov qword [rbx], r15
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
lea rbp, [rdx + rax + 1]
sub rdi, rbp
mov rdx, rbp
mov qword [rsp + 0x38], rbp
mov r9, rdi
call sym.lc_wcstombs_int_____reent__char__wchar_t___mbstate_t___char__wchar_t_const__unsigned_long__bool_
mov qword [rbx + 8], rbp
mov ecx, r13d
lea r8, [rsp + 0x38]
mov edx, 0x10
add rax, 1
add qword [rsp + 0x38], rax
call sym.conv_grouping_unsigned_int__unsigned_int__char_
mov rcx, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
jmp 0x2100f971b
mov qword [rbx + 0x20], r12
lea rbp, [r12 + 8]
mov r9, rdi
mov r8, r12
movabs rax, 0x2c0000002e
sub r9, rbp
mov rdx, rbp
mov qword [rsp + 0x38], rbp
mov qword [r12], rax
lea rax, [r12 + 4]
mov rcx, qword [rsp + 0xb0]
mov qword [rbx + 0x28], rax
mov dword [rsp + 0x20], 0
call sym.lc_wcstombs_int_____reent__char__wchar_t___mbstate_t___char__wchar_t_const__unsigned_long__bool_
mov rdx, qword [rsp + 0x38]
mov r8, qword [rbx + 0x28]
mov qword [rbx], rbp
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
lea r13, [rdx + rax + 1]
sub rdi, r13
mov rdx, r13
mov qword [rsp + 0x38], r13
mov r9, rdi
call sym.lc_wcstombs_int_____reent__char__wchar_t___mbstate_t___char__wchar_t_const__unsigned_long__bool_
mov qword [rbx + 8], r13
mov ecx, 0x429
lea r8, [rsp + 0x38]
mov edx, 0x10
add rax, 1
add qword [rsp + 0x38], rax
call sym.conv_grouping_unsigned_int__unsigned_int__char_
mov rcx, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
jmp 0x2100f971b
mov r8, rax
lea rcx, [rbx + 0x30]
sub r8, r12
mov rdx, qword [rbx]
cmp r12, rdx
ja 0x2100f9a06
cmp rdi, rdx
jbe 0x2100f9a06
add rdx, r8
mov qword [rbx], rdx
add rbx, 8
cmp rcx, rbx
jne 0x2100f99f3
jmp 0x2100f974c