Function at 0x521c70
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x584910
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 0x521f3b
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 [0x5ed920]
mov ecx, 0x5ed920
mov byte [esp + 0x140], 3
mov dword [esp + 0x28], ecx
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov byte [esp + 0x140], 4
cmp eax, ebx
jne 0x521d5d
cmp dword [0x5e5cb4], ebx
jne 0x521d5d
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x140], 5
je 0x521d2e
push ebx
mov ecx, eax
call fcn.00414650
jmp 0x521d30
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x140], 4
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov esi, dword [0x5e5cb4]
mov ecx, 0x5ed920
mov byte [esp + 0x140], 3
call dword [edx + 8]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0047a2a0
test eax, eax
jl 0x521efa
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x521efa
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x5d7388
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x521efa
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x521efa
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x5dff30
push eax
call dword [ecx]
test eax, eax
jl 0x521efa
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x521efa
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 0x521efa
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 0x521e2e
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x521e21
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jle 0x521edb
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 0x5e1560
push 0x5dff40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 6
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x2c], ebx
je 0x521ea9
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 0x521e46
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 0x521f10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x140], 1
cmp eax, ebx
je 0x521f26
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x140], bl
cmp eax, ebx
je 0x521f3b
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