Function at 0x417d20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov dword [esp + 4], ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0xb0], eax
xor eax, eax
dec eax
lea edi, [esp + 0x28]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push 0x140
push edi
call fcn.004383d0
add esp, 8
movzx eax, byte [edi + 0xb]
test al, al
jns 0x417d6a
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x417f12
lea ecx, [esp + 0x68]
push 0x16a
push str.GetInfoFromResources
push 0
call fcn.00455190
lea esi, [esp + 0x70]
lea ecx, [esp + 0xa4]
push 0x521cd8
push str.Extract_Partner_package:
call fcn.004147c0
mov eax, dword [esp + 4]
add eax, 0xa4
mov ecx, esi
mov dword [esp], eax
push eax
call fcn.00414700
mov esi, eax
add esi, 0x34
lea ebx, [esp + 0x58]
push 2
push 0x521cda
push ebx
call fcn.004db310
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x417dde
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ecx, esi
push eax
push ebx
call fcn.00478310
cmp byte [esp + 0x63], 0
jns 0x417dfa
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
movzx eax, byte [esp + 0x33]
test al, al
jns 0x417e07
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x58]
push eax
push ebx
call fcn.004dcdd0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x417e25
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ecx, esi
push eax
push ebx
call fcn.00478310
cmp byte [esp + 0x63], 0
jns 0x417e41
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
lea ebx, [esp + 0x58]
push 2
push 0x521ce0
push ebx
call fcn.004db310
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x417e65
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ecx, esi
push eax
push ebx
call fcn.00478310
cmp byte [esp + 0x63], 0
jns 0x417e81
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
lea esi, [esp + 0x68]
mov ecx, esi
call fcn.004553c0
push edi
push dword [esp + 4]
call fcn.00438db0
add esp, 8
mov eax, dword [esp + 4]
mov byte [eax + 0x131], 1
push 0x10
call fcn.004dfb05
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0x80000010
mov dword [esi + 4], 0xe
cmp eax, str.partner_config
ja 0x417ed4
lea ecx, [eax + 0xe]
cmp ecx, str.partner_config
ja 0x418907
mov word [eax + 0xc], 0x6769
mov dword [eax + 8], 0x666e6f63
mov dword [eax + 4], 0x5f72656e
mov dword [eax], 0x74726170
mov byte [eax + 0xe], 0
mov ecx, dword [esp + 4]
push esi
push edi
call fcn.00418b30
cmp byte [esp + 0x73], 0
jns 0x417f46
push dword [esp + 0x68]
call fcn.004dfb35
add esp, 4
jmp 0x417f46
lea esi, [esp + 0x68]
mov ecx, esi
push 0x16f
push str.GetInfoFromResources
push 2
call fcn.00455190
lea ecx, [esp + 0xa4]
push 0x521d0e
push str.Partner_package_is_empty.
call fcn.004147c0
mov ecx, esi
call fcn.004553c0
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
movzx ecx, byte [esi + 0xb]
test cl, cl
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov edi, ecx
cmovs edi, edx
cmovs esi, eax
test edi, edi
js 0x4188f9
je 0x417f7f
test esi, esi
je 0x418900
cmp edi, 4
jne 0x417ffa
cmp dword [esi], 0x6f747561
jne 0x418002
xor esi, esi
dec esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
cmp eax, esi
je 0x41840c
xor ecx, ecx
lea edx, [esp + 0x68]
mov dword [edx], ecx
mov word [edx + 4], 0
push ecx
push 3
push edx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x41840c
mov byte [esp + 0x63], 2
mov al, byte [esp + 0x68]
mov cl, byte [esp + 0x6a]
mov byte [esp + 0x58], al
mov byte [esp + 0x59], cl
mov byte [esp + 0x5a], 0
jmp 0x41841d
test edi, edi
je 0x418174
xor esi, esi
dec esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
test cl, cl
js 0x418038
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [esp + 0x60], eax
movsd xmm0, qword [ecx]
movsd qword [esp + 0x58], xmm0
movzx ebx, byte [esp + 0x63]
test bl, bl
js 0x418045
lea edi, [esp + 0x58]
jmp 0x41804d
lea ecx, [esp + 0x58]
push edx
push eax
call fcn.00477e60
jmp 0x418029
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x418068
xor esi, esi
movsx eax, byte [edi + esi]
push eax
call fcn.004f6489
add esp, 4
mov byte [edi + esi], al
inc esi
cmp ebx, esi
jne 0x418053
lea ebx, [esp + 0x68]
mov ecx, ebx
push 0x182
push str.GetInfoFromResources
push 0
call fcn.00455190
lea edi, [esp + 0xa4]
mov ecx, edi
push 0x521d46
push str.Fetching_defined
call fcn.004147c0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xb]
test al, al
jns 0x4180a7
mov eax, dword [edx + 4]
mov edx, dword [edx]
add eax, edx
mov ecx, edi
push eax
push edx
call fcn.004147c0
mov ecx, edi
push 0x521d2e
push str._package
call fcn.004147c0
mov ecx, ebx
call fcn.004553c0
lea eax, [esp + 0x4c]
mov byte [eax + 0xb], 6
cmp eax, str.BRAND_
ja 0x4180e8
lea eax, [esp + 0x52]
cmp eax, str.BRAND_
ja 0x418907
lea ecx, [esp + 0x4c]
mov word [ecx + 4], 0x5f44
mov dword [ecx], 0x4e415242
lea eax, [esp + 0x58]
movzx edx, byte [eax + 0xb]
test dl, dl
cmovs edx, dword [eax + 4]
mov byte [ecx + 6], 0
cmovs eax, dword [eax]
push edx
push eax
call fcn.00478310
push eax
push ebx
call fcn.004383f0
add esp, 8
cmp byte [esp + 0x23], 0
jns 0x418131
push dword [esp + 0x18]
call fcn.004dfb35
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 0x18], xmm0
xor eax, eax
mov byte [esp + 0x73], al
mov byte [esp + 0x68], al
cmp byte [esp + 0x57], al
jns 0x418161
push dword [esp + 0x4c]
call fcn.004dfb35
add esp, 4
cmp byte [esp + 0x63], 0
jns 0x418174
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
mov bl, byte [esp + 0x23]
test bl, bl
mov eax, dword [esp + 0x1c]
movzx edi, bl
mov ecx, edi
cmovs ecx, eax
test ecx, ecx
jne 0x4181fb
lea esi, [esp + 0x68]
mov ecx, esi
push 0x187
push str.GetInfoFromResources
push 0
call fcn.00455190
lea ecx, [esp + 0xa4]
push 0x521d5f
push str.Fetching_default_package
call fcn.004147c0
mov ecx, esi
call fcn.004553c0
push 0x13f
push esi
call fcn.004383d0
add esp, 8
test bl, bl
jns 0x4181dc
push dword [esp + 0x18]
call fcn.004dfb35
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 0x18], xmm0
mov bl, byte [esp + 0x23]
mov eax, dword [esp + 0x1c]
movzx edi, bl
test bl, bl
cmovs edi, eax
test edi, edi
je 0x4183d6
lea ecx, [esp + 0x68]
push 0x18d
push str.GetInfoFromResources
push 0
call fcn.00455190
lea esi, [esp + 0x70]
lea ecx, [esp + 0xa4]
push 0x521d77
push str.Extract_Brand_package:
call fcn.004147c0
mov eax, dword [esp + 4]
add eax, 0x98
mov ecx, esi
mov dword [esp], eax
push eax
call fcn.00414700
mov esi, eax
add esi, 0x34
lea ebx, [esp + 0x58]
push 2
push 0x521cda
push ebx
call fcn.004db310
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x418274
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ecx, esi
push eax
push ebx
call fcn.00478310
cmp byte [esp + 0x63], 0
jns 0x418290
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
lea ebx, [esp + 0x58]
push edi
push ebx
call fcn.004dcdd0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4182ae
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ecx, esi
push eax
push ebx
call fcn.00478310
cmp byte [esp + 0x63], 0
jns 0x4182ca
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
lea edi, [esp + 0x58]
push 2
push 0x521ce0
push edi
call fcn.004db310
add esp, 0xc
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4182ee
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov ecx, esi
push eax
push edi
call fcn.00478310
cmp byte [esp + 0x63], 0
jns 0x41830a
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
lea esi, [esp + 0x68]
mov ecx, esi
call fcn.004553c0
lea edi, [esp + 0x18]
push edi
push dword [esp + 4]
call fcn.00438db0
add esp, 8
mov eax, dword [esp + 4]
mov byte [eax + 0x130], 1
push 0x10
call fcn.004dfb05
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0x80000010
mov dword [esi + 4], 0xc
cmp eax, str.brand_config
ja 0x418361
lea ecx, [eax + 0xc]
cmp ecx, str.brand_config
ja 0x418907
mov dword [eax + 8], 0x6769666e
mov dword [eax + 4], 0x6f635f64
mov dword [eax], 0x6e617262
mov byte [eax + 0xc], 0
mov ecx, dword [esp + 4]
push esi
push edi
call fcn.00418b30
cmp byte [esp + 0x73], 0
jns 0x418397
push dword [esp + 0x68]
call fcn.004dfb35
add esp, 4
mov bl, byte [esp + 0x23]
test bl, bl
jns 0x4183ab
push dword [esp + 0x18]
call fcn.004dfb35
add esp, 4
cmp byte [esp + 0x33], 0
jns 0x4183be
push dword [esp + 0x28]
call fcn.004dfb35
add esp, 4
mov ecx, dword [esp + 0xb0]
xor ecx, ebp
call fcn.004e0685
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea esi, [esp + 0x68]
mov ecx, esi
push 0x192
push str.GetInfoFromResources
push 2
call fcn.00455190
lea ecx, [esp + 0xa4]
push 0x521d9c
push str.Brand_package_is_empty.
call fcn.004147c0
mov ecx, esi
call fcn.004553c0
jmp 0x41839b
xorps xmm0, xmm0
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0
mov eax, str.AutodetectBrandName
xor esi, esi
lea ecx, [esp + 0x68]
push 0x7c
push eax
push esi
call fcn.00455190
lea ebx, [esp + 0xa4]
mov ecx, ebx
push 0x522302
push str.User_region:
call fcn.004147c0
movzx eax, byte [esp + 0x63]
mov edi, str.AutodetectBrandName
test al, al
js 0x41845d
lea edx, [esp + 0x58]
jmp 0x418465
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add eax, edx
mov ecx, ebx
push eax
push edx
call fcn.004147c0
lea ecx, [esp + 0x68]
call fcn.004553c0
lea ebx, [esp + 0x4c]
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push ebx
call fcn.004386a0
add esp, 4
lea ecx, [esp + 0x68]
push 0x7e
push edi
push esi
call fcn.00455190
lea edi, [esp + 0xa4]
mov ecx, edi
push 0x522310
push str.User_locale:
call fcn.004147c0
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4184c6
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
add eax, ebx
mov ecx, edi
push eax
push ebx
call fcn.004147c0
lea ecx, [esp + 0x68]
call fcn.004553c0
jmp 0x4185c3
push edi
push ebx
push dword [esp + 0x3c]
call fcn.004e1e8d
add esp, 0xc
mov edi, 4
test eax, eax
jne 0x418590
jmp 0x418526
lea ebx, [esp + 0x4c]
test dl, dl
mov esi, dword [esp]
jns 0x41850b
mov ebx, dword [esp + 0x4c]
test al, al
js 0x4184df
mov edi, 4
je 0x418526
xor edx, edx
mov ah, byte [esp + edx + 0x34]
cmp ah, byte [ebx + edx]
jne 0x41858c
inc edx
cmp ecx, edx
jne 0x418518
lea ecx, [esp + 0x68]
push 0x8c
push str.AutodetectBrandName
push 0
call fcn.00455190
lea ebx, [esp + 0xa4]
mov ecx, ebx
push 0x522389
push str.Detected_brand_name:
call fcn.004147c0
mov eax, dword [esp + 8]
mov edi, dword [eax*4 + 0x52231c]
push edi
call fcn.004fb1c0
add esp, 4
add eax, edi
mov ecx, ebx
push eax
push edi
call fcn.004147c0
lea ecx, [esp + 0x68]
call fcn.004553c0
lea ecx, [esp + 0xc]
push edi
call fcn.00414e50
mov al, byte [esp + 0x3f]
xor edi, edi
inc edi
test al, al
jns 0x41859c
push dword [esp + 0x34]
call fcn.004dfb35
add esp, 4
mov al, byte [esp + 0x4b]
test al, al
jns 0x4185b0
push dword [esp + 0x40]
call fcn.004dfb35
add esp, 4
cmp edi, 4
jne 0x41878f
inc esi
cmp esi, 8
je 0x4186cb
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esi + esi*2]
lea ecx, [esp + 0x40]
mov dword [esp + 8], eax
push dword [eax*4 + 0x522314]
call fcn.00414e50
mov al, byte [esp + 0x4b]
test al, al
mov edi, dword [esp + 0x44]
movzx ecx, al
mov ebx, ecx
cmovs ebx, edi
test ebx, ebx
mov dword [esp], esi
je 0x41864d
movzx edx, byte [esp + 0x63]
mov esi, edx
test dl, dl
jns 0x418611
mov esi, dword [esp + 0x5c]
cmp ebx, esi
je 0x41861f
mov esi, dword [esp]
mov edi, 4
jmp 0x4185a0
lea ebx, [esp + 0x58]
test dl, dl
mov esi, dword [esp]
jns 0x41862e
mov ebx, dword [esp + 0x58]
test al, al
js 0x4186ae
mov edi, 4
je 0x41864d
xor edx, edx
mov ah, byte [esp + edx + 0x40]
cmp ah, byte [ebx + edx]
jne 0x4185a0
inc edx
cmp ecx, edx
jne 0x41863b
xor eax, eax
dec eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x34]
mov eax, dword [esp + 8]
push dword [eax*4 + 0x522318]
call fcn.00414e50
mov al, byte [esp + 0x3f]
test al, al
mov edi, dword [esp + 0x38]
movzx ecx, al
mov ebx, ecx
cmovs ebx, edi
test ebx, ebx
je 0x418526
movzx edx, byte [esp + 0x57]
mov esi, edx
test dl, dl
jns 0x418699
mov esi, dword [esp + 0x50]
cmp ebx, esi
je 0x4184fc
mov esi, dword [esp]
mov edi, 4
jmp 0x41858c
push edi
push ebx
push dword [esp + 0x48]
call fcn.004e1e8d
add esp, 0xc
mov edi, 4
test eax, eax
jne 0x4185a4
jmp 0x41864d
lea esi, [esp + 0x68]
mov ecx, esi
push 0x90
push str.AutodetectBrandName
push 0
call fcn.00455190
lea ebx, [esp + 0xa4]
mov ecx, ebx
push 0x5223b0
push str.Didnt_found_brand_name._Use_default:
call fcn.004147c0
mov edi, str.yandex
push edi
call fcn.004fb1c0
add esp, 4
lea eax, [eax + str.yandex]
mov ecx, ebx
push eax
push edi
call fcn.004147c0
mov ecx, esi
call fcn.004553c0
push edi
call fcn.004fb1c0
add esp, 4
cmp eax, 0x7ffffff8
jae 0x418916
mov ebx, eax
cmp eax, 0xa
ja 0x418742
lea eax, [esp + 0xc]
mov byte [eax + 0xb], bl
jmp 0x418763
mov esi, ebx
or esi, 7
inc esi
push esi
call fcn.004dfb05
add esp, 4
mov dword [esp + 0xc], eax
or esi, 0x80000000
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
lea esi, [eax + ebx]
cmp eax, str.yandex
ja 0x418779
cmp esi, str.yandex
ja 0x418907
test ebx, ebx
je 0x41878c
push ebx
push str.yandex
push eax
call fcn.004e3510
add esp, 0xc
mov byte [esi], 0
cmp byte [esp + 0x57], 0
jns 0x4187a2
push dword [esp + 0x4c]
call fcn.004dfb35
add esp, 4
cmp byte [esp + 0x63], 0
lea edi, [esp + 0xc]
jns 0x4187b9
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
movzx ebx, byte [esp + 0x17]
test bl, bl
jns 0x4187ca
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4187e5
xor esi, esi
movsx eax, byte [edi + esi]
push eax
call fcn.004f6489
add esp, 4
mov byte [edi + esi], al
inc esi
cmp ebx, esi
jne 0x4187d0
lea esi, [esp + 0x68]
mov ecx, esi
push 0x179
push str.GetInfoFromResources
push 0
call fcn.00455190
lea edi, [esp + 0xa4]
mov ecx, edi
push 0x521d25
push str.Fetching_autodetected
call fcn.004147c0
movzx eax, byte [esp + 0x17]
test al, al
js 0x418823
lea edx, [esp + 0xc]
jmp 0x41882b
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, edi
push eax
push edx
call fcn.004147c0
mov ecx, edi
push 0x521d2e
push str._package
call fcn.004147c0
mov ecx, esi
call fcn.004553c0
lea eax, [esp + 0x58]
mov byte [eax + 0xb], 6
cmp eax, str.BRAND_
ja 0x41886c
lea eax, [esp + 0x5e]
cmp eax, str.BRAND_
ja 0x418907
lea ecx, [esp + 0x58]
mov word [ecx + 4], 0x5f44
mov dword [ecx], 0x4e415242
lea eax, [esp + 0xc]
movzx edx, byte [eax + 0xb]
test dl, dl
cmovs edx, dword [eax + 4]
mov byte [ecx + 6], 0
cmovs eax, dword [eax]
push edx
push eax
call fcn.00478310
push eax
push esi
call fcn.004383f0
add esp, 8
cmp byte [esp + 0x23], 0
jns 0x4188b5
push dword [esp + 0x18]
call fcn.004dfb35
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 0x18], xmm0
xor eax, eax
mov byte [esp + 0x73], al
mov byte [esp + 0x68], al
cmp byte [esp + 0x63], al
jns 0x4188e5
push dword [esp + 0x58]
call fcn.004dfb35
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x418174
push dword [esp + 0xc]
jmp 0x41816c
push str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x41890c
push str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x41890c
push str....._third_partylibc_srcinclude__stringchar_traits.h:245:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x521354
call fcn.0044d640
lea ecx, [esp + 0xc]
call fcn.004147a0
int3