Function at 0x10033760
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069623
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x100ad040]
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 0x10093cf4
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 0x10033832
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, 0x10093d00
mov ecx, edi
call fcn.1001e850
test eax, eax
jne 0x10033857
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10034382
push edi
jmp 0x1003437c
test edi, edi
je 0x10033862
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
push 0x10093cf4
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 0x100338e5
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, 0x10093d00
mov ecx, edi
call fcn.1001e850
test eax, eax
je 0x10033842
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 0x10093cf4
push str.AI_INTANCE_LOCATION
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10033a47
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.1000d8d0
add esp, 0x10
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x154]
cmp eax, 7
jbe 0x10033b66
mov ecx, dword [ebp - 0x168]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033b5b
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100343b5
test ecx, ecx
je 0x10033b66
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 0x10033bc4
mov ecx, dword [ebp - 0x180]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033bb9
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100343b5
test ecx, ecx
je 0x10033bc4
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 0x10033c1c
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033c11
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100343b5
test ecx, ecx
je 0x10033c1c
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 0x10033c6b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033c60
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100343b5
test ecx, ecx
je 0x10033c6b
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 0x10033ccd
mov edx, 0x10099240
test esi, esi
je 0x10033cc4
sub edi, edx
nop dword [eax]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10033ccd
add edx, 2
sub esi, 1
jne 0x10033cb0
mov byte [ebp - 0x19d], 1
jmp 0x10033cd4
mov byte [ebp - 0x19d], 0
mov edi, dword [ebp - 0x1b4]
lea eax, [ebp - 0x1b0]
push eax
push 0x10093cf4
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 0x10033e4d
mov byte [ebp - 4], 0xd
test esi, esi
je 0x10033d69
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 0x10033da1
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 0x10033dca
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 0x10033df3
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 0x10033e43
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x10034384
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 0x10034257
mov edi, esi
mov dword [ebp - 0x1d0], edi
nop dword [eax]
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x10033ea8
mov ecx, eax
nop dword [eax]
cmp cx, 0x3b
je 0x10034024
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10033e90
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 0x10033edf
mov edx, edi
mov esi, eax
sub edx, esi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x10033ed0
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 0x10034231
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 0x10034231
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100340e1
push 0xa
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002dcf0
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 0x10034231
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 0x10034066
mov byte [ebp - 4], 0xe
test esi, esi
je 0x1003400b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f8], 0
jmp 0x10034231
test esi, esi
je 0x10033ea8
mov ecx, dword [ebp - 0x1d0]
mov eax, esi
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x4c
jne 0x10033eb1
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 0x10033eb1
push 0xa
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0xffffffff
mov ecx, esi
call fcn.1002dcf0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xe
test esi, esi
je 0x10034093
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 0x10034231
mov edi, dword [ebp - 0x1d8]
mov edx, esi
inc dword [ebp - 0x1cc]
mov ecx, edi
push 0
call fcn.1002d320
add esp, 4
test al, al
jne 0x10034231
cmp byte [ebp - 0x19d], al
je 0x1003416e
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x1003411e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034114
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x1003412d
xor eax, eax
mov word [esi + ecx*2 - 2], ax
mov ecx, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1e0]
call fcn.10033520
test al, al
jne 0x100341db
mov eax, dword [ebp - 0x1cc]
mov ecx, str.ComboBox
mov edx, dword [ebp - 0x1b4]
push 0x10093cf4
push esi
push esi
push eax
push str.APPDIR
call fcn.1002e150
add esp, 0x14
jmp 0x100341db
cmp byte [ebp - 0x19e], 0
je 0x1003418c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jns 0x100341db
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 0x100341d4
movzx eax, word [esi]
mov ecx, dword [ebp - 0x19c]
mov edx, eax
test ax, ax
je 0x100341cf
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 0x100341c0
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 0x19e], 1
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x100341ee
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100341e4
lea eax, [edi + ecx*2]
movzx ecx, word [esi]
test cx, cx
je 0x1003420f
mov edx, esi
sub edx, eax
nop dword [eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [eax + edx]
test cx, cx
jne 0x10034200
xor ecx, ecx
mov word [eax], cx
mov eax, edi
cmp word [edi], cx
je 0x1003422a
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034220
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 0x10033e80
mov edi, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x19c]
xor ecx, ecx
mov eax, edx
cmp word [edx], cx
je 0x10034299
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034266
test ecx, ecx
je 0x10034299
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 0x100342a8
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 0x100342e0
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 0x10034309
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 0x10034332
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 0x10034382
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.1004d46a
mov esp, ebp
pop ebp
ret 4
call fcn.10050fef
int3