Function at 0x516fa0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56e110
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
mov esi, dword [esp + 0x144]
push edi
mov edi, dword [esp + 0x14c]
push edi
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x51726b
push 0x403
push edi
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov byte [esp + 0x140], 3
mov dword [esp + 0x28], ecx
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x140], 4
cmp eax, ebx
jne 0x51708d
cmp dword [0x5cb044], ebx
jne 0x51708d
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x140], 5
je 0x51705e
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x517060
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x140], 4
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov esi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x140], 3
call dword [edx + 8]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00473740
test eax, eax
jl 0x51722a
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x51722a
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x5bcd40
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x51722a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x51722a
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x5c5728
push eax
call dword [ecx]
test eax, eax
jl 0x51722a
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x51722a
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
cmp dword [esp + 0x10], 1
jl 0x51722a
mov eax, dword [esp + 0x148]
push 0x400
push edi
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push ebx
push ebp
call esi
test eax, eax
je 0x51715e
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x517151
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jle 0x51720b
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push 0x104
push eax
push 2
push ecx
mov byte [esp + 0x44], bl
call edi
lea edx, [esp + 0x34]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x5c6d00
push 0x5c5738
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 6
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x2c], ebx
je 0x5171d9
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x24]
lea ecx, [esi + 0xc80]
push eax
push ecx
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x517176
mov edx, dword [esp + 0x1c]
push ebx
add edx, 0xc80
add esi, 0xc80
push edx
push esi
push 0xc80
push ebp
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x140], 2
cmp eax, ebx
je 0x517240
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x140], 1
cmp eax, ebx
je 0x517256
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x140], bl
cmp eax, ebx
je 0x51726b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret