Function at 0x404520
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x45d06c]
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 0x404588
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 0x404588
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.00405f59
jmp 0x404594
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.004011fd
mov ecx, eax
call fcn.0040124f
lea eax, [ebp - 0x28]
push eax
push eax
push 0x4f
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402561
lea ecx, [ebp - 0x8c]
call fcn.0040c394
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.004011fd
mov ecx, eax
call fcn.0040124f
lea eax, [ebp - 0x28]
push eax
push eax
push 0x51
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402561
mov dword [ebp - 0x90], ebx
mov edi, ebx
mov edx, dword [edi + 0x454210]
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 0x40464c
sub ecx, dword [ebp - 0xc]
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00402637
cmp dword [ebp - 0x48], 0
je 0x404675
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00405fa3
test al, al
je 0x4046c8
mov edx, dword [edi + 0x454214]
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 0x40468c
sub ecx, dword [ebp - 0xc]
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00402637
cmp dword [ebp - 0x14], 0
je 0x404761
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x24]
call fcn.00405fa3
test al, al
jne 0x404761
lea ecx, [ebp - 0x24]
call fcn.004025ed
lea ecx, [ebp - 0x58]
call fcn.004025ed
inc dword [ebp - 0x90]
add edi, 0xc
cmp edi, 0x60
jb 0x404635
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.004011fd
mov ecx, eax
call fcn.004011fd
lea eax, [ebp - 0x28]
push eax
push eax
push 0x63
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402561
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.00402637
lea ecx, [ebp - 0x8c]
call fcn.004025ed
lea ecx, [ebp - 0x40]
call fcn.004025ed
mov eax, edi
jmp 0x4047ec
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 + 0x454218]
push str.Detected_brand_name:
call fcn.004011fd
mov ecx, eax
call fcn.004011fd
lea eax, [ebp - 0x74]
push eax
push eax
push 0x5f
push str._anonymous_namespace::AutodetectBrandName
push ebx
call fcn.00415c43
add esp, 0x14
lea ecx, [ebp - 0x74]
call fcn.00402561
push dword [esi + 0x454218]
mov ecx, dword [ebp - 0x94]
call fcn.0040253e
lea ecx, [ebp - 0x24]
call fcn.004025ed
lea ecx, [ebp - 0x58]
call fcn.004025ed
lea ecx, [ebp - 0x8c]
call fcn.004025ed
lea ecx, [ebp - 0x40]
call fcn.004025ed
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429462
mov esp, ebp
pop ebp
ret