Function at 0x1404d526e
Capabilities:
Get geographical location

Disassembly:
push rbp
cwde
sal bp, cl
push rbx
sub bp, 0x4f63
xor ah, dl
push rsi
ror ax, 0x82
bt ebp, r8d
push rdi
push r12
xadd ebp, ebp
movsx ebp, di
push r14
movsx bp, sil
push r15
xor ax, bp
rcl r14, cl
mov rbp, rsp
add dil, r15b
sub rsp, 0x40
shld rdi, r8, 0xb9
and r15b, 0xef
mov rax, qword [0x1400b7288]
xor rax, rsp
movsxd rdi, r15d
xchg rdi, r14
not r14b
mov qword [rbp - 0x10], rax
movsxd rdi, r9d
mov rdi, r8
mov r14w, 0x3906
bswap r15w
mov r15, rdx
mov r14, rbp
mov r14, rcx
jmp 0x1404d52e4
call fcn.1404c863e
mov rsi, rax
jmp 0x1404d52f1
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
call fcn.1404c863e
lea rcx, [rbp - 0x20]
mov rbx, 0x3cbd011c
cmp r11w, 0x4607
setb bl
sub r12d, r12d
lea rbx, [rsi + 0xa0]
test r14w, 0x70a5
stc
mov qword [rax + 0x3a0], rcx
lea rax, [r14 + 0x80]
cmc
test r10w, ax
mov qword [rsi + 0x98], r14
cmp ax, 0x627b
mov qword [rbx], rax
test rax, rax
jmp 0x1404d534d
je 0x1404d538c
cmp word [rax], r12w
jmp 0x1404d535c
je 0x1404d538c
mov edx, dword [0x1400c6a60]
lea rcx, [0x1400c68f0]
cmove r8d, r12d
mov r8d, 0x4db10f49
dec edx
movzx r8w, r11b
movzx r8d, r12w
mov r8, rbx
call fcn.1404d5703
mov dword [rbp - 0x20], r12d
and ax, 0x1888
mov rax, qword [rsi + 0x98]
test rax, rax
je 0x1404d547d
cmp word [rax], r12w
jmp 0x1404d53ad
je 0x1404d547d
mov rax, qword [rbx]
test ax, di
test r13d, 0x38841488
test rax, rax
je 0x1404d53e6
cmp word [rax], r12w
je 0x1404d53e6
lea rcx, [rbp - 0x20]
jmp 0x1404d53dc
call fcn.1404d583e
jmp 0x1404d53ef
lea rcx, [rbp - 0x20]
call fcn.1404d5ec5
cmp dword [rbp - 0x20], r12d
jmp 0x1404d53f8
jne 0x1404d553f
mov edx, dword [0x1400c68e0]
movsx r8d, r10w
lea r8, [rsi + 0x98]
mov rcx, 0x45182eda
dec edx
lea rcx, [0x1400c64d0]
jmp 0x1404d5424
call fcn.1404d5703
test al, al
je 0x1404d5535
mov rax, qword [rbx]
test r10w, 0x7f28
test rax, rax
jmp 0x1404d5442
je 0x1404d546a
cmp word [rax], r12w
jmp 0x1404d5451
je 0x1404d546a
lea rcx, [rbp - 0x20]
jmp 0x1404d5460
call fcn.1404d583e
jmp 0x1404d5535
lea rcx, [rbp - 0x20]
jmp 0x1404d5473
call fcn.1404d5ec5
jmp 0x1404d5535
mov rax, qword [rbx]
test rax, rax
jmp 0x1404d5488
je 0x1404d5516
cmp word [rax], r12w
jmp 0x1404d5497
je 0x1404d5516
call fcn.1404c863e
mov rdx, rax
cmp r12b, 0x54
cmp rcx, r12
or rcx, 0xffffffffffffffff
jmp 0x1404d54b5
mov rax, qword [rax + 0xa0]
inc rcx
cmp word [rax + rcx*2], r12w
jmp 0x1404d54c9
jne 0x1404d54bc
cmp rcx, 3
mov al, 0xf1
cmovs cx, r11w
movsx rax, r12w
mov eax, r12d
mov al, 0xd0
lea rcx, [0x1400ac1c0]
sete al
mov dword [rdx + 0xb4], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
test byte [rbp - 0x20], 4
jmp 0x1404d5507
jne 0x1404d5535
mov dword [rbp - 0x20], r12d
jmp 0x1404d5535
mov dword [rbp - 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x1c], eax
jmp 0x1404d5535
cmp dword [rbp - 0x20], r12d
je 0x1404d56ba
lea rax, [r14 + 0x100]
not dl
sub dh, 0xa8
neg r14
not edx
movzx edx, r8w
setns dl
lea rdx, [rbp - 0x20]
jmp 0x1404d5560
sbb rcx, rcx
test edx, ecx
cmp ebp, r11d
stc
and rcx, rax
jmp 0x1404d5571
call fcn.1404d63fc
mov ebx, eax
cmc
cmp r14w, r12w
test eax, eax
je 0x1404d56ba
movzx ecx, bx
jmp 0x1404d558d
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jmp 0x1404d559a
je 0x1404d56ba
mov ecx, dword [rbp - 0x1c]
jmp 0x1404d55ac
mov edx, 1
jmp 0x1404d55b6
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jmp 0x1404d55c3
je 0x1404d56ba
test r15, r15
je 0x1404d55da
mov dword [r15], ebx
jmp 0x1404d55da
mov ecx, dword [rbp - 0x1c]
shr rdx, 0xb7
rcr dh, 0x74
lea rdx, [rsi + 0x2f0]
adc r8, r15
sub r9d, r9d
setle r8b
movzx r8w, r9b
mov r8, 0x6158420a
lea esi, [r9 + 0x55]
mov r8b, 0xfa
mov r8d, esi
jmp 0x1404d5610
call fcn.1404ca163
test rdi, rdi
je 0x1404d56ab
mov ecx, dword [rbp - 0x1c]
lea rdx, [rdi + 0x120]
sub r9d, r9d
movsxd r8, ecx
mov r8b, r9b
movsx r8, di
mov r8d, esi
call fcn.1404ca163
mov ecx, dword [rbp - 0x1c]
mov esi, 0x40
mov r9d, esi
movzx edx, bp
mov r8, rdi
mov edx, 0x1001
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1404d56ba
mov ecx, dword [rbp - 0x18]
lea r8, [rdi + 0x80]
mov r9d, esi
cwd
mov edx, 0x1002
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jmp 0x1404d5682
je 0x1404d56ba
lea rdx, [rdi + 0x100]
mov ecx, ebx
lea r9d, [rsi - 0x36]
bswap r8d
jmp 0x1404d569d
lea r8d, [rsi - 0x30]
jmp 0x1404d56a6
call fcn.1404e2fd7
mov eax, 1
jmp 0x1404d56b5
jmp 0x1404d56c2
sub eax, eax
test rax, 0x1a060f0c
mov rcx, qword [rbp - 0x10]
stc
xor rcx, rsp
call fcn.14049eb1e
add rsp, 0x40
pop r15
cmovne esi, r13d
movzx rsi, sp
movsx r12d, r14w
pop r14
bswap ebx
xchg r12w, bx
movsx r12w, r14b
pop r12
movzx esi, r8w
movsxd rdi, r10d
pop rdi
movsx esi, r10w
pop rsi
pop rbx
not bpl
pop rbp
ret