Function at 0x415100
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 [0x521014]
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.004289e0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x415148
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x415189
lea edi, [esp + 0x78]
mov ecx, edi
push 0x151
push str.GetInfoFromResources
push 2
call fcn.004b9b40
lea ecx, [esp + 0xb4]
push 0x5069b6
push str.Partner_package_is_empty.
call fcn.004b5d50
mov ecx, edi
call fcn.004379a0
jmp 0x415240
lea ecx, [esp + 0x78]
mov edi, ecx
push 0x14c
push str.GetInfoFromResources
push 0
call fcn.004b9b40
lea ecx, [esp + 0xb4]
push 0x506980
push str.Extract_Partner_package:
call fcn.004b5d50
lea eax, [esi + 0x98]
lea ecx, [esp + 0x80]
mov dword [esp + 4], eax
push eax
call fcn.004b5c70
mov ecx, eax
push 0x506982
call fcn.004b6280
movzx edx, byte [esp + 0x43]
test dl, dl
jns 0x4151e6
mov edx, dword [esp + 0x3c]
mov ecx, eax
push edx
call fcn.004b6300
mov ecx, eax
push 0x506988
call fcn.004b6280
mov ecx, edi
call fcn.004379a0
push ebx
push dword [esp + 8]
call fcn.004293c0
add esp, 8
mov byte [esi + 0x109], 1
mov ecx, edi
push str.partner_config
call fcn.004b5b10
mov ecx, esi
push edi
push ebx
call fcn.00415cd0
cmp byte [esp + 0x83], 0
jns 0x415240
push dword [esp + 0x78]
call fcn.0048b376
add esp, 4
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov cl, byte [esi + 0xb]
test cl, cl
mov eax, dword [esi + 4]
movzx edx, cl
mov edi, edx
cmovs edi, eax
cmp edi, 4
jne 0x4152c3
mov ecx, esi
push 4
push str.auto
push 0xffffffffffffffff
push 0
call fcn.0046ceb0
test eax, eax
jne 0x4152ba
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 0x415431
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
jmp 0x415479
mov cl, byte [esi + 0xb]
mov eax, dword [esi + 4]
movzx edx, cl
test cl, cl
cmovs edx, eax
test edx, edx
je 0x41591b
xor edx, edx
dec edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
test cl, cl
jns 0x4152f1
lea ecx, [esp + 0x68]
push eax
push dword [esi]
call fcn.0046c220
jmp 0x415302
mov eax, dword [esi + 8]
mov dword [esp + 0x70], eax
movsd xmm0, qword [esi]
movsd qword [esp + 0x68], xmm0
movzx eax, byte [esp + 0x73]
test al, al
jns 0x415315
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
jmp 0x415319
lea edi, [esp + 0x68]
xor ebx, ebx
test eax, eax
je 0x415342
mov esi, eax
movsx eax, byte [edi + ebx]
push eax
call fcn.004a08c5
add esp, 4
mov byte [edi + ebx], al
mov eax, esi
inc ebx
cmp esi, ebx
jne 0x41531f
mov bl, byte [esp + 0x33]
shr bl, 7
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x78]
push 0x164
push str.GetInfoFromResources
push 0
call fcn.004b9b40
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x5069f3
push str.Fetching_defined
call fcn.004b5d50
movzx eax, byte [esi + 0xb]
test al, al
jns 0x41537c
mov eax, dword [esi + 4]
mov esi, dword [esi]
add eax, esi
mov ecx, edi
push eax
push esi
call fcn.004b5d50
mov ecx, edi
push 0x5069db
push str._package
call fcn.004b5d50
lea edi, [esp + 0x78]
mov ecx, edi
call fcn.004379a0
lea esi, [esp + 0x5c]
mov ecx, esi
push str.BRAND_
call fcn.004b5b10
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.0046c6b0
push eax
push edi
call fcn.00428a00
add esp, 8
test bl, bl
je 0x4153e7
push dword [esp + 0x28]
call fcn.0048b376
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 0x41541d
push dword [esp + 0x5c]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x41591b
push dword [esp + 0x68]
jmp 0x415913
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 0x41546d
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 0x415479
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.004b9b40
lea ecx, [esp + 0xb4]
push 0x506d0f
push str.User_region:
call fcn.004b5d50
movzx eax, byte [esp + 0x73]
mov edi, str.AutodetectBrandName
test al, al
jns 0x4154bd
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
jmp 0x4154c1
lea edx, [esp + 0x68]
lea ecx, [esp + 0xb4]
add eax, edx
push eax
push edx
call fcn.004b5d50
mov ecx, ebx
call fcn.004379a0
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.00428e30
add esp, 4
lea ecx, [esp + 0x78]
push 0x66
push edi
push esi
call fcn.004b9b40
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x506d1d
push str.User_locale:
call fcn.004b5d50
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x415525
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
add eax, ebx
mov ecx, edi
push eax
push ebx
call fcn.004b5d50
lea ecx, [esp + 0x78]
call fcn.004379a0
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 + 0x506d20]
call fcn.004b5b10
mov al, byte [esp + 0x5b]
movzx ecx, al
mov edx, ecx
test al, al
jns 0x415574
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x415625
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 + 0x506d24]
call fcn.004b5b10
mov al, byte [esp + 0x4f]
movzx ecx, al
mov edx, ecx
test al, al
jns 0x4155b0
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x415692
lea ecx, [esp + 0x78]
push 0x74
push str.AutodetectBrandName
push 0
call fcn.004b9b40
lea ecx, [esp + 0xb4]
push 0x506d95
push str.Detected_brand_name:
call fcn.004b5d50
mov eax, dword [esp + 0x14]
mov ebx, dword [eax*4 + 0x506d28]
push ebx
call fcn.004a43f0
add esp, 4
add eax, ebx
lea ecx, [esp + 0xb4]
push eax
push ebx
call fcn.004b5d50
lea ecx, [esp + 0x78]
call fcn.004379a0
mov ecx, edi
push ebx
call fcn.004b5b10
mov al, byte [esp + 0x4f]
xor ecx, ecx
inc ecx
mov dword [esp + 4], ecx
jmp 0x4156fa
mov dword [esp + 0xc], esi
movzx ebx, byte [esp + 0x73]
mov esi, ebx
mov dword [esp + 0x10], ebx
test bl, bl
jns 0x41563c
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], 4
cmp edx, esi
jne 0x4156f0
mov byte [esp + 0xb], al
lea ebx, [esp + 0x68]
cmp byte [esp + 0x10], 0
jns 0x41565f
mov ebx, dword [esp + 0x68]
mov al, byte [esp + 0xb]
test al, al
mov esi, dword [esp + 0xc]
jns 0x415735
push edx
push ebx
push dword [esp + 0x58]
call fcn.0048d57d
add esp, 0xc
mov dword [esp + 4], 4
test eax, eax
je 0x41557c
jmp 0x415712
mov dword [esp + 0xc], esi
movzx ebx, byte [esp + 0x67]
mov esi, ebx
mov dword [esp + 0x10], ebx
test bl, bl
jns 0x4156a9
mov esi, dword [esp + 0x60]
mov dword [esp + 4], 4
cmp edx, esi
jne 0x4156f6
lea ebx, [esp + 0x5c]
cmp byte [esp + 0x10], 0
mov esi, dword [esp + 0xc]
jns 0x4156c8
mov ebx, dword [esp + 0x5c]
test al, al
jns 0x415750
push edx
push ebx
push dword [esp + 0x4c]
call fcn.0048d57d
add esp, 0xc
mov dword [esp + 4], 4
test eax, eax
je 0x4155b8
jmp 0x4156fe
mov esi, dword [esp + 0xc]
jmp 0x41570e
mov esi, dword [esp + 0xc]
test al, al
jns 0x41570a
push dword [esp + 0x44]
call fcn.0048b376
add esp, 4
mov al, byte [esp + 0x5b]
test al, al
jns 0x41571e
push dword [esp + 0x50]
call fcn.0048b376
add esp, 4
cmp dword [esp + 4], 4
jne 0x4157c5
inc esi
cmp esi, 8
jne 0x41553d
jmp 0x41576b
je 0x41557c
xor edx, edx
mov ah, byte [esp + edx + 0x50]
cmp ah, byte [ebx + edx]
jne 0x41570e
inc edx
cmp ecx, edx
jne 0x41573d
jmp 0x41557c
je 0x4155b8
xor edx, edx
mov ah, byte [esp + edx + 0x44]
cmp ah, byte [ebx + edx]
jne 0x4156fa
inc edx
cmp ecx, edx
jne 0x415758
jmp 0x4155b8
lea ecx, [esp + 0x78]
push pe_nt_image_headers32
push str.AutodetectBrandName
push 0
call fcn.004b9b40
lea ebx, [esp + 0xb4]
mov ecx, ebx
push 0x506dbc
push str.Didnt_found_brand_name._Use_default:
call fcn.004b5d50
mov esi, str.yandex
push esi
call fcn.004a43f0
add esp, 4
lea eax, [eax + str.yandex]
mov ecx, ebx
push eax
push esi
call fcn.004b5d50
lea ecx, [esp + 0x78]
call fcn.004379a0
lea ecx, [esp + 0x1c]
push esi
call fcn.004b5b10
cmp byte [esp + 0x67], 0
jns 0x4157d8
push dword [esp + 0x5c]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x4157eb
push dword [esp + 0x68]
call fcn.0048b376
add esp, 4
movzx eax, byte [esp + 0x27]
test al, al
jns 0x4157fc
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
je 0x415822
mov esi, eax
movsx eax, byte [edi + ebx]
push eax
call fcn.004a08c5
add esp, 4
mov byte [edi + ebx], al
mov eax, esi
inc ebx
cmp esi, ebx
jne 0x415802
mov bl, byte [esp + 0x33]
shr bl, 7
lea ecx, [esp + 0x78]
push 0x15b
push str.GetInfoFromResources
push 0
call fcn.004b9b40
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x5069d2
push str.Fetching_autodetected
call fcn.004b5d50
lea esi, [esp + 0x1c]
movzx eax, byte [esi + 0xb]
mov edx, esi
test al, al
jns 0x415865
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, edx
mov ecx, edi
push eax
push edx
call fcn.004b5d50
mov ecx, edi
push 0x5069db
push str._package
call fcn.004b5d50
lea ecx, [esp + 0x78]
call fcn.004379a0
lea edi, [esp + 0x68]
mov ecx, edi
push str.BRAND_
call fcn.004b5b10
movzx eax, byte [esp + 0x27]
test al, al
jns 0x4158ab
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, edi
push eax
push esi
call fcn.0046c6b0
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00428a00
add esp, 8
test bl, bl
je 0x4158d2
push dword [esp + 0x28]
call fcn.0048b376
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 0x415908
push dword [esp + 0x68]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x27], 0
jns 0x41591b
push dword [esp + 0x1c]
call fcn.0048b376
add esp, 4
mov bl, byte [esp + 0x33]
test bl, bl
mov eax, dword [esp + 0x2c]
movzx edi, bl
mov ecx, edi
cmovs ecx, eax
test ecx, ecx
jne 0x4159a5
lea esi, [esp + 0x78]
mov ecx, esi
push 0x169
push str.GetInfoFromResources
push 0
call fcn.004b9b40
lea ecx, [esp + 0xb4]
push 0x506a0c
push str.Fetching_default_package
call fcn.004b5d50
mov ecx, esi
call fcn.004379a0
push 0x13f
push esi
call fcn.004289e0
add esp, 8
test bl, bl
jns 0x415983
push dword [esp + 0x28]
call fcn.0048b376
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x28], xmm0
mov bl, byte [esp + 0x33]
mov eax, dword [esp + 0x2c]
movzx edi, bl
test bl, bl
cmovs edi, eax
test edi, edi
jne 0x4159e7
lea esi, [esp + 0x78]
mov ecx, esi
push 0x174
push str.GetInfoFromResources
push 2
call fcn.004b9b40
lea ecx, [esp + 0xb4]
push 0x506a49
push str.Brand_package_is_empty.
call fcn.004b5d50
mov ecx, esi
call fcn.004379a0
jmp 0x415a9f
lea ecx, [esp + 0x78]
push 0x16f
push str.GetInfoFromResources
push 0
call fcn.004b9b40
lea ecx, [esp + 0xb4]
push 0x506a24
push str.Extract_Brand_package:
call fcn.004b5d50
mov esi, dword [esp + 0x18]
lea ebx, [esi + 0x8c]
lea ecx, [esp + 0x80]
push ebx
call fcn.004b5c70
mov ecx, eax
push 0x506982
call fcn.004b6280
mov ecx, eax
push edi
call fcn.004b6300
mov ecx, eax
push 0x506988
call fcn.004b6280
lea edi, [esp + 0x78]
mov ecx, edi
call fcn.004379a0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004293c0
add esp, 8
mov byte [esi + 0x108], 1
mov ecx, edi
push 0x506a25
call fcn.004b5b10
mov ecx, esi
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.00415cd0
lea eax, [esp + 0xb4]
cmp byte [eax - 0x31], 0
jns 0x415a9b
push dword [esp + 0x78]
call fcn.0048b376
add esp, 4
mov bl, byte [esp + 0x33]
test bl, bl
jns 0x415aaf
push dword [esp + 0x28]
call fcn.0048b376
add esp, 4
cmp byte [esp + 0x43], 0
jns 0x415ac2
push dword [esp + 0x38]
call fcn.0048b376
add esp, 4
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0048b980
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4