Function at 0x10013270
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x944]
sub esp, 0x944
push 0xffffffffffffffff
push 0x100399bd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10059024]
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.10010bc0
mov ebx, dword [ebp - 0x24]
mov esi, 0x10049620
sub esi, 2
mov edi, ebx
add esp, 4
mov eax, esi
sub edi, 0x10049620
nop word [eax + eax]
movzx edx, word [edi + eax + 2]
lea eax, [eax + 2]
movzx ecx, word [eax]
cmp dx, cx
jb 0x1001330e
ja 0x1001330e
test dx, dx
je 0x1001334e
test cx, cx
jne 0x100132f0
jmp 0x1001334e
mov edi, dword [ebp + 0x94c]
lea eax, [ebp - 0x28]
push eax
mov edx, str.AI_NEWINST
mov ecx, edi
call fcn.10010bc0
mov ebx, dword [ebp - 0x24]
add esp, 4
mov edx, ebx
sub edx, 0x10049620
movzx ecx, word [esi + edx + 2]
lea esi, [esi + 2]
movzx eax, word [esi]
cmp cx, ax
jb 0x10013369
ja 0x10013369
test cx, cx
je 0x1001334e
test ax, ax
jne 0x10013332
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100139c4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100139c4
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.10010bc0
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 0x1001344c
push 0x1004c3c8
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 0x100469b0
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 0x10013556
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x100134c8
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 0x100134e4
push eax
call esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x100134fd
push edi
call esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10013516
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 0x1001354c
push eax
call esi
mov eax, 1
jmp 0x100139c6
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 0x1001370e
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edi
jmp 0x10013583
mov edi, dword [ebp - 0x2c]
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x100135a8
mov ecx, eax
nop
cmp cx, 0x3b
je 0x10013783
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10013590
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 0x100135df
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 0x100135d0
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 0x100136f8
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 0x100136f8
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 0x10013828
push 0xa
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xffffffff
lea ecx, [ebp + 0x920]
call fcn.1000fd60
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 0x100136f5
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 0x100137c2
mov byte [ebp - 4], 5
test esi, esi
je 0x100136e7
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 0x10013580
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov esi, dword [ebp - 0x34]
mov eax, edx
cmp word [edx], cx
je 0x10013749
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10013720
test ecx, ecx
je 0x10013749
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 0x1001375b
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 0x10013956
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x1001395c
test esi, esi
je 0x100135a8
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x4c
jne 0x100135ae
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 0x100135ae
push 0xa
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xffffffff
mov ecx, esi
call fcn.1000fd60
add esp, 4
mov edi, eax
mov byte [ebp - 4], 5
test esi, esi
je 0x100137e9
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 0x100136f8
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.1000f370
add esp, 4
test al, al
jne 0x100136fb
cmp byte [ebp - 0xd], al
je 0x1001389b
xor ecx, ecx
mov eax, ebx
cmp word [ebx], cx
je 0x1001385c
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10013852
cmp word [ebx + ecx*2 - 2], 0x5c
jne 0x1001386b
xor eax, eax
mov word [ebx + ecx*2 - 2], ax
mov esi, dword [ebp + 0x94c]
lea edx, [ebp - 0x50]
mov ecx, esi
call fcn.10013030
test al, al
jne 0x100138f8
mov eax, dword [ebp - 0x40]
mov edx, esi
push ebx
push ebx
push eax
push str.APPDIR
mov ecx, str.ComboBox
call fcn.100101a0
add esp, 0x10
jmp 0x100138f8
cmp byte [ebp - 0xe], 0
je 0x100138b5
lea eax, [ebp + 0x900]
push eax
lea eax, [ebp + 0x8e0]
push eax
call esi
test eax, eax
jns 0x100138f8
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 0x100138f4
movzx ecx, word [ebx]
mov esi, dword [ebp - 0x30]
mov eax, esi
test cx, cx
je 0x100138ef
mov edx, ebx
sub edx, esi
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x100138e0
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 0xe], 1
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x1001390b
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10013901
lea eax, [edi + ecx*2]
movzx ecx, word [ebx]
test cx, cx
je 0x1001392f
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 0x10013920
xor ecx, ecx
mov word [eax], cx
mov eax, edi
cmp word [edi], cx
je 0x1001394a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10013940
mov dword [edi + ecx*2], 0x3b
jmp 0x100136fb
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 0x10013975
push edi
call esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1001398e
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 0x100139c4
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.10024a34
lea esp, [ebp + 0x944]
pop ebp
ret 4