Function at 0x4b5d40
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f2e69
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 0x4b640e
push 0x403
push esi
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x53a380]
mov ecx, 0x53a380
mov dword [esp + 0x20], ecx
call dword [eax + 4]
mov eax, dword [0x53404c]
mov dword [esp + 0x14c], ebx
cmp eax, ebx
jne 0x4b5e0c
cmp dword [0x534048], ebx
jne 0x4b5e0c
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x14c], 1
je 0x4b5dde
push ebx
mov ecx, eax
call fcn.00404ab0
jmp 0x4b5de0
xor eax, eax
mov ecx, dword [0x525b68]
mov byte [esp + 0x14c], bl
push ecx
push 0x404a80
mov ecx, 0x538d90
mov dword [0x534048], eax
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov edi, dword [0x534048]
mov ecx, 0x53a380
mov dword [esp + 0x14c], 0xffffffff
call dword [edx + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [eax + 0xa8]
test eax, eax
jl 0x4b640e
mov eax, dword [esp + 0x3c]
cmp eax, 4
je 0x4b5e53
cmp eax, 5
jne 0x4b640e
mov dword [esp + 0x30], ebx
mov edx, dword [0x53a380]
mov ecx, 0x53a380
mov dword [esp + 0x14c], 2
mov dword [esp + 0x34], ecx
call dword [edx + 4]
mov eax, dword [0x53404c]
mov byte [esp + 0x14c], 3
cmp eax, ebx
jne 0x4b5ee2
cmp dword [0x534048], ebx
jne 0x4b5ee2
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x14c], 4
je 0x4b5eb4
push ebx
mov ecx, eax
call fcn.00404ab0
jmp 0x4b5eb6
xor eax, eax
mov dword [0x534048], eax
mov eax, dword [0x525b68]
push eax
push 0x404a80
mov ecx, 0x538d90
mov byte [esp + 0x154], 3
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov edi, dword [0x534048]
mov ecx, 0x53a380
mov byte [esp + 0x14c], 2
call dword [edx + 8]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.0043f170
test eax, eax
jl 0x4b63f5
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4b63f9
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x52aa28
push eax
mov byte [esp + 0x158], 5
call dword [ecx + 0xc]
test eax, eax
jl 0x4b63df
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4b63e3
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
xor edi, edi
push 0x530be0
push eax
mov byte [esp + 0x158], 6
mov dword [esp + 0x28], edi
call dword [ecx]
test eax, eax
jl 0x4b622f
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4b622f
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x4b622b
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 0x4b5fd9
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x4b5fcc
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x4b606d
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push esi
mov ecx, dword [eax]
push ebx
push eax
mov byte [esp + 0x15c], 7
call dword [ecx + 0x18]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x10]
mov byte [esp + 0x14c], 8
push eax
call fcn.004ddc52
push eax
lea ecx, [esp + 0x18]
push 0x531570
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esi + 0x1f40]
push edx
push eax
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4b5fed
push 0x533fe0
push 0x806a
push 0x800
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [esp + 0x18], ebx
mov edx, dword [0x53a380]
mov ecx, 0x53a380
mov byte [esp + 0x14c], 9
mov dword [esp + 0x34], ecx
call dword [edx + 4]
mov eax, dword [0x53404c]
mov byte [esp + 0x14c], 0xa
cmp eax, ebx
jne 0x4b610f
cmp dword [0x534048], ebx
jne 0x4b610f
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x14c], 0xb
je 0x4b60e1
push ebx
mov ecx, eax
call fcn.00404ab0
jmp 0x4b60e3
xor eax, eax
mov dword [0x534048], eax
mov eax, dword [0x525b68]
push eax
push 0x404a80
mov ecx, 0x538d90
mov byte [esp + 0x154], 0xa
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov edi, dword [0x534048]
mov ecx, 0x53a380
mov byte [esp + 0x14c], 9
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0043f170
test eax, eax
jl 0x4b61e9
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b61e9
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x52aa28
push eax
mov byte [esp + 0x158], 0xc
call dword [ecx + 0xc]
test eax, eax
jl 0x4b61d3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4b61d7
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x530f20
push eax
mov byte [esp + 0x158], 0xd
call dword [ecx]
test eax, eax
mov eax, dword [esp + 0x10]
jl 0x4b61c1
cmp eax, ebx
je 0x4b61c1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
test al, al
je 0x4b61ab
push 0x531564
jmp 0x4b61b0
push 0x531558
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 0x4b61d3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x14c], 9
je 0x4b61e9
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 0x4b621e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x158]
jmp 0x4b622f
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push 0x530bd0
mov edx, dword [eax]
push eax
mov byte [esp + 0x158], 0xe
call dword [edx]
test eax, eax
jl 0x4b63b3
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4b63b7
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 0x4b63b3
cmp edi, ebx
jg 0x4b62b5
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 0x4b62cd
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x4b62a6
jmp 0x4b62cd
lea eax, [edi + 0x1f40]
push 0x533fe0
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 0x4b6390
add edi, 0x1f41
mov dword [esp + 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 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 edi
lea edx, [esp + 0x40]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x53153c
push 0x531534
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 0xf
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x38], 1
jne 0x4b6353
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0xe
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
inc ecx
cmp esi, eax
mov dword [esp + 0x10], ecx
jl 0x4b62ef
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 0x4b63c9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x14c], 5
cmp eax, ebx
je 0x4b63df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x14c], 2
je 0x4b63f5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x14c], 0xffffffff
je 0x4b640e
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