Function at 0x404460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
mov dword [ebp - 0x94], ecx
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4044c8
push ebx
push 3
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push 4
push eax
mov word [ebp - 8], bx
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x4044c8
push 0xf
pop esi
push dword [ebp - 0xa]
lea eax, [ebp - 8]
mov dword [ebp - 0x30], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], esi
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], bl
call fcn.00405d1b
jmp 0x4044d4
push 0xf
pop esi
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
push 7
xor eax, eax
mov dword [ebp - 0x18], ebx
pop edi
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], edi
push eax
push str.User_region:
mov byte [ebp - 0x10], bl
call fcn.004011b7
mov ecx, eax
call fcn.00401209
lea eax, [ebp - 0x28]
push eax
push eax
push 0x4d
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402499
lea ecx, [ebp - 0x8c]
call fcn.0040c194
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x14], edi
push eax
push str.User_locale:
mov byte [ebp - 0x10], bl
call fcn.004011b7
mov ecx, eax
call fcn.00401209
lea eax, [ebp - 0x28]
push eax
push eax
push 0x4f
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402499
mov dword [ebp - 0x90], ebx
mov edi, ebx
mov edx, dword [edi + 0x452180]
mov ecx, edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], bl
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40458c
sub ecx, dword [ebp - 0xc]
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0040256f
cmp dword [ebp - 0x48], 0
je 0x4045b5
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00405d65
test al, al
je 0x404608
mov edx, dword [edi + 0x452184]
mov ecx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x24], bl
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4045cc
sub ecx, dword [ebp - 0xc]
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.0040256f
cmp dword [ebp - 0x14], 0
je 0x4046a1
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x24]
call fcn.00405d65
test al, al
jne 0x4046a1
lea ecx, [ebp - 0x24]
call fcn.00402525
lea ecx, [ebp - 0x58]
call fcn.00402525
inc dword [ebp - 0x90]
add edi, 0xc
cmp edi, 0x60
jb 0x404575
push str.yandex
xor eax, eax
mov dword [ebp - 0x18], ebx
push str.Didnt_found_brand_name._Use_default:
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 0x10], bl
call fcn.004011b7
mov ecx, eax
call fcn.004011b7
lea eax, [ebp - 0x28]
push eax
push eax
push 0x61
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402499
mov edi, dword [ebp - 0x94]
mov ecx, edi
push 6
push str.yandex
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov byte [edi], bl
call fcn.0040256f
lea ecx, [ebp - 0x8c]
call fcn.00402525
lea ecx, [ebp - 0x40]
call fcn.00402525
mov eax, edi
jmp 0x40472c
imul esi, dword [ebp - 0x90], 0xc
lea ecx, [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 0x5c], bl
push dword [esi + 0x452188]
push str.Detected_brand_name:
call fcn.004011b7
mov ecx, eax
call fcn.004011b7
lea eax, [ebp - 0x74]
push eax
push eax
push 0x5d
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415994
add esp, 0x14
lea ecx, [ebp - 0x74]
call fcn.00402499
push dword [esi + 0x452188]
mov ecx, dword [ebp - 0x94]
call fcn.00402476
lea ecx, [ebp - 0x24]
call fcn.00402525
lea ecx, [ebp - 0x58]
call fcn.00402525
lea ecx, [ebp - 0x8c]
call fcn.00402525
lea ecx, [ebp - 0x40]
call fcn.00402525
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret