Function at 0x5140f0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x8676ea
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x2d0]
lea edi, [ebp + 0x2cc]
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x514151
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, edi
call fcn.007d8636
jmp 0x514171
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x514160
mov ecx, dword [edi + 4]
push 0x400
push 0
push ecx
call esi
test eax, eax
jne 0x514160
mov esi, 2
cmp dword [ebp + 0x2e8], esi
jne 0x514506
mov eax, dword [ebp + 0x2bc]
mov dword [esp + 0x20], 0x9c4
cmp eax, 1
je 0x5144f7
cmp eax, 3
jne 0x5141b3
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp dword [eax + 0x9b8], 1
je 0x5144f7
cmp dword [ebp + 0x2bc], esi
jne 0x514506
mov eax, dword [ebp + 0x144]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
test eax, eax
js 0x514506
mov eax, dword [ebp + 0x144]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
test eax, eax
js 0x514506
xor esi, esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x2c], ebx
jbe 0x514506
mov eax, dword [ebp + 0x144]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push esi
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x5144e6
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp ecx, dword [esp + 0x30]
jne 0x51423f
mov edi, 0x1000
cmp esi, dword [esp + 0x44]
jne 0x514248
or edi, 8
lea ecx, [esp + 0x14]
call fcn.005345e0
cmp dword [esp + 0x28], 0
mov dword [esp + 0x84], 0
je 0x5142ba
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x100
or eax, ecx
jge 0x51428d
push 0x100
lea ecx, [esp + 0x18]
call fcn.004a8a90
mov edx, dword [esp + 0x14]
push 0x100
push edx
mov edx, dword [esp + 0x30]
push 0x1001
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
dec eax
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and eax, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004a8550
jmp 0x5142d0
lea edx, [esi + 1]
push edx
lea eax, [esp + 0x18]
push 0x8159
push eax
call fcn.004b1ce0
add esp, 0xc
mov eax, dword [ebp + 0x144]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push esi
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
js 0x51448c
mov eax, dword [esp + 0x60]
dec eax
cmp eax, 3
ja case.default.0x5142fa
jmp dword [eax*4 + 0x514528]
push 0x40d8d8
lea ecx, [esp + 0x18]
call fcn.004aaf10
jmp case.default.0x5142fa
push 0x40d8ac
lea ecx, [esp + 0x18]
call fcn.004aaf10
jmp case.default.0x5142fa
push 0x815b
lea ecx, [esp + 0x40]
call fcn.004a8f10
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 1
call fcn.004a9f20
lea ecx, [esp + 0x3c]
jmp 0x514377
push 0x815c
lea ecx, [esp + 0x4c]
call fcn.004a8f10
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.004a9f20
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 0
call fcn.004a8c20
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.0050b0b0
push eax
lea ecx, [esp + 0x20]
call fcn.004a8f10
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
mov byte [esp + 0x84], 3
je 0x51447b
cmp byte [esp + 0x6d], 1
jbe 0x5143d2
push 0x818e
lea ecx, [esp + 0x44]
call fcn.004a8f10
mov byte [esp + 0x84], 4
or ebx, 1
jmp 0x5143ee
push 0x818d
lea ecx, [esp + 0x3c]
call fcn.004a8f10
mov dword [esp + 0x84], 5
or ebx, 2
mov esi, dword [eax]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x1c], ebx
call fcn.004a9b50
add eax, 0x10
mov dword [esp + 0x38], eax
movzx ecx, byte [esp + 0x71]
movzx edx, byte [esp + 0x70]
push esi
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push 0x80ff
push eax
mov dword [esp + 0xa8], 6
call fcn.004b1ce0
add esp, 0x24
lea ecx, [esp + 0x34]
call fcn.004a8c20
test bl, 2
je 0x51445b
and ebx, 0xfffffffd
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call fcn.004a8c20
mov dword [esp + 0x84], 3
test bl, 1
je 0x51447b
and ebx, 0xfffffffe
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebx
call fcn.004a8c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0
call fcn.004a8c20
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x1c]
call fcn.004aa070
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x2d0]
push esi
push ecx
push edi
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
inc dword [esp + 0x20]
lea eax, [esi - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5144e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
inc esi
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x2c]
jb 0x514212
jmp 0x514506
push 1
push 0x9c4
push edi
mov ecx, ebp
call fcn.005073f0
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0080262b
add esp, 0x74
ret