Function at 0x517480
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56e209
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, dword [esp + 0x154]
push edi
mov edi, dword [esp + 0x154]
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x517b40
push 0x403
push esi
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x20], ecx
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov dword [esp + 0x14c], ebx
cmp eax, ebx
jne 0x51754c
cmp dword [0x5cb044], ebx
jne 0x51754c
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x14c], 1
je 0x51751e
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x517520
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x14c], bl
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov dword [esp + 0x14c], 0xffffffff
call dword [edx + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [eax + 0xac]
test eax, eax
jl 0x517b40
mov eax, dword [esp + 0x3c]
cmp eax, 4
je 0x517593
cmp eax, 5
jne 0x517b40
mov dword [esp + 0x30], ebx
mov edx, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x14c], 2
mov dword [esp + 0x34], ecx
call dword [edx + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x14c], 3
cmp eax, ebx
jne 0x517622
cmp dword [0x5cb044], ebx
jne 0x517622
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x14c], 4
je 0x5175f4
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x5175f6
xor eax, eax
mov dword [0x5cb044], eax
mov eax, dword [0x5b4b90]
push eax
push 0x406940
mov ecx, 0x5d0190
mov byte [esp + 0x154], 3
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x14c], 2
call dword [edx + 8]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00473740
test eax, eax
jl 0x517b27
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x517b2b
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x5bcd40
push eax
mov byte [esp + 0x158], 5
call dword [ecx + 0xc]
test eax, eax
jl 0x517b11
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x517b15
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
xor edi, edi
push 0x5c5770
push eax
mov byte [esp + 0x158], 6
mov dword [esp + 0x28], edi
call dword [ecx]
test eax, eax
jl 0x517963
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x517963
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x51795f
mov eax, dword [esp + 0x24]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x154]
push 0x400
push esi
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 0x517719
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x51770c
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x5177a1
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push esi
mov ecx, dword [eax]
push ebx
push eax
mov byte [esp + 0x15c], 8
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
call fcn.0055071c
push eax
lea ecx, [esp + 0x14]
push 0x5c6d2c
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esi + 0x1f40]
push edx
push eax
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x517729
push 0x5cabc0
push 0x806a
push 0x800
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [esp + 0x18], ebx
mov edx, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov byte [esp + 0x14c], 9
mov dword [esp + 0x34], ecx
call dword [edx + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x14c], 0xa
cmp eax, ebx
jne 0x517843
cmp dword [0x5cb044], ebx
jne 0x517843
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x14c], 0xb
je 0x517815
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x517817
xor eax, eax
mov dword [0x5cb044], eax
mov eax, dword [0x5b4b90]
push eax
push 0x406940
mov ecx, 0x5d0190
mov byte [esp + 0x154], 0xa
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x14c], 9
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00473740
test eax, eax
jl 0x51791d
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x51791d
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x5bcd40
push eax
mov byte [esp + 0x158], 0xc
call dword [ecx + 0xc]
test eax, eax
jl 0x517907
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x51790b
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x5c5ce0
push eax
mov byte [esp + 0x158], 0xd
call dword [ecx]
test eax, eax
mov eax, dword [esp + 0x10]
jl 0x5178f5
cmp eax, ebx
je 0x5178f5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
test al, al
je 0x5178df
push 0x5c6d20
jmp 0x5178e4
push 0x5c6d14
push 0x806b
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x14c], 0xc
je 0x517907
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x14c], 9
je 0x51791d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x20]
push ebx
add edx, 0x1f40
add esi, 0x1f3f
push edx
push esi
push 0x1f40
push ebp
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x14c], 6
cmp eax, ebx
je 0x517952
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x158]
jmp 0x517963
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push 0x5c5728
mov edx, dword [eax]
push eax
mov byte [esp + 0x158], 0xe
call dword [edx]
test eax, eax
mov eax, dword [esp + 0x2c]
jl 0x517ae9
cmp eax, ebx
je 0x517ae9
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
cmp dword [esp + 0x14], ebx
jle 0x5179fd
cmp edi, ebx
jg 0x5179e5
mov edx, dword [esp + 0x154]
push 0x400
push esi
push edx
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 0x5179fd
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x5179d6
jmp 0x5179fd
lea eax, [edi + 0x1f40]
push 0x5cabc0
push eax
push 0x800
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x20], ebx
jle 0x517ac2
add edi, 0x1f41
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x40]
push 0x104
push eax
push 2
push ecx
mov byte [esp + 0x50], bl
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x5c6d00
push 0x5c5738
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 0xf
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x38], 1
jne 0x517a86
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 0xe
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc esi
inc edi
cmp esi, eax
jl 0x517a15
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebx
lea ecx, [esi + edi + 0x1f40]
lea eax, [edx + edi + 0x1f41]
add edi, 0x1f41
push eax
push ecx
push edi
push ebp
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0x14c], 6
je 0x517afb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x14c], 5
cmp eax, ebx
je 0x517b11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x14c], 2
je 0x517b27
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x14c], 0xffffffff
je 0x517b40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret