Function at 0x1001a010
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x944]
sub esp, 0x944
push 0xffffffffffffffff
push 0x10044ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp + 0x940], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 0x94c]
mov edx, str.MSINEWINSTANCE
push eax
call fcn.10016940
mov ebx, dword [ebp - 0x24]
mov esi, 0x10056584
sub esi, 2
mov edi, ebx
add esp, 4
mov eax, esi
sub edi, 0x10056584
nop word [eax + eax]
movzx edx, word [edi + eax + 2]
lea eax, [eax + 2]
movzx ecx, word [eax]
cmp dx, cx
jb 0x1001a0ae
ja 0x1001a0ae
test dx, dx
je 0x1001a0ee
test cx, cx
jne 0x1001a090
jmp 0x1001a0ee
mov edi, dword [ebp + 0x94c]
lea eax, [ebp - 0x28]
push eax
mov edx, str.AI_NEWINST
mov ecx, edi
call fcn.10016940
mov ebx, dword [ebp - 0x24]
add esp, 4
mov edx, ebx
sub edx, 0x10056584
movzx ecx, word [esi + edx + 2]
lea esi, [esi + 2]
movzx eax, word [esi]
cmp cx, ax
jb 0x1001a109
ja 0x1001a109
test cx, cx
je 0x1001a0ee
test ax, ax
jne 0x1001a0d2
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1001a764
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1001a764
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x800
push 0x40
call ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
xor ecx, ecx
push 0x800
mov word [eax], cx
push 0x40
mov dword [ebp - 0x1c], 0x800
call ebx
mov ebx, eax
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push eax
lea eax, [ebp + 0x920]
mov dword [ebp - 0x78], 0x20
push eax
push str.ProductLanguage
push edi
call esi
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x68], edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x38]
mov ecx, dword [ebp + 0x94c]
mov edx, str.AI_INTANCE_LOCATION
push eax
call fcn.10016940
add esp, 4
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push str.AI_UPGRADE
push dword [ebp + 0x94c]
call esi
test eax, eax
jne 0x1001a1ec
push 0x100581e0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete byte [ebp - 0xd]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10053794
push str.OLDPRODUCTS
push dword [ebp + 0x94c]
call esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x18], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push ecx
push eax
push str.OLDPRODUCTS
push dword [ebp + 0x94c]
call esi
test eax, eax
je 0x1001a2f6
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1001a268
push eax
call esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001a284
push eax
call esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x1001a29d
push edi
call esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1001a2b6
push ebx
call esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
push dword [ebp - 0x30]
call esi
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001a2ec
push eax
call esi
mov eax, 1
jmp 0x1001a766
mov edx, dword [ebp - 0x18]
xor eax, eax
mov byte [ebp - 0xe], 0
mov word [ebp + 0x8e0], ax
mov dword [ebp - 0x40], 1
test edx, edx
je 0x1001a4ae
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edi
jmp 0x1001a323
mov edi, dword [ebp - 0x2c]
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x1001a348
mov ecx, eax
nop
cmp cx, 0x3b
je 0x1001a523
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x1001a330
mov eax, dword [ebp - 0x20]
lea esi, [eax + edx*2]
movzx ecx, word [edi]
lea eax, [esi + 2]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x800]
test cx, cx
je 0x1001a37f
mov edx, edi
mov esi, eax
sub edx, esi
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1001a370
mov esi, dword [sym.imp.msi.dll_MsiGetPropertyW]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x8c0]
mov dword [ebp - 0x3c], 0x20
push eax
push str.Language
push edi
call esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x20
push eax
lea eax, [ebp + 0x900]
push eax
push str.VersionString
push edi
call esi
test eax, eax
jne 0x1001a498
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x800
push eax
push ebx
push str.InstallLocation
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x1001a498
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp + 0x920]
push eax
lea eax, [ebp + 0x8c0]
push eax
call esi
test eax, eax
je 0x1001a5c8
push 0xa
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xffffffff
lea ecx, [ebp + 0x920]
call fcn.10015a30
add esp, 4
movzx ebx, ax
push 0
push 0
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
je 0x1001a495
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 6
push edi
push esi
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1001a562
mov byte [ebp - 4], 5
test esi, esi
je 0x1001a487
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
sar eax, 1
cmp eax, edx
jb 0x1001a320
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov esi, dword [ebp - 0x34]
mov eax, edx
cmp word [edx], cx
je 0x1001a4e9
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001a4c0
test ecx, ecx
je 0x1001a4e9
cmp dword [ebp - 0x38], 1
mov eax, edx
cmova eax, esi
push eax
push str.APPDIR
push dword [ebp + 0x94c]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1001a4fb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 3
test esi, esi
je 0x1001a6f6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x1001a6fc
test esi, esi
je 0x1001a348
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x4c
jne 0x1001a34e
push 0x27
push ecx
lea eax, [ebp + 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
lea edi, [ebp + 0x860]
mov word [ebp + 0x8ae], ax
jmp 0x1001a34e
push 0xa
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xffffffff
mov ecx, esi
call fcn.10015a30
add esp, 4
mov edi, eax
mov byte [ebp - 4], 5
test esi, esi
je 0x1001a589
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x58], 0
push ebx
push 0
push edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x54], 0
jne 0x1001a498
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [ebp - 0x14]
mov edx, ebx
inc dword [ebp - 0x40]
mov ecx, edi
push 0
call fcn.10015020
add esp, 4
test al, al
jne 0x1001a49b
cmp byte [ebp - 0xd], al
je 0x1001a63b
xor ecx, ecx
mov eax, ebx
cmp word [ebx], cx
je 0x1001a5fc
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001a5f2
cmp word [ebx + ecx*2 - 2], 0x5c
jne 0x1001a60b
xor eax, eax
mov word [ebx + ecx*2 - 2], ax
mov esi, dword [ebp + 0x94c]
lea edx, [ebp - 0x50]
mov ecx, esi
call fcn.10019dd0
test al, al
jne 0x1001a698
mov eax, dword [ebp - 0x40]
mov edx, esi
push ebx
push ebx
push eax
push str.APPDIR
mov ecx, str.ComboBox
call fcn.10015e70
add esp, 0x10
jmp 0x1001a698
cmp byte [ebp - 0xe], 0
je 0x1001a655
lea eax, [ebp + 0x900]
push eax
lea eax, [ebp + 0x8e0]
push eax
call esi
test eax, eax
jns 0x1001a698
lea eax, [ebp + 0x900]
push eax
lea eax, [ebp + 0x8e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x1c], 0
jbe 0x1001a694
movzx ecx, word [ebx]
mov esi, dword [ebp - 0x30]
mov eax, esi
test cx, cx
je 0x1001a68f
mov edx, ebx
sub edx, esi
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1001a680
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 0xe], 1
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x1001a6ab
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001a6a1
lea eax, [edi + ecx*2]
movzx ecx, word [ebx]
test cx, cx
je 0x1001a6cf
mov edx, ebx
sub edx, eax
nop word [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1001a6c0
xor ecx, ecx
mov word [eax], cx
mov eax, edi
cmp word [edi], cx
je 0x1001a6ea
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1001a6e0
mov dword [edi + ecx*2], 0x3b
jmp 0x1001a49b
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x1001a715
push edi
call esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1001a72e
push ebx
call esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
push dword [ebp - 0x30]
call esi
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001a764
push eax
call esi
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x940]
xor ecx, ebp
call fcn.1002c803
lea esp, [ebp + 0x944]
pop ebp
ret 4