Function at 0x4022b0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x88
push ebx
push esi
push edi
mov ebx, ecx
push str.SoftwareMicrosoftTuning_Spaces
call fcn.00402220
test al, al
je 0x402307
mov esi, 1
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push str.SoftwareMicrosoftTuning_Spaces_d
push eax
call fcn.00405454
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00402220
test al, al
je 0x402315
inc esi
cmp esi, 0x80
jl 0x4022ce
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x88
ret 4
lea edx, [esp + 0x10]
push ebp
lea eax, [esp + 0x10]
push edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x40d11c
lea ecx, [esp + 0x30]
push 0
push ecx
push SysStringLen
call ebp
test eax, eax
jne 0x40244b
mov edx, dword [esp + 0x10]
push str.A2E30750_6C3D_11D3_B653_00C04F79498E
push 0x40d11c
push edx
mov ecx, ebx
call fcn.00402260
mov eax, dword [esp + 0x10]
push 0
push str.CountryCode
push eax
mov ecx, ebx
call fcn.00402290
mov ecx, dword [esp + 0x10]
push str.Local_ATSC_Digital_Antenna
push str.Description
push ecx
mov ecx, ebx
call fcn.00402260
mov edx, dword [esp + 0x10]
push 0
push str.InputType
push edx
mov ecx, ebx
call fcn.00402290
mov eax, dword [esp + 0x10]
push 0x3e7
push str.Max_Minor_Channel
push eax
mov ecx, ebx
call fcn.00402290
mov ecx, dword [esp + 0x10]
push 0x45
push str.Max_Physical_Channel
push ecx
mov ecx, ebx
call fcn.00402290
mov edx, dword [esp + 0x10]
push 0x63
push str.MaxChannel
push edx
mov ecx, ebx
call fcn.00402290
mov eax, dword [esp + 0x10]
push 0
push str.Min_Minor_Channel
push eax
mov ecx, ebx
call fcn.00402290
mov ecx, dword [esp + 0x10]
push 2
push str.Min_Physical_Channel
push ecx
mov ecx, ebx
call fcn.00402290
mov edx, dword [esp + 0x10]
push 1
push str.MinChannel
push edx
mov ecx, ebx
call fcn.00402290
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x10]
push eax
push str.Name
push ecx
mov ecx, ebx
call fcn.00402260
mov edx, dword [esp + 0x10]
push str.0DAD2FDD_5FD7_11D3_8F50_00C04F7971E2
push str.Network_Type
push edx
mov ecx, ebx
call fcn.00402260
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.Default_Locator
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x40d11c
push 0
push edx
push SysStringLen
call ebp
test eax, eax
pop ebp
jne 0x402587
mov eax, dword [esp + 0xc]
push str.8872FF1B_98FA_4D7A_8D93_C9F1055F85BB
push 0x40d11c
push eax
mov ecx, ebx
call fcn.00402260
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push str.Frequency
push ecx
mov ecx, ebx
call fcn.00402290
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push str.InnerFECMethod
push edx
mov ecx, ebx
call fcn.00402290
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push str.InnerFECRate
push eax
mov ecx, ebx
call fcn.00402290
mov ecx, dword [esp + 0xc]
push 7
push str.ModulationType
push ecx
mov ecx, ebx
call fcn.00402290
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push str.OuterFECMethod
push edx
mov ecx, ebx
call fcn.00402290
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push str.OuterFECRate
push eax
mov ecx, ebx
call fcn.00402290
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push str.Physical_Channel
push ecx
mov ecx, ebx
call fcn.00402290
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push str.Program_Number
push edx
mov ecx, ebx
call fcn.00402290
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push str.SymbolRate
push eax
mov ecx, ebx
call fcn.00402290
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push str.Transport_Stream_ID
push ecx
mov ecx, ebx
call fcn.00402290
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x88
ret 4