Function at 0x4b8420
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5ad9
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 0x4b8aee
push 0x403
push esi
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x53d440]
mov ecx, 0x53d440
mov dword [esp + 0x20], ecx
call dword [eax + 4]
mov eax, dword [0x53716c]
mov dword [esp + 0x14c], ebx
cmp eax, ebx
jne 0x4b84ec
cmp dword [0x537168], ebx
jne 0x4b84ec
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x14c], 1
je 0x4b84be
push ebx
mov ecx, eax
call fcn.00404a60
jmp 0x4b84c0
xor eax, eax
mov ecx, dword [0x528b70]
mov byte [esp + 0x14c], bl
push ecx
push 0x404a30
mov ecx, 0x53bea0
mov dword [0x537168], eax
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov edi, dword [0x537168]
mov ecx, 0x53d440
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 0x4b8aee
mov eax, dword [esp + 0x3c]
cmp eax, 4
je 0x4b8533
cmp eax, 5
jne 0x4b8aee
mov dword [esp + 0x30], ebx
mov edx, dword [0x53d440]
mov ecx, 0x53d440
mov dword [esp + 0x14c], 2
mov dword [esp + 0x34], ecx
call dword [edx + 4]
mov eax, dword [0x53716c]
mov byte [esp + 0x14c], 3
cmp eax, ebx
jne 0x4b85c2
cmp dword [0x537168], ebx
jne 0x4b85c2
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x14c], 4
je 0x4b8594
push ebx
mov ecx, eax
call fcn.00404a60
jmp 0x4b8596
xor eax, eax
mov dword [0x537168], eax
mov eax, dword [0x528b70]
push eax
push 0x404a30
mov ecx, 0x53bea0
mov byte [esp + 0x154], 3
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov edi, dword [0x537168]
mov ecx, 0x53d440
mov byte [esp + 0x14c], 2
call dword [edx + 8]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.0043f480
test eax, eax
jl 0x4b8ad5
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4b8ad9
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x52da48
push eax
mov byte [esp + 0x158], 5
call dword [ecx + 0xc]
test eax, eax
jl 0x4b8abf
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4b8ac3
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
xor edi, edi
push 0x533c48
push eax
mov byte [esp + 0x158], 6
mov dword [esp + 0x28], edi
call dword [ecx]
test eax, eax
jl 0x4b890f
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4b890f
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x4b890b
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 0x4b86b9
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x4b86ac
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x4b874d
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.004e11b2
push eax
lea ecx, [esp + 0x18]
push 0x534694
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 0x4b86cd
push 0x537100
push 0x806a
push 0x800
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [esp + 0x18], ebx
mov edx, dword [0x53d440]
mov ecx, 0x53d440
mov byte [esp + 0x14c], 9
mov dword [esp + 0x34], ecx
call dword [edx + 4]
mov eax, dword [0x53716c]
mov byte [esp + 0x14c], 0xa
cmp eax, ebx
jne 0x4b87ef
cmp dword [0x537168], ebx
jne 0x4b87ef
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x14c], 0xb
je 0x4b87c1
push ebx
mov ecx, eax
call fcn.00404a60
jmp 0x4b87c3
xor eax, eax
mov dword [0x537168], eax
mov eax, dword [0x528b70]
push eax
push 0x404a30
mov ecx, 0x53bea0
mov byte [esp + 0x154], 0xa
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov edi, dword [0x537168]
mov ecx, 0x53d440
mov byte [esp + 0x14c], 9
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0043f480
test eax, eax
jl 0x4b88c9
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b88c9
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x52da48
push eax
mov byte [esp + 0x158], 0xc
call dword [ecx + 0xc]
test eax, eax
jl 0x4b88b3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4b88b7
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x533fd0
push eax
mov byte [esp + 0x158], 0xd
call dword [ecx]
test eax, eax
mov eax, dword [esp + 0x10]
jl 0x4b88a1
cmp eax, ebx
je 0x4b88a1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
test al, al
je 0x4b888b
push 0x534688
jmp 0x4b8890
push 0x53467c
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 0x4b88b3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x14c], 9
je 0x4b88c9
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 0x4b88fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x158]
jmp 0x4b890f
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push 0x533c38
mov edx, dword [eax]
push eax
mov byte [esp + 0x158], 0xe
call dword [edx]
test eax, eax
jl 0x4b8a93
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4b8a97
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 0x4b8a93
cmp edi, ebx
jg 0x4b8995
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 0x4b89ad
push 0x400
push ebx
push ebp
call esi
test eax, eax
jne 0x4b8986
jmp 0x4b89ad
lea eax, [edi + 0x1f40]
push 0x537100
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 0x4b8a70
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 0x534660
push 0x534658
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 0xf
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x38], 1
jne 0x4b8a33
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 0x4b89cf
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 0x4b8aa9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x14c], 5
cmp eax, ebx
je 0x4b8abf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x14c], 2
je 0x4b8ad5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x14c], 0xffffffff
je 0x4b8aee
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