Function at 0x1404d523d
Capabilities:
Get geographical location

Disassembly:
push rbp
test r13b, bl
shr ebp, cl
push rbx
push rsi
bts eax, r15d
and ax, dx
push rdi
cwde
btr rax, rsp
push r12
bts eax, r14d
push r14
inc ax
push r15
rcl r15w, cl
mov rbp, rsp
sub r14d, 0x6213545d
and r15b, r12b
inc r15w
sub rsp, 0x40
dec r14w
mov rax, qword [0x1400b7288]
xor rax, rsp
movsx r15, cx
movzx edi, r8w
mov qword [rbp - 0x10], rax
not di
mov rdi, r8
cmovge r15, rcx
movzx r14d, bx
jmp 0x1404d52a6
mov r15, rdx
movsxd r14, r11d
movsx r14, r14w
mov r14, rcx
jmp 0x1404d52b8
call fcn.1404c85cc
mov rsi, rax
stc
clc
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
jmp 0x1404d52d0
call fcn.1404c85cc
lea rcx, [rbp - 0x20]
movsx rbx, r8w
rcl bh, cl
bt bx, 7
xor r12d, r12d
lea rbx, [rsi + 0xa0]
clc
test r8d, 0x3369705b
mov qword [rax + 0x3a0], rcx
lea rax, [r14 + 0x80]
cmp r10b, 0x27
mov qword [rsi + 0x98], r14
cmc
mov qword [rbx], rax
jmp 0x1404d531c
test rax, rax
jmp 0x1404d5324
je 0x1404d5369
cmp word [rax], r12w
jmp 0x1404d5333
je 0x1404d5369
mov edx, dword [0x1400c6a60]
mov cl, r8b
movzx r8, r11w
lea rcx, [0x1400c68f0]
movzx r8, si
dec edx
movsx r8w, dil
movzx r8, r12w
mov r8, rbx
jmp 0x1404d5364
call fcn.1404d5701
mov dword [rbp - 0x20], r12d
bswap ax
cmc
mov rax, qword [rsi + 0x98]
test dl, 0xf2
stc
cmp spl, 0x74
test rax, rax
jmp 0x1404d5388
je 0x1404d546e
cmp word [rax], r12w
jmp 0x1404d5397
je 0x1404d546e
mov rax, qword [rbx]
test rax, rax
je 0x1404d53cb
cmp word [rax], r12w
jmp 0x1404d53b2
je 0x1404d53cb
lea rcx, [rbp - 0x20]
jmp 0x1404d53c1
call fcn.1404d5857
jmp 0x1404d53d4
lea rcx, [rbp - 0x20]
call fcn.1404d5eb8
cmp dword [rbp - 0x20], r12d
jmp 0x1404d53dd
jne 0x1404d5525
mov edx, dword [0x1400c68e0]
dec ecx
bswap rcx
lea r8, [rsi + 0x98]
dec ecx
cmovae cx, r10w
dec edx
not ch
lea rcx, [0x1400c64d0]
jmp 0x1404d540c
call fcn.1404d5701
test al, al
jmp 0x1404d5418
je 0x1404d5516
mov rax, qword [rbx]
clc
test r8w, 0x2d8a
cmp r14b, dil
test rax, rax
jmp 0x1404d5433
je 0x1404d545b
cmp word [rax], r12w
jmp 0x1404d5442
je 0x1404d545b
lea rcx, [rbp - 0x20]
jmp 0x1404d5451
call fcn.1404d5857
jmp 0x1404d5516
lea rcx, [rbp - 0x20]
jmp 0x1404d5464
call fcn.1404d5eb8
jmp 0x1404d5516
mov rax, qword [rbx]
jmp 0x1404d5476
test rax, rax
jmp 0x1404d547e
je 0x1404d54f8
cmp word [rax], r12w
jmp 0x1404d548d
je 0x1404d54f8
call fcn.1404c85cc
mov rdx, rax
stc
or rcx, 0xffffffffffffffff
jmp 0x1404d54a5
mov rax, qword [rax + 0xa0]
inc rcx
cmc
cmp word [rax + rcx*2], r12w
jne 0x1404d54ac
cmp rcx, 3
mov eax, r12d
lea rcx, [0x1400ac1c0]
sete al
mov dword [rdx + 0xb4], eax
movsx edx, cx
mov edx, 1
jmp 0x1404d54df
call qword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
test byte [rbp - 0x20], 4
jne 0x1404d5516
mov dword [rbp - 0x20], r12d
jmp 0x1404d5516
mov dword [rbp - 0x20], 0x104
jmp 0x1404d5504
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x1c], eax
cmc
jmp 0x1404d5516
cmp dword [rbp - 0x20], r12d
jmp 0x1404d551f
je 0x1404d56b5
lea rax, [r14 + 0x100]
neg r14
not dh
setb dh
cwd
lea rdx, [rbp - 0x20]
jmp 0x1404d553f
sbb rcx, rcx
clc
and rcx, rax
jmp 0x1404d554b
call fcn.1404d63bb
mov ebx, eax
test eax, eax
jmp 0x1404d5559
je 0x1404d56b5
movzx ecx, bx
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jmp 0x1404d556f
je 0x1404d56b5
mov ecx, dword [rbp - 0x1c]
movzx dx, sil
movzx rdx, bp
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jmp 0x1404d5593
je 0x1404d56b5
test r15, r15
je 0x1404d55a5
mov dword [r15], ebx
mov ecx, dword [rbp - 0x1c]
sal dx, cl
xadd r8d, edx
lea rdx, [rsi + 0x2f0]
movzx rsi, sp
sub sil, 0x7c
xor r9d, r9d
movzx r8, r9w
movzx r8d, cx
movsx r8, bp
lea esi, [r9 + 0x55]
mov r8d, esi
call fcn.1404ca138
test rdi, rdi
jmp 0x1404d55e1
je 0x1404d56a6
mov ecx, dword [rbp - 0x1c]
cmc
sar r8b, 0xcb
lea rdx, [rdi + 0x120]
sub r9d, r9d
not r8b
jmp 0x1404d5605
mov r8d, esi
jmp 0x1404d560d
call fcn.1404ca138
mov ecx, dword [rbp - 0x1c]
mov r9b, r15b
mov esi, 0x40
cwd
mov r9d, esi
mov r8, rdi
movsx rdx, cx
setl dh
mov edx, 0x1001
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1404d56b5
mov ecx, dword [rbp - 0x18]
movsxd rdx, esi
movzx r9d, ax
lea r8, [rdi + 0x80]
setnp dl
cwd
mov r9d, esi
mov rdx, r15
cdq
movzx edx, si
mov edx, 0x1002
jmp 0x1404d5669
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jmp 0x1404d5676
je 0x1404d56b5
lea rdx, [rdi + 0x100]
cmovnp r8, r14
mov ecx, ebx
bswap r8w
lea r9d, [rsi - 0x36]
bswap r8w
movzx r8w, r10b
xchg r8d, r8d
lea r8d, [rsi - 0x30]
call fcn.1404e2fd9
mov eax, 1
jmp 0x1404d56b0
jmp 0x1404d56c1
xor eax, eax
adc cl, bh
bt rcx, 0xaf
sar cx, cl
mov rcx, qword [rbp - 0x10]
clc
xor rcx, rsp
jmp 0x1404d56ce
call fcn.14049e6a7
add rsp, 0x40
pop r15
pop r14
bswap rbx
movzx bp, r13b
pop r12
mov rbp, 0x7ec56eef
pop rdi
movsxd rsi, ebp
xchg bl, bh
mov bp, 0x1eb9
pop rsi
not ebp
pop rbx
pop rbp
jmp 0x1404d5700
ret