Function at 0x435040
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x1c]
xor ebp, ebp
test eax, eax
je 0x435315
cmp dword [eax + 4], ebp
je 0x435315
mov ecx, dword [edi]
test ecx, ecx
je 0x435315
call fcn.00446770
test eax, eax
je 0x435315
mov ecx, dword [edi]
call fcn.004a9fe0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x435343
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4350c7
mov edi, edi
mov ecx, dword [edi + 0x20]
push 0x400
push esi
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
add esi, 1
cmp esi, ebx
jl 0x4350b0
mov edx, dword [edi + 0x20]
push 3
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0045e331
mov ebx, eax
test ebx, ebx
je 0x4351c8
mov eax, dword [ebx + 4]
push 0x400
push 0
push eax
call dword [sym.imp.USER32.dll_RemoveMenu]
test eax, eax
jne 0x4350e3
mov edx, dword [ebp]
mov edx, dword [edx + 0x40]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call edx
mov ebp, eax
test ebp, ebp
jle 0x4351b3
mov eax, dword [edi + 0x20]
push 0x400
push 3
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
xor esi, esi
test ebp, ebp
jle 0x435178
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x24]
push ecx
mov word [esp + 0x28], 0
mov eax, dword [edx + esi*8]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + esi*8 + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 4]
add eax, 0x5dc
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
add esi, 1
cmp esi, ebp
jl 0x435131
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*8 + 4]
mov edx, dword [edi + 0x20]
push 0
add ecx, 0x5dc
push ecx
push 0x5e3
push 0x5dc
push edx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x3c]
push edx
call eax
jmp 0x4351c4
mov ecx, dword [edi + 0x20]
push 0x403
push 3
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x20]
push 4
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0045e331
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x43530e
mov eax, dword [ebx + 4]
push 0x400
push 1
push eax
call dword [sym.imp.USER32.dll_RemoveMenu]
test eax, eax
jne 0x4351e6
mov edx, dword [ebp]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call edx
mov ebp, eax
test ebp, ebp
jle 0x4352fd
mov eax, dword [edi + 0x20]
push 0x400
push 4
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
xor esi, esi
test ebp, ebp
jle 0x435298
mov eax, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x28], 0
mov ecx, dword [eax + esi*8]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + esi*8 + 4]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebx + 4]
add ecx, 0x640
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
add esi, 1
cmp esi, ebp
jl 0x435250
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [edi + 0x20]
push 0
add edx, 0x640
push edx
push 0x67f
push 0x640
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
cmp dword [esp + 0x1c], 0
je 0x4352d5
mov ecx, dword [edi + 0x20]
push 8
push 0x579
push ecx
jmp 0x4352e0
mov edx, dword [edi + 0x20]
push 0
push 0x579
push edx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x3c]
push edx
call eax
mov eax, 1
jmp 0x435345
mov ecx, dword [edi + 0x20]
push 0x403
push 4
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, 1
jmp 0x435345
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x43535e
mov ebp, dword [sym.imp.USER32.dll_EnableMenuItem]
lea ecx, [ecx]
mov eax, dword [edi + 0x20]
push 0x403
push esi
push eax
call ebp
add esi, 1
cmp esi, ebx
jl 0x435330
xor eax, eax
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004721e8
add esp, 0x21c
ret
mov eax, ebp
jmp 0x435345