Function at 0x415190
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, ecx
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0xc0], eax
xor eax, eax
dec eax
lea ebx, [esp + 0x38]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 0x140
push ebx
call fcn.004286e0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4151d8
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x415220
mov esi, ecx
lea edi, [esp + 0x78]
mov ecx, edi
push 0x151
push str.GetInfoFromResources
push 2
call fcn.004b83c0
lea ecx, [esp + 0xb4]
push 0x503e86
push str.Partner_package_is_empty.
call fcn.004b45d0
mov ecx, edi
mov edi, esi
call fcn.004374c0
jmp 0x4152da
lea ecx, [esp + 0x78]
mov edi, ecx
push 0x14c
push str.GetInfoFromResources
push 0
call fcn.004b83c0
lea ecx, [esp + 0xb4]
push 0x503e50
push str.Extract_Partner_package:
call fcn.004b45d0
lea eax, [esi + 0x98]
lea ecx, [esp + 0x80]
mov dword [esp + 4], eax
push eax
call fcn.004b4550
mov ecx, eax
push 0x503e52
call fcn.004b4b00
movzx edx, byte [esp + 0x43]
test dl, dl
jns 0x41527d
mov edx, dword [esp + 0x3c]
mov ecx, eax
push edx
call fcn.004b4b80
mov ecx, eax
push 0x503e58
call fcn.004b4b00
mov ecx, edi
call fcn.004374c0
push ebx
push dword [esp + 8]
call fcn.00429100
add esp, 8
mov byte [esi + 0x109], 1
mov ecx, edi
push str.partner_config
call fcn.004b43f0
mov ecx, esi
push edi
push ebx
call fcn.00415d50
cmp byte [esp + 0x83], 0
jns 0x4152d7
push dword [esp + 0x78]
call fcn.00489982
add esp, 4
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov cl, byte [edi + 0xb]
test cl, cl
mov eax, dword [edi + 4]
movzx edx, cl
mov esi, edx
cmovs esi, eax
cmp esi, 4
jne 0x41535a
mov ecx, edi
push 4
push str.auto
push 0xffffffffffffffff
push 0
call fcn.0046c810
test eax, eax
jne 0x415351
xor esi, esi
dec esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
cmp eax, esi
jne 0x4154be
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
jmp 0x415506
mov cl, byte [edi + 0xb]
mov eax, dword [edi + 4]
movzx edx, cl
test cl, cl
cmovs edx, eax
test edx, edx
je 0x41599e
xor edx, edx
dec edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
test cl, cl
jns 0x415388
lea ecx, [esp + 0x68]
push eax
push dword [edi]
call fcn.0046ba90
jmp 0x415399
mov eax, dword [edi + 8]
mov dword [esp + 0x70], eax
movsd xmm0, qword [edi]
movsd qword [esp + 0x68], xmm0
movzx ebx, byte [esp + 0x73]
test bl, bl
jns 0x4153ac
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
jmp 0x4153b0
lea edi, [esp + 0x68]
test ebx, ebx
je 0x4153cb
xor esi, esi
movsx eax, byte [edi + esi]
push eax
call fcn.0049f075
add esp, 4
mov byte [edi + esi], al
inc esi
cmp ebx, esi
jne 0x4153b6
lea edi, [esp + 0x78]
mov ecx, edi
push 0x164
push str.GetInfoFromResources
push 0
call fcn.004b83c0
lea ebx, [esp + 0xb4]
mov ecx, ebx
push 0x503ec3
push str.Fetching_defined
call fcn.004b45d0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xb]
test al, al
jns 0x41540a
mov eax, dword [edx + 4]
mov edx, dword [edx]
add eax, edx
mov ecx, ebx
push eax
push edx
call fcn.004b45d0
mov ecx, ebx
push 0x503eab
push str._package
call fcn.004b45d0
mov ecx, edi
call fcn.004374c0
lea esi, [esp + 0x5c]
mov ecx, esi
push str.BRAND_
call fcn.004b43f0
lea edx, [esp + 0x68]
movzx eax, byte [edx + 0xb]
test al, al
cmovs eax, dword [edx + 4]
cmovs edx, dword [edx]
mov ecx, esi
push eax
push edx
call fcn.0046bf20
push eax
push edi
call fcn.00428700
add esp, 8
cmp byte [esp + 0x33], 0
jns 0x415474
push dword [esp + 0x28]
call fcn.00489982
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x28], xmm0
xor eax, eax
mov byte [esp + 0x83], al
mov byte [esp + 0x78], al
cmp byte [esp + 0x67], al
jns 0x4154aa
push dword [esp + 0x5c]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x41599e
push dword [esp + 0x68]
jmp 0x415996
xor esi, esi
lea ecx, [esp + 0x78]
mov dword [ecx], esi
mov word [ecx + 4], 0
push esi
push 3
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x4154fa
mov byte [esp + 0x73], 2
mov al, byte [esp + 0x78]
mov cl, byte [esp + 0x7a]
mov byte [esp + 0x68], al
mov byte [esp + 0x69], cl
mov byte [esp + 0x6a], 0
jmp 0x415506
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov eax, str.AutodetectBrandName
xor esi, esi
lea ebx, [esp + 0x78]
mov ecx, ebx
push 0x64
push eax
push esi
call fcn.004b83c0
lea ecx, [esp + 0xb4]
push 0x5041df
push str.User_region:
call fcn.004b45d0
movzx eax, byte [esp + 0x73]
mov edi, str.AutodetectBrandName
test al, al
jns 0x41554a
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
jmp 0x41554e
lea edx, [esp + 0x68]
lea ecx, [esp + 0xb4]
add eax, edx
push eax
push edx
call fcn.004b45d0
mov ecx, ebx
call fcn.004374c0
lea ebx, [esp + 0x5c]
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push ebx
call fcn.00428b30
add esp, 4
lea ecx, [esp + 0x78]
push 0x66
push edi
push esi
call fcn.004b83c0
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x5041ed
push str.User_locale:
call fcn.004b45d0
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4155b2
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
add eax, ebx
mov ecx, edi
push eax
push ebx
call fcn.004b45d0
lea ecx, [esp + 0x78]
call fcn.004374c0
lea edi, [esp + 0x1c]
xor eax, eax
dec eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esi + esi*2]
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], eax
push dword [eax*4 + 0x5041f0]
call fcn.004b43f0
mov al, byte [esp + 0x5b]
movzx ecx, al
mov edx, ecx
test al, al
jns 0x415601
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x4156b4
xor eax, eax
dec eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x14]
push dword [eax*4 + 0x5041f4]
call fcn.004b43f0
mov al, byte [esp + 0x4f]
movzx ecx, al
mov edx, ecx
test al, al
jns 0x41563d
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x415721
lea ecx, [esp + 0x78]
push 0x74
push str.AutodetectBrandName
push 0
call fcn.004b83c0
lea eax, [esp + 0xb4]
mov ecx, eax
push 0x504265
push str.Detected_brand_name:
call fcn.004b45d0
mov eax, dword [esp + 0x14]
mov ebx, dword [eax*4 + 0x5041f8]
push ebx
call fcn.004a2ba0
add esp, 4
add eax, ebx
lea ecx, [esp + 0xb4]
push eax
push ebx
call fcn.004b45d0
lea ecx, [esp + 0x78]
call fcn.004374c0
mov ecx, edi
push ebx
call fcn.004b43f0
mov al, byte [esp + 0x4f]
xor ecx, ecx
inc ecx
mov dword [esp + 4], ecx
jmp 0x415789
mov dword [esp + 0xc], esi
movzx ebx, byte [esp + 0x73]
mov esi, ebx
mov dword [esp + 0x10], ebx
test bl, bl
jns 0x4156cb
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], 4
cmp edx, esi
jne 0x41577f
mov byte [esp + 0xb], al
lea ebx, [esp + 0x68]
cmp byte [esp + 0x10], 0
jns 0x4156ee
mov ebx, dword [esp + 0x68]
mov al, byte [esp + 0xb]
test al, al
mov esi, dword [esp + 0xc]
jns 0x4157c4
push edx
push ebx
push dword [esp + 0x58]
call fcn.0048bd5d
add esp, 0xc
mov dword [esp + 4], 4
test eax, eax
je 0x415609
jmp 0x4157a1
mov dword [esp + 0xc], esi
movzx ebx, byte [esp + 0x67]
mov esi, ebx
mov dword [esp + 0x10], ebx
test bl, bl
jns 0x415738
mov esi, dword [esp + 0x60]
mov dword [esp + 4], 4
cmp edx, esi
jne 0x415785
lea ebx, [esp + 0x5c]
cmp byte [esp + 0x10], 0
mov esi, dword [esp + 0xc]
jns 0x415757
mov ebx, dword [esp + 0x5c]
test al, al
jns 0x4157df
push edx
push ebx
push dword [esp + 0x4c]
call fcn.0048bd5d
add esp, 0xc
mov dword [esp + 4], 4
test eax, eax
je 0x415645
jmp 0x41578d
mov esi, dword [esp + 0xc]
jmp 0x41579d
mov esi, dword [esp + 0xc]
test al, al
jns 0x415799
push dword [esp + 0x44]
call fcn.00489982
add esp, 4
mov al, byte [esp + 0x5b]
test al, al
jns 0x4157ad
push dword [esp + 0x50]
call fcn.00489982
add esp, 4
cmp dword [esp + 4], 4
jne 0x415854
inc esi
cmp esi, 8
jne 0x4155ca
jmp 0x4157fa
je 0x415609
xor edx, edx
mov ah, byte [esp + edx + 0x50]
cmp ah, byte [ebx + edx]
jne 0x41579d
inc edx
cmp ecx, edx
jne 0x4157cc
jmp 0x415609
je 0x415645
xor edx, edx
mov ah, byte [esp + edx + 0x44]
cmp ah, byte [ebx + edx]
jne 0x415789
inc edx
cmp ecx, edx
jne 0x4157e7
jmp 0x415645
lea ecx, [esp + 0x78]
push pe_nt_image_headers32
push str.AutodetectBrandName
push 0
call fcn.004b83c0
lea ebx, [esp + 0xb4]
mov ecx, ebx
push 0x50428c
push str.Didnt_found_brand_name._Use_default:
call fcn.004b45d0
mov esi, str.yandex
push esi
call fcn.004a2ba0
add esp, 4
lea eax, [eax + str.yandex]
mov ecx, ebx
push eax
push esi
call fcn.004b45d0
lea ecx, [esp + 0x78]
call fcn.004374c0
lea ecx, [esp + 0x1c]
push esi
call fcn.004b43f0
cmp byte [esp + 0x67], 0
jns 0x415867
push dword [esp + 0x5c]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x41587a
push dword [esp + 0x68]
call fcn.00489982
add esp, 4
movzx ebx, byte [esp + 0x27]
test bl, bl
jns 0x41588b
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4158a6
xor esi, esi
movsx eax, byte [edi + esi]
push eax
call fcn.0049f075
add esp, 4
mov byte [edi + esi], al
inc esi
cmp ebx, esi
jne 0x415891
lea esi, [esp + 0x78]
mov ecx, esi
push 0x15b
push str.GetInfoFromResources
push 0
call fcn.004b83c0
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x503ea2
push str.Fetching_autodetected
call fcn.004b45d0
lea ebx, [esp + 0x1c]
movzx eax, byte [ebx + 0xb]
mov edx, ebx
test al, al
jns 0x4158eb
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, edx
mov ecx, edi
push eax
push edx
call fcn.004b45d0
mov ecx, edi
push 0x503eab
push str._package
call fcn.004b45d0
mov ecx, esi
call fcn.004374c0
lea edi, [esp + 0x68]
mov ecx, edi
push str.BRAND_
call fcn.004b43f0
movzx eax, byte [esp + 0x27]
test al, al
jns 0x41592f
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, edi
push eax
push ebx
call fcn.0046bf20
push eax
push esi
call fcn.00428700
add esp, 8
cmp byte [esp + 0x33], 0
jns 0x415955
push dword [esp + 0x28]
call fcn.00489982
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x28], xmm0
xor eax, eax
mov byte [esp + 0x83], al
mov byte [esp + 0x78], al
cmp byte [esp + 0x73], al
jns 0x41598b
push dword [esp + 0x68]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x27], 0
jns 0x41599e
push dword [esp + 0x1c]
call fcn.00489982
add esp, 4
mov al, byte [esp + 0x33]
test al, al
mov ecx, dword [esp + 0x2c]
movzx edi, al
mov edx, edi
cmovs edx, ecx
test edx, edx
jne 0x415a2b
lea esi, [esp + 0x78]
mov ecx, esi
push 0x169
push str.GetInfoFromResources
push 0
call fcn.004b83c0
lea ecx, [esp + 0xb4]
push 0x503edc
push str.Fetching_default_package
call fcn.004b45d0
mov ecx, esi
call fcn.004374c0
push 0x13f
push esi
call fcn.004286e0
add esp, 8
cmp byte [esp + 0x33], 0
jns 0x415a09
push dword [esp + 0x28]
call fcn.00489982
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x28], xmm0
mov al, byte [esp + 0x33]
mov ecx, dword [esp + 0x2c]
movzx edi, al
test al, al
cmovs edi, ecx
test edi, edi
jne 0x415a6d
lea esi, [esp + 0x78]
mov ecx, esi
push 0x174
push str.GetInfoFromResources
push 2
call fcn.004b83c0
lea ecx, [esp + 0xb4]
push 0x503f19
push str.Brand_package_is_empty.
call fcn.004b45d0
mov ecx, esi
call fcn.004374c0
jmp 0x415b21
lea ecx, [esp + 0x78]
push 0x16f
push str.GetInfoFromResources
push 0
call fcn.004b83c0
lea ecx, [esp + 0xb4]
push 0x503ef4
push str.Extract_Brand_package:
call fcn.004b45d0
mov esi, dword [esp + 0x18]
lea ebx, [esi + 0x8c]
lea ecx, [esp + 0x80]
push ebx
call fcn.004b4550
mov ecx, eax
push 0x503e52
call fcn.004b4b00
mov ecx, eax
push edi
call fcn.004b4b80
mov ecx, eax
push 0x503e58
call fcn.004b4b00
lea edi, [esp + 0x78]
mov ecx, edi
call fcn.004374c0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00429100
add esp, 8
mov byte [esi + 0x108], 1
mov ecx, edi
push 0x503ef5
call fcn.004b43f0
mov ecx, esi
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.00415d50
lea eax, [esp + 0xb4]
cmp byte [eax - 0x31], 0
jns 0x415b21
push dword [esp + 0x78]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x33], 0
jns 0x415b34
push dword [esp + 0x28]
call fcn.00489982
add esp, 4
cmp byte [esp + 0x43], 0
jns 0x415b47
push dword [esp + 0x38]
call fcn.00489982
add esp, 4
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0048a678
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4