Function at 0x1002c800
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x944]
sub esp, 0x944
push 0xffffffffffffffff
push 0x1006090d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10088020]
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 - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov esi, dword [ebp + 0x94c]
xor edi, edi
push eax
push 0x100707ac
mov dword [ebp - 0x1c], edi
mov ebx, dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push str.MSINEWINSTANCE
push esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
call ebx
lea edx, [edi + 2]
cmp eax, 0xea
jne 0x1002c8b8
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0x10], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x1c], edi
push str.MSINEWINSTANCE
mov dword [ebp - 0x20], esi
mov esi, dword [ebp + 0x94c]
push esi
call ebx
mov edx, 0x100707b8
mov ecx, edi
call fcn.1001c8f0
test eax, eax
jne 0x1002c8e3
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1002d03d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002d03d
test edi, edi
je 0x1002c8f2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
jmp 0x1002c8f8
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0x100707ac
push str.AI_NEWINST
push esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
call ebx
cmp eax, 0xea
jne 0x1002c95f
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x10], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push ecx
push eax
push str.AI_NEWINST
push dword [ebp + 0x94c]
mov dword [ebp - 0x20], esi
call ebx
mov esi, dword [ebp - 0x1c]
mov edx, 0x100707b8
mov ecx, esi
call fcn.1001c8f0
test eax, eax
jne 0x1002c989
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1002d03d
push esi
call edi
jmp 0x1002d03d
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x800
push 0x40
call esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
xor ecx, ecx
push 0x800
mov word [eax], cx
push 0x40
mov dword [ebp - 0x30], 0x800
call esi
mov esi, eax
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x920]
mov dword [ebp - 0x7c], 0x20
push eax
push str.ProductLanguage
push dword [ebp + 0x94c]
call ebx
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x100707ac
push str.AI_INTANCE_LOCATION
push dword [ebp + 0x94c]
call ebx
cmp eax, 0xea
jne 0x1002ca8d
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push str.AI_INTANCE_LOCATION
push dword [ebp + 0x94c]
call ebx
lea eax, [ebp - 0x30]
mov byte [ebp - 0x11], 0
push eax
lea eax, [ebp]
push eax
push str.AI_UPGRADE
push dword [ebp + 0x94c]
call ebx
test eax, eax
jne 0x1002cabf
push 0x10075490
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete byte [ebp - 0x11]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x100707ac
push str.OLDPRODUCTS
push dword [ebp + 0x94c]
call ebx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x24], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push ecx
push eax
push str.OLDPRODUCTS
push dword [ebp + 0x94c]
call ebx
test eax, eax
je 0x1002cbc6
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002cb35
push eax
call edi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002cb51
push eax
call edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1002cb6d
push eax
call edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x1002cb86
push esi
call edi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
push dword [ebp - 0x40]
call edi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002cbbc
push eax
call edi
mov eax, 1
jmp 0x1002d03f
mov edx, dword [ebp - 0x24]
xor eax, eax
mov byte [ebp - 0x12], 0
mov ebx, 1
mov word [ebp + 0x8e0], ax
mov dword [ebp - 0x18], ebx
test edx, edx
je 0x1002cf69
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edi
nop dword [eax]
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x1002cc18
mov ecx, eax
nop dword [eax]
cmp cx, 0x3b
je 0x1002cd74
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x1002cc00
mov eax, dword [ebp - 0x10]
lea esi, [eax + edx*2]
lea ecx, [esi + 2]
mov dword [ebp - 0x3c], ecx
lea eax, [ebp + 0x800]
movzx ecx, word [edi]
test cx, cx
je 0x1002cc4f
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 0x1002cc40
mov esi, dword [sym.imp.msi.dll_MsiGetPropertyW]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x8c0]
mov dword [ebp - 0x38], 0x20
push eax
push str.Language
push edi
call esi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x20
push eax
lea eax, [ebp + 0x900]
push eax
push str.VersionString
push edi
call esi
mov esi, dword [ebp - 0x34]
test eax, eax
jne 0x1002cf54
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x800
push eax
push esi
push str.InstallLocation
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x1002cf54
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp + 0x920]
push eax
lea eax, [ebp + 0x8c0]
push eax
call edi
test eax, eax
je 0x1002ce1c
push 0xa
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0xffffffff
lea ecx, [ebp + 0x920]
call fcn.10026db0
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 0x1002cf51
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 - 0x68], 0xffffffff
mov dword [ebp - 0x64], 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 0x1002cdb3
mov byte [ebp - 4], 5
test esi, esi
je 0x1002cd5e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
jmp 0x1002cf51
test esi, esi
je 0x1002cc18
mov ecx, dword [ebp - 0x3c]
mov eax, esi
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x4c
jne 0x1002cc1e
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 0x1002cc1e
push 0xa
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0xffffffff
mov ecx, esi
call fcn.10026db0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 5
test esi, esi
je 0x1002cdda
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x64], 0
push esi
push 0
push edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x60], 0
mov ebx, dword [ebp - 0x18]
jne 0x1002cf54
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
inc ebx
mov edx, esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x48]
mov ecx, ebx
push 0
call fcn.100263c0
add esp, 4
test al, al
jne 0x1002cf51
cmp byte [ebp - 0x11], al
je 0x1002ce98
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x1002ce51
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1002ce47
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x1002ce60
xor eax, eax
mov word [esi + ecx*2 - 2], ax
mov edi, dword [ebp + 0x94c]
lea edx, [ebp - 0x54]
mov ecx, edi
call fcn.1002c5c0
test al, al
jne 0x1002cef8
push 0x100707ac
push esi
push esi
push dword [ebp - 0x18]
mov edx, edi
mov ecx, str.ComboBox
push str.APPDIR
call fcn.100271e0
add esp, 0x14
jmp 0x1002cef8
cmp byte [ebp - 0x12], 0
je 0x1002ceb2
lea eax, [ebp + 0x900]
push eax
lea eax, [ebp + 0x8e0]
push eax
call edi
test eax, eax
jns 0x1002cef8
lea eax, [ebp + 0x900]
push eax
lea eax, [ebp + 0x8e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x30], 0
jbe 0x1002cef4
movzx eax, word [esi]
mov edi, dword [ebp - 0x40]
mov ecx, edi
mov edx, eax
test ax, ax
je 0x1002ceef
mov edx, esi
sub edx, edi
nop
mov word [ecx], ax
add ecx, 2
movzx eax, word [edx + ecx]
test ax, ax
jne 0x1002cee0
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 0x12], 1
xor ecx, ecx
mov eax, ebx
cmp word [ebx], cx
je 0x1002cf0b
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1002cf01
lea eax, [ebx + ecx*2]
movzx ecx, word [esi]
test cx, cx
je 0x1002cf2f
mov edx, esi
sub edx, eax
nop word [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1002cf20
xor ecx, ecx
mov word [eax], cx
mov eax, ebx
cmp word [ebx], cx
je 0x1002cf4a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1002cf40
mov dword [ebx + ecx*2], 0x3b
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x3c]
mov eax, edi
sub eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
sar eax, 1
cmp eax, edx
jb 0x1002cbf0
mov edi, dword [ebp - 0x40]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x1002cfa4
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1002cf75
test ecx, ecx
je 0x1002cfa4
cmp dword [ebp - 0x44], 1
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x2c]
cmovbe eax, ecx
push dword [eax + 4]
push str.APPDIR
push dword [ebp + 0x94c]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x1002cfb8
push eax
call ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002cfd4
push eax
call ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1002cff0
push eax
call ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x1002d009
push esi
call ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
push edi
call ebx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002d03d
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 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.10044a98
lea esp, [ebp + 0x944]
pop ebp
ret 4