Function at 0x1400e8790
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x50], 0
test r8d, r8d
je 0x1400e8a36
sub r8d, 1
je 0x1400e8970
cmp r8d, 1
jne 0x1400e883e
mov dword [rsp + 0x74], 0x40
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 0x40
lea r9d, [r8 + 0x3f]
lea r8, [rbp - 0x80]
mov edx, 0x1008
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400e88b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400e8870
lea rax, [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x1400e883e
call fcn.1401297e8
mov dword [rdi + 8], 0x80000000
mov qword [rdi], 0
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rsp + 0x58], 0xff
mov r8d, 0xff
cmp dword [rsp + 0x70], r8d
cmovg r8d, dword [rsp + 0x70]
mov edx, 0xff
lea rcx, [rsp + 0x70]
call fcn.1400ace50
mov r9d, dword [rsp + 0x74]
mov r8, qword [rsp + 0x78]
mov edx, 0x1008
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400e882b
mov ebx, 0xffffffff
mov r8d, ebx
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [0x1401a1e20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e8900
cmp ecx, ebx
je 0x1400e8914
mov ecx, ebx
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e8914
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call fcn.140049bf0
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14007d740
nop
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e8940
cmp ecx, 0xffffffff
je 0x1400e8954
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400e8954
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x20]
call fcn.140049bf0
nop
lea rax, [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x1400e884c
call fcn.1401297e8
jmp 0x1400e884c
mov r9d, 0xd
lea r8, [rbp]
lea edx, [r9 + 7]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400e883e
mov ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rbp]
lea rcx, [rsp + 0x48]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
lea rcx, [0x1401a1e20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e89d6
cmp ecx, ebx
je 0x1400e89ea
mov ecx, ebx
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e89ea
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14007d740
nop
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e8a1e
cmp ecx, 0xffffffff
je 0x1400e884c
mov rax, qword [rsp + 0x28]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400e884c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x28]
call fcn.140049bf0
jmp 0x1400e884c
mov r9d, 9
lea r8, [rbp]
lea edx, [r9 + 0xc]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400e883e
mov ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rbp]
lea rcx, [rsp + 0x38]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
lea rcx, [0x1401a1e20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e8a9c
cmp ecx, ebx
je 0x1400e8ab0
mov ecx, ebx
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400e8ab0
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x38]
call fcn.140049bf0
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14007d740
nop
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400e8ae4
cmp ecx, 0xffffffff
je 0x1400e884c
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400e884c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
jmp 0x1400e884c