Function at 0x100398e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100787a3
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x100c0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x19c]
push eax
push 0x100a416c
xor edi, edi
push str.MSINEWINSTANCE
mov dword [ebp - 0x1a8], edi
push esi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x19c], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea edx, [edi + 2]
cmp eax, 0xea
jne 0x100399b2
mov esi, dword [ebp - 0x19c]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0x19c], 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 - 0x19c]
push eax
push edi
mov dword [ebp - 0x1a8], edi
push str.MSINEWINSTANCE
mov dword [ebp - 0x1ac], esi
mov esi, dword [ebp - 0x1b4]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, 0x100a4178
mov ecx, edi
call fcn.10023380
test eax, eax
jne 0x100399d7
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003a502
push edi
jmp 0x1003a4fc
test edi, edi
je 0x100399e2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
push 0x100a416c
push str.AI_NEWINST
mov dword [ebp - 0x1a8], edi
push esi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x19c], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10039a65
mov esi, dword [ebp - 0x19c]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x19c], 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 - 0x19c]
push eax
push edi
mov dword [ebp - 0x1a8], edi
push str.AI_NEWINST
mov dword [ebp - 0x1ac], esi
mov esi, dword [ebp - 0x1b4]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, 0x100a4178
mov ecx, edi
call fcn.10023380
test eax, eax
je 0x100399c2
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1e8], 0xffffffff
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 1
xor ecx, ecx
push 0x800
mov word [eax], cx
push 0x40
mov dword [ebp - 0x1c4], 0x800
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1e0], 0xffffffff
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20c], 0x20
push eax
push str.ProductLanguage
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x208], 0xffffffff
mov dword [ebp - 0x204], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a4]
push eax
push 0x100a416c
push str.AI_INTANCE_LOCATION
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10039bc7
mov eax, dword [ebp - 0x1a4]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1a4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x1b8], edi
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1a4]
push eax
push edi
push str.AI_INTANCE_LOCATION
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.AI_UPGRADE
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.10002cb0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 5
push str.Value
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.10002cb0
mov byte [ebp - 4], 6
xorps xmm0, xmm0
push 8
push str.Property
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x170], 0
movups xmmword [ebp - 0x180], xmm0
mov dword [ebp - 0x16c], 0
call fcn.10002cb0
mov byte [ebp - 4], 7
xorps xmm0, xmm0
push 8
push str.Property
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x158], 0
movups xmmword [ebp - 0x168], xmm0
mov dword [ebp - 0x154], 0
call fcn.10002cb0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
mov edx, esi
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x198]
call fcn.1000ec60
add esp, 0x10
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x154]
cmp eax, 7
jbe 0x10039ce6
mov ecx, dword [ebp - 0x168]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10039cdb
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1003a535
test ecx, ecx
je 0x10039ce6
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x16c]
cmp eax, 7
jbe 0x10039d44
mov ecx, dword [ebp - 0x180]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10039d39
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1003a535
test ecx, ecx
je 0x10039d44
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x34]
cmp eax, 7
jbe 0x10039d9c
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10039d91
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1003a535
test ecx, ecx
je 0x10039d9c
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x10039deb
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10039de0
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1003a535
test ecx, ecx
je 0x10039deb
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x188]
lea edi, [ebp - 0x198]
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x184], 7
mov dword [ebp - 0x14], 7
cmova edi, dword [ebp - 0x198]
mov word [ebp - 0x28], ax
cmp esi, 2
jne 0x10039e4d
mov edx, 0x100a9680
test esi, esi
je 0x10039e44
sub edi, edx
nop dword [eax]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10039e4d
add edx, 2
sub esi, 1
jne 0x10039e30
mov byte [ebp - 0x19d], 1
jmp 0x10039e54
mov byte [ebp - 0x19d], 0
mov edi, dword [ebp - 0x1b4]
lea eax, [ebp - 0x1b0]
push eax
push 0x100a416c
push str.OLDPRODUCTS
push edi
mov dword [ebp - 0x1b0], 0
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov eax, dword [ebp - 0x1b0]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x1b0], eax
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 - 0x200], 0xffffffff
mov dword [ebp - 0x1f0], esi
mov dword [ebp - 0x1fc], esi
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x1b0]
push eax
push esi
push str.OLDPRODUCTS
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
test eax, eax
je 0x10039fcd
mov byte [ebp - 4], 0xd
test esi, esi
je 0x10039ee9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x200], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x198]
call fcn.10005610
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x10039f21
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1d8]
test eax, eax
je 0x10039f4a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x10039f73
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 4], 0
push dword [ebp - 0x19c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x10039fc3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x1003a504
mov edx, dword [ebp - 0x1b0]
xor eax, eax
mov byte [ebp - 0x19e], 0
mov word [ebp - 0x90], ax
mov dword [ebp - 0x1cc], 1
test edx, edx
je 0x1003a3d7
mov edi, esi
mov dword [ebp - 0x1d0], edi
nop dword [eax]
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x1003a028
mov ecx, eax
nop dword [eax]
cmp cx, 0x3b
je 0x1003a1a4
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x1003a010
mov eax, dword [ebp - 0x1f0]
lea esi, [eax + edx*2]
lea ecx, [esi + 2]
mov dword [ebp - 0x1d0], ecx
lea eax, [ebp - 0x150]
movzx ecx, word [edi]
test cx, cx
je 0x1003a05f
mov edx, edi
mov esi, eax
sub edx, esi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [eax + edx]
test cx, cx
jne 0x1003a050
xor ecx, ecx
mov dword [ebp - 0x1a4], 0x20
mov word [eax], cx
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x50]
push eax
push str.Language
push edi
call dword [sym.imp.msi.dll_MsiGetPropertyW]
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push str.VersionString
push edi
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x1003a3b1
mov esi, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
push esi
push str.InstallLocation
lea eax, [ebp - 0x150]
mov dword [ebp - 0x1c4], 0x800
push eax
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x1003a3b1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003a261
push 0xa
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10033e40
add esp, 4
movzx eax, ax
mov dword [ebp - 0x1c0], eax
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
je 0x1003a3b1
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 - 0x1f8], 0xffffffff
mov dword [ebp - 0x1f4], esi
mov byte [ebp - 4], 0xf
push edi
push esi
push 0x1004
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1003a1e6
mov byte [ebp - 4], 0xe
test esi, esi
je 0x1003a18b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f8], 0
jmp 0x1003a3b1
test esi, esi
je 0x1003a028
mov ecx, dword [ebp - 0x1d0]
mov eax, esi
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x4c
jne 0x1003a031
push 0x27
push ecx
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
lea edi, [ebp - 0xf0]
mov word [ebp - 0xa2], ax
jmp 0x1003a031
push 0xa
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0xffffffff
mov ecx, esi
call fcn.10033e40
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xe
test esi, esi
je 0x1003a213
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1ec]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c4]
mov dword [ebp - 0x1f4], 0
push esi
push 0
push edi
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1ec], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x1ec], 0
jne 0x1003a3b1
mov edi, dword [ebp - 0x1d8]
mov edx, esi
inc dword [ebp - 0x1cc]
mov ecx, edi
push 0
call fcn.10033470
add esp, 4
test al, al
jne 0x1003a3b1
cmp byte [ebp - 0x19d], al
je 0x1003a2ee
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x1003a29e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003a294
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x1003a2ad
xor eax, eax
mov word [esi + ecx*2 - 2], ax
mov ecx, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1e0]
call fcn.100396a0
test al, al
jne 0x1003a35b
mov eax, dword [ebp - 0x1cc]
mov ecx, str.ComboBox
mov edx, dword [ebp - 0x1b4]
push 0x100a416c
push esi
push esi
push eax
push str.APPDIR
call fcn.100342a0
add esp, 0x14
jmp 0x1003a35b
cmp byte [ebp - 0x19e], 0
je 0x1003a30c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jns 0x1003a35b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x1c4], 0
jbe 0x1003a354
movzx eax, word [esi]
mov ecx, dword [ebp - 0x19c]
mov edx, eax
test ax, ax
je 0x1003a34f
mov edx, esi
sub edx, ecx
nop word [eax + eax]
mov word [ecx], ax
add ecx, 2
movzx eax, word [ecx + edx]
test ax, ax
jne 0x1003a340
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 0x19e], 1
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x1003a36e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003a364
lea eax, [edi + ecx*2]
movzx ecx, word [esi]
test cx, cx
je 0x1003a38f
mov edx, esi
sub edx, eax
nop dword [eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x1003a380
xor ecx, ecx
mov word [eax], cx
mov eax, edi
cmp word [edi], cx
je 0x1003a3aa
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003a3a0
mov dword [edi + ecx*2], 0x3b
mov edi, dword [ebp - 0x1d0]
mov eax, edi
mov esi, dword [ebp - 0x1f0]
sub eax, esi
mov edx, dword [ebp - 0x1b0]
sar eax, 1
cmp eax, edx
jb 0x1003a000
mov edi, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x19c]
xor ecx, ecx
mov eax, edx
cmp word [edx], cx
je 0x1003a419
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x1003a3e6
test ecx, ecx
je 0x1003a419
cmp dword [ebp - 0x1d4], 1
lea ecx, [ebp - 0x1e8]
lea eax, [ebp - 0x1bc]
cmovbe eax, ecx
push dword [eax + 4]
push str.APPDIR
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 0xd
test esi, esi
je 0x1003a428
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x200], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x198]
call fcn.10005610
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x1003a460
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1d8]
test eax, eax
je 0x1003a489
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x1003a4b2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 4], 0
push dword [ebp - 0x19c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x1003a502
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053e7d
mov esp, ebp
pop ebp
ret 4
call fcn.100590cf
int3