Function at 0x140076e20
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x368], rbx
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov edi, r8d
mov r13, rdx
mov r12, rcx
mov qword [rbp - 0x10], rdx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
lea rbx, [0x140dd80a8]
mov qword [rsp + 0x30], rbx
lock inc dword [0x140dd80a8]
mov rcx, qword [rcx]
cmp dword [rcx + 4], r15d
je 0x1400776e1
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
jle 0x1400776e1
cmp eax, 0x5265c00
jge 0x1400776e1
mov r14d, 1
cmp r8d, r14d
jne 0x14007715a
add rcx, 4
mov r8d, r14d
lea rdx, [rbp - 0x78]
call fcn.140076920
mov r11, rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov qword [r11], rcx
mov rcx, qword [rbp - 0x78]
or esi, 0xffffffff
lock dec dword [rcx]
jne 0x140076eef
mov rcx, qword [rbp - 0x78]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
jne 0x140076f17
mov qword [r13], rbx
lock inc dword [0x140dd80a8]
mov dword [rsp + 0x38], r14d
mov rcx, qword [rsp + 0x30]
lock dec dword [rcx]
jmp 0x1400776ff
mov ecx, dword [rax]
cmp ecx, r14d
jne 0x140076f2d
mov edx, dword [rax + 8]
inc edx
mov rcx, qword [rsp + 0x30]
cmp edx, dword [rcx + 4]
jle 0x140076f48
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov ecx, 0x54
mov word [rax + rdx*2], cx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rcx, qword [r12]
add rcx, 8
mov r8d, r14d
lea rdx, [rsp + 0x78]
call fcn.140073340
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rsp + 0x78]
lock dec dword [rax]
jne 0x140076fab
mov rcx, qword [rsp + 0x78]
call fcn.14000ade0
mov rdx, qword [r12]
mov ecx, dword [rdx + 0xc]
sub ecx, 2
je 0x14007713e
dec ecx
jne 0x1400776c3
mov edi, esi
cmp dword [rdx + 0x10], ecx
cmovge edi, r14d
mov eax, 0x30
mov word [rsp + 0x3c], ax
mov word [rsp + 0x3e], ax
mov ebx, 0x20
mov word [rsp + 0x40], bx
mov ebx, 0x2d
mov eax, 0x2b
cmp edi, 1
cmove ebx, eax
mov r8d, esi
lea rdx, [0x140d898d0]
lea rcx, [rbp - 0x68]
call fcn.14000c980
nop
movzx r8d, bl
mov word [rsp + 0x58], r8w
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.14000e0f0
mov r11, rax
mov rcx, qword [r12]
mov r9d, dword [rcx + 0x10]
imul r9d, edi
mov eax, 0x91a2b3c5
imul r9d
add edx, r9d
sar edx, 0xb
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rax, [rsp + 0x3e]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa
mov r9d, 2
lea rdx, [rsp + 0x68]
mov rcx, r11
call fcn.1400201f0
mov r11, rax
mov rcx, qword [r12]
mov r8d, dword [rcx + 0x10]
mov eax, 0x88888889
imul r8d
lea r10d, [r8 + rdx]
sar r10d, 5
mov ecx, r10d
shr ecx, 0x1f
add r10d, ecx
mov eax, 0x88888889
imul r10d
add edx, r10d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x3c
sub r10d, edx
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa
mov r9d, 2
mov r8d, r10d
lea rdx, [rbp - 0x30]
mov rcx, r11
call fcn.1400201f0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x30]
lock dec dword [rax]
jne 0x140077100
mov rcx, qword [rbp - 0x30]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
jne 0x140077115
mov rcx, qword [rsp + 0x68]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x38]
lock dec dword [rax]
jne 0x140077128
mov rcx, qword [rbp - 0x38]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x68]
lock dec dword [rax]
jne 0x1400776c3
mov rcx, qword [rbp - 0x68]
jmp 0x1400776be
mov eax, 0x5a
mov word [rsp + 0x4c], ax
movzx edx, ax
lea rcx, [rsp + 0x30]
call fcn.14000b2a0
jmp 0x1400776c3
test r8d, r8d
jne 0x1400775e0
mov r9d, 0xff
lea r8, [rbp]
mov edx, 0x22
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or esi, 0xffffffff
mov r8d, esi
lea rdx, [rbp]
lea rcx, [rsp + 0x60]
call fcn.14000ed80
nop
xor edx, edx
lea r8d, [rsi + 0xb]
lea rcx, [rsp + 0x60]
call fcn.140008520
dec eax
mov rax, qword [r12]
mov ecx, dword [rax + 4]
mov eax, 0x24924925
je 0x140077345
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
sub ecx, eax
lea edx, [rcx + 1]
lea rcx, [rbp - 0x20]
call fcn.140072ae0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rax], rdx
mov rax, qword [rbp - 0x20]
lock dec dword [rax]
jne 0x1400771f6
mov rcx, qword [rbp - 0x20]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
cmp ecx, 1
jne 0x140077211
mov ecx, dword [rax + 8]
inc ecx
cmp ecx, dword [rax + 4]
jle 0x14007722c
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov ebx, 0x20
mov word [rcx + rdx*2], bx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rax, qword [r12]
xor r9d, r9d
lea r8, [rsp + 0x44]
xor edx, edx
mov ecx, dword [rax + 4]
call fcn.140072490
mov edx, dword [rsp + 0x44]
lea rcx, [rbp - 0x58]
call fcn.140072ab0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x58]
lock dec dword [rax]
jne 0x14007729b
mov rcx, qword [rbp - 0x58]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
cmp ecx, 1
jne 0x1400772b6
mov ecx, dword [rax + 8]
inc ecx
cmp ecx, dword [rax + 4]
jle 0x1400772d1
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], bx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rax, qword [r12]
lea r9, [rsp + 0x5c]
xor r8d, r8d
xor edx, edx
mov ecx, dword [rax + 4]
call fcn.140072490
mov r8d, 0xa
mov edx, dword [rsp + 0x5c]
lea rcx, [rbp - 0x28]
call fcn.140010130
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x28]
lock dec dword [rax]
jne 0x14007748f
mov rcx, qword [rbp - 0x28]
jmp 0x14007748a
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
sub ecx, eax
lea edx, [rcx + 1]
lea rcx, [rbp - 0x48]
call fcn.140072ae0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rax], rdx
mov rax, qword [rbp - 0x48]
lock dec dword [rax]
jne 0x140077385
mov rcx, qword [rbp - 0x48]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
cmp ecx, 1
jne 0x1400773a0
mov ecx, dword [rax + 8]
inc ecx
cmp ecx, dword [rax + 4]
jle 0x1400773bb
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov ebx, 0x20
mov word [rcx + rdx*2], bx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rax, qword [r12]
lea r9, [rsp + 0x54]
xor r8d, r8d
xor edx, edx
mov ecx, dword [rax + 4]
call fcn.140072490
lea r8d, [rbx - 0x16]
mov edx, dword [rsp + 0x54]
lea rcx, [rsp + 0x70]
call fcn.140010130
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rsp + 0x70]
lock dec dword [rax]
jne 0x140077431
mov rcx, qword [rsp + 0x70]
call fcn.14000ade0
lea rax, [0x140d898c8]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x30]
call fcn.14000b1f0
mov r11, qword [r12]
xor r9d, r9d
lea r8, [rsp + 0x48]
xor edx, edx
mov ecx, dword [r11 + 4]
call fcn.140072490
mov edx, dword [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140072ab0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x80]
lock dec dword [rax]
jne 0x14007748f
mov rcx, qword [rbp - 0x80]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
cmp ecx, 1
jne 0x1400774aa
mov ecx, dword [rax + 8]
inc ecx
cmp ecx, dword [rax + 4]
jle 0x1400774c5
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], bx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rcx, qword [r12]
add rcx, 8
xor r8d, r8d
lea rdx, [rbp - 0x70]
call fcn.140073340
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x70]
lock dec dword [rax]
jne 0x140077520
mov rcx, qword [rbp - 0x70]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
cmp ecx, 1
jne 0x14007753b
mov ecx, dword [rax + 8]
inc ecx
cmp ecx, dword [rax + 4]
jle 0x140077556
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], bx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rax, qword [r12]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov ecx, dword [rax + 4]
call fcn.140072490
mov r8d, 0xa
mov edx, dword [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140010130
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x60]
lock dec dword [rax]
jne 0x1400775c8
mov rcx, qword [rbp - 0x60]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x60]
lock dec dword [rax]
jne 0x1400776c3
mov rcx, qword [rsp + 0x60]
jmp 0x1400776be
add rcx, 4
lea rdx, [rbp - 0x50]
call fcn.140076920
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x50]
or esi, 0xffffffff
lock dec dword [rcx]
jne 0x140077612
mov rcx, qword [rbp - 0x50]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
jne 0x140077632
mov qword [r13], rbx
lock inc dword [0x140dd80a8]
mov dword [rsp + 0x38], r14d
jmp 0x1400776f7
mov ecx, dword [rax]
cmp ecx, r14d
jne 0x140077648
mov edx, dword [rax + 8]
inc edx
mov rcx, qword [rsp + 0x30]
cmp edx, dword [rcx + 4]
jle 0x140077663
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000aeb0
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov ebx, 0x20
mov word [rax + rdx*2], bx
mov rax, qword [rsp + 0x30]
inc dword [rax + 8]
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov word [rcx + rdx*2], r15w
mov rcx, qword [r12]
add rcx, 8
mov r8d, edi
lea rdx, [rbp - 0x40]
call fcn.140073340
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b110
nop
mov rax, qword [rbp - 0x40]
lock dec dword [rax]
jne 0x1400776c3
mov rcx, qword [rbp - 0x40]
call fcn.14000ade0
mov rax, qword [rsp + 0x30]
mov qword [r13], rax
lock inc dword [rax]
mov dword [rsp + 0x38], r14d
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], esi
dec esi
jmp 0x1400776ff
mov rax, qword [rsp + 0x30]
mov qword [rdx], rax
lock inc dword [rax]
mov r14d, 1
mov dword [rsp + 0x38], r14d
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x14007770b
mov rcx, qword [rsp + 0x30]
call fcn.14000ade0
mov rax, r13
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400ac900
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret