Function at 0x415570
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 dword [esp + 8], ecx
mov eax, dword [0x526014]
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.0042b4c0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4155ba
mov eax, dword [esp + 0x3c]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4155fa
lea esi, [esp + 0x78]
mov ecx, esi
push 0x153
push str.GetInfoFromResources
push 2
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50bc86
push str.Partner_package_is_empty.
call fcn.004be8c0
mov ecx, esi
call fcn.0043bef0
jmp 0x415708
lea ecx, [esp + 0x78]
push 0x14e
push str.GetInfoFromResources
push 0
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50bc50
push str.Extract_Partner_package:
call fcn.004be8c0
mov eax, dword [esp + 8]
lea edi, [eax + 0x98]
movzx eax, byte [eax + 0xa3]
mov ecx, edi
test al, al
jns 0x41564c
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x98]
mov eax, dword [eax + 0x9c]
lea esi, [esp + 0x68]
push eax
push ecx
push esi
call fcn.00473260
add esp, 0xc
movzx eax, byte [esi + 0xb]
test al, al
jns 0x41566b
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0xb4]
push eax
push esi
call fcn.0046d820
cmp byte [esp + 0x73], 0
jns 0x41568c
push dword [esp + 0x68]
call fcn.00493d6d
add esp, 4
lea ecx, [esp + 0x80]
push 0x50bc52
call fcn.004bf020
movzx edx, byte [esp + 0x43]
test dl, dl
jns 0x4156aa
mov edx, dword [esp + 0x3c]
mov ecx, eax
push edx
call fcn.004bf0a0
mov ecx, eax
push 0x50bc58
call fcn.004bf020
lea esi, [esp + 0x78]
mov ecx, esi
call fcn.0043bef0
push ebx
push edi
call fcn.0042c1a0
add esp, 8
mov edi, dword [esp + 8]
mov byte [edi + 0x115], 1
mov ecx, esi
push str.partner_config
call fcn.004be760
mov ecx, edi
push esi
push ebx
call fcn.004161e0
cmp byte [esi + 0xb], 0
jns 0x415705
push dword [esp + 0x78]
call fcn.00493d6d
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 0x415788
mov ecx, edi
push 4
push str.auto
push 0xffffffffffffffff
push 0
call fcn.0046e020
test eax, eax
jne 0x41577f
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 0x4158f6
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
jmp 0x41593e
mov cl, byte [edi + 0xb]
mov eax, dword [edi + 4]
movzx edx, cl
test cl, cl
cmovs edx, eax
test edx, edx
je 0x415de0
xor edx, edx
dec edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
test cl, cl
jns 0x4157b6
lea ecx, [esp + 0x68]
push eax
push dword [edi]
call fcn.0046d3c0
jmp 0x4157c7
mov eax, dword [edi + 8]
mov dword [esp + 0x70], eax
movsd xmm0, qword [edi]
movsd qword [esp + 0x68], xmm0
movzx eax, byte [esp + 0x73]
test al, al
jns 0x4157da
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
jmp 0x4157de
lea esi, [esp + 0x68]
xor ebx, ebx
test eax, eax
je 0x415807
mov edi, eax
movsx eax, byte [esi + ebx]
push eax
call fcn.004a9445
add esp, 4
mov byte [esi + ebx], al
mov eax, edi
inc ebx
cmp edi, ebx
jne 0x4157e4
mov bl, byte [esp + 0x33]
shr bl, 7
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x78]
push 0x166
push str.GetInfoFromResources
push 0
call fcn.0043bcc0
lea esi, [esp + 0xb4]
mov ecx, esi
push 0x50bcc3
push str.Fetching_defined
call fcn.004be8c0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x415841
mov eax, dword [edi + 4]
mov edi, dword [edi]
add eax, edi
mov ecx, esi
push eax
push edi
call fcn.004be8c0
mov ecx, esi
push 0x50bcab
push str._package
call fcn.004be8c0
lea esi, [esp + 0x78]
mov ecx, esi
call fcn.0043bef0
lea edi, [esp + 0x5c]
mov ecx, edi
push str.BRAND_
call fcn.004be760
lea edx, [esp + 0x68]
movzx eax, byte [edx + 0xb]
test al, al
cmovs eax, dword [edx + 4]
cmovs edx, dword [edx]
mov ecx, edi
push eax
push edx
call fcn.0046d820
push eax
push esi
call fcn.0042b4e0
add esp, 8
test bl, bl
je 0x4158ac
push dword [esp + 0x28]
call fcn.00493d6d
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 0x4158e2
push dword [esp + 0x5c]
call fcn.00493d6d
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x415de0
push dword [esp + 0x68]
jmp 0x415dd8
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 0x415932
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 0x41593e
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 0x65
push eax
push esi
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50bff5
push str.User_region:
call fcn.004be8c0
movzx eax, byte [esp + 0x73]
mov edi, str.AutodetectBrandName
test al, al
jns 0x415982
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
jmp 0x415986
lea edx, [esp + 0x68]
lea ecx, [esp + 0xb4]
add eax, edx
push eax
push edx
call fcn.004be8c0
mov ecx, ebx
call fcn.0043bef0
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.0042b910
add esp, 4
lea ecx, [esp + 0x78]
push 0x67
push edi
push esi
call fcn.0043bcc0
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x50c003
push str.User_locale:
call fcn.004be8c0
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4159ea
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
add eax, ebx
mov ecx, edi
push eax
push ebx
call fcn.004be8c0
lea ecx, [esp + 0x78]
call fcn.0043bef0
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 + 0x18], eax
push dword [eax*4 + 0x50c004]
call fcn.004be760
mov al, byte [esp + 0x5b]
movzx ecx, al
mov edx, ecx
test al, al
jns 0x415a39
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x415aea
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 + 0x18]
push dword [eax*4 + 0x50c008]
call fcn.004be760
mov al, byte [esp + 0x4f]
movzx ecx, al
mov edx, ecx
test al, al
jns 0x415a75
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x415b57
lea ecx, [esp + 0x78]
push 0x75
push str.AutodetectBrandName
push 0
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50c079
push str.Detected_brand_name:
call fcn.004be8c0
mov eax, dword [esp + 0x18]
mov ebx, dword [eax*4 + 0x50c00c]
push ebx
call fcn.004acf70
add esp, 4
add eax, ebx
lea ecx, [esp + 0xb4]
push eax
push ebx
call fcn.004be8c0
lea ecx, [esp + 0x78]
call fcn.0043bef0
mov ecx, edi
push ebx
call fcn.004be760
mov al, byte [esp + 0x4f]
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x415bbf
mov dword [esp + 0xc], esi
movzx ebx, byte [esp + 0x73]
mov esi, ebx
mov dword [esp + 0x14], ebx
test bl, bl
jns 0x415b01
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x10], 4
cmp edx, esi
jne 0x415bb5
mov byte [esp + 7], al
lea ebx, [esp + 0x68]
cmp byte [esp + 0x14], 0
jns 0x415b24
mov ebx, dword [esp + 0x68]
mov al, byte [esp + 7]
test al, al
mov esi, dword [esp + 0xc]
jns 0x415bfa
push edx
push ebx
push dword [esp + 0x58]
call fcn.004960fd
add esp, 0xc
mov dword [esp + 0x10], 4
test eax, eax
je 0x415a41
jmp 0x415bd7
mov dword [esp + 0xc], esi
movzx ebx, byte [esp + 0x67]
mov esi, ebx
mov dword [esp + 0x14], ebx
test bl, bl
jns 0x415b6e
mov esi, dword [esp + 0x60]
mov dword [esp + 0x10], 4
cmp edx, esi
jne 0x415bbb
lea ebx, [esp + 0x5c]
cmp byte [esp + 0x14], 0
mov esi, dword [esp + 0xc]
jns 0x415b8d
mov ebx, dword [esp + 0x5c]
test al, al
jns 0x415c15
push edx
push ebx
push dword [esp + 0x4c]
call fcn.004960fd
add esp, 0xc
mov dword [esp + 0x10], 4
test eax, eax
je 0x415a7d
jmp 0x415bc3
mov esi, dword [esp + 0xc]
jmp 0x415bd3
mov esi, dword [esp + 0xc]
test al, al
jns 0x415bcf
push dword [esp + 0x44]
call fcn.00493d6d
add esp, 4
mov al, byte [esp + 0x5b]
test al, al
jns 0x415be3
push dword [esp + 0x50]
call fcn.00493d6d
add esp, 4
cmp dword [esp + 0x10], 4
jne 0x415c8a
inc esi
cmp esi, 8
jne 0x415a02
jmp 0x415c30
je 0x415a41
xor edx, edx
mov ah, byte [esp + edx + 0x50]
cmp ah, byte [ebx + edx]
jne 0x415bd3
inc edx
cmp ecx, edx
jne 0x415c02
jmp 0x415a41
je 0x415a7d
xor edx, edx
mov ah, byte [esp + edx + 0x44]
cmp ah, byte [ebx + edx]
jne 0x415bbf
inc edx
cmp ecx, edx
jne 0x415c1d
jmp 0x415a7d
lea ecx, [esp + 0x78]
push 0x79
push str.AutodetectBrandName
push 0
call fcn.0043bcc0
lea ebx, [esp + 0xb4]
mov ecx, ebx
push 0x50c0a0
push str.Didnt_found_brand_name._Use_default:
call fcn.004be8c0
mov esi, str.yandex
push esi
call fcn.004acf70
add esp, 4
lea eax, [eax + str.yandex]
mov ecx, ebx
push eax
push esi
call fcn.004be8c0
lea ecx, [esp + 0x78]
call fcn.0043bef0
lea ecx, [esp + 0x1c]
push esi
call fcn.004be760
cmp byte [esp + 0x67], 0
jns 0x415c9d
push dword [esp + 0x5c]
call fcn.00493d6d
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x415cb0
push dword [esp + 0x68]
call fcn.00493d6d
add esp, 4
movzx eax, byte [esp + 0x27]
test al, al
jns 0x415cc1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
je 0x415ce7
mov esi, eax
movsx eax, byte [edi + ebx]
push eax
call fcn.004a9445
add esp, 4
mov byte [edi + ebx], al
mov eax, esi
inc ebx
cmp esi, ebx
jne 0x415cc7
mov bl, byte [esp + 0x33]
shr bl, 7
lea ecx, [esp + 0x78]
push 0x15d
push str.GetInfoFromResources
push 0
call fcn.0043bcc0
lea edi, [esp + 0xb4]
mov ecx, edi
push 0x50bca2
push str.Fetching_autodetected
call fcn.004be8c0
lea esi, [esp + 0x1c]
movzx eax, byte [esi + 0xb]
mov edx, esi
test al, al
jns 0x415d2a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, edx
mov ecx, edi
push eax
push edx
call fcn.004be8c0
mov ecx, edi
push 0x50bcab
push str._package
call fcn.004be8c0
lea ecx, [esp + 0x78]
call fcn.0043bef0
lea edi, [esp + 0x68]
mov ecx, edi
push str.BRAND_
call fcn.004be760
movzx eax, byte [esp + 0x27]
test al, al
jns 0x415d70
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, edi
push eax
push esi
call fcn.0046d820
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0042b4e0
add esp, 8
test bl, bl
je 0x415d97
push dword [esp + 0x28]
call fcn.00493d6d
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 0x415dcd
push dword [esp + 0x68]
call fcn.00493d6d
add esp, 4
cmp byte [esp + 0x27], 0
jns 0x415de0
push dword [esp + 0x1c]
call fcn.00493d6d
add esp, 4
mov bl, byte [esp + 0x33]
test bl, bl
mov eax, dword [esp + 0x2c]
movzx esi, bl
mov ecx, esi
cmovs ecx, eax
test ecx, ecx
jne 0x415e6a
lea esi, [esp + 0x78]
mov ecx, esi
push 0x16b
push str.GetInfoFromResources
push 0
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50bcdc
push str.Fetching_default_package
call fcn.004be8c0
mov ecx, esi
call fcn.0043bef0
push 0x13f
push esi
call fcn.0042b4c0
add esp, 8
test bl, bl
jns 0x415e48
push dword [esp + 0x28]
call fcn.00493d6d
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 esi, bl
test bl, bl
cmovs esi, eax
test esi, esi
jne 0x415eac
lea esi, [esp + 0x78]
mov ecx, esi
push 0x176
push str.GetInfoFromResources
push 2
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50bd19
push str.Brand_package_is_empty.
call fcn.004be8c0
mov ecx, esi
call fcn.0043bef0
jmp 0x415fb2
lea ecx, [esp + 0x78]
push 0x171
push str.GetInfoFromResources
push 0
call fcn.0043bcc0
lea ecx, [esp + 0xb4]
push 0x50bcf4
push str.Extract_Brand_package:
call fcn.004be8c0
mov eax, dword [esp + 8]
lea ebx, [eax + 0x8c]
movzx eax, byte [eax + 0x97]
mov ecx, ebx
test al, al
jns 0x415efe
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x8c]
mov eax, dword [eax + 0x90]
lea edi, [esp + 0x68]
push eax
push ecx
push edi
call fcn.00473260
add esp, 0xc
movzx eax, byte [edi + 0xb]
test al, al
jns 0x415f1d
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
lea ecx, [esp + 0xb4]
push eax
push edi
call fcn.0046d820
cmp byte [esp + 0x73], 0
jns 0x415f3e
push dword [esp + 0x68]
call fcn.00493d6d
add esp, 4
lea ecx, [esp + 0x80]
push 0x50bc52
call fcn.004bf020
mov ecx, eax
push esi
call fcn.004bf0a0
mov ecx, eax
push 0x50bc58
call fcn.004bf020
lea esi, [esp + 0x78]
mov ecx, esi
call fcn.0043bef0
lea edi, [esp + 0x28]
push edi
push ebx
call fcn.0042c1a0
add esp, 8
mov ebx, dword [esp + 8]
mov byte [ebx + 0x114], 1
mov ecx, esi
push 0x50bcf5
call fcn.004be760
mov ecx, ebx
push esi
push edi
call fcn.004161e0
cmp byte [esi + 0xb], 0
jns 0x415fae
push dword [esp + 0x78]
call fcn.00493d6d
add esp, 4
mov bl, byte [esp + 0x33]
test bl, bl
jns 0x415fc2
push dword [esp + 0x28]
call fcn.00493d6d
add esp, 4
cmp byte [esp + 0x43], 0
jns 0x415fd5
push dword [esp + 0x38]
call fcn.00493d6d
add esp, 4
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.004948c8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4