Function at 0x10033700
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100695b3
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 0x100337d2
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.1001e7f0
test eax, eax
jne 0x100337f7
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10034322
push edi
jmp 0x1003431c
test edi, edi
je 0x10033802
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 0x10033885
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.1001e7f0
test eax, eax
je 0x100337e2
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 0x100339e7
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.1000d8a0
add esp, 0x10
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x154]
cmp eax, 7
jbe 0x10033b06
mov ecx, dword [ebp - 0x168]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033afb
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10034355
test ecx, ecx
je 0x10033b06
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 0x10033b64
mov ecx, dword [ebp - 0x180]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033b59
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10034355
test ecx, ecx
je 0x10033b64
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 0x10033bbc
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033bb1
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10034355
test ecx, ecx
je 0x10033bbc
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 0x10033c0b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10033c00
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10034355
test ecx, ecx
je 0x10033c0b
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 0x10033c6d
mov edx, 0x10099240
test esi, esi
je 0x10033c64
sub edi, edx
nop dword [eax]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10033c6d
add edx, 2
sub esi, 1
jne 0x10033c50
mov byte [ebp - 0x19d], 1
jmp 0x10033c74
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 0x10033ded
mov byte [ebp - 4], 0xd
test esi, esi
je 0x10033d09
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 0x10033d41
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 0x10033d6a
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 0x10033d93
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 0x10033de3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x10034324
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 0x100341f7
mov edi, esi
mov dword [ebp - 0x1d0], edi
nop dword [eax]
movzx eax, word [edi]
mov esi, edi
test ax, ax
je 0x10033e48
mov ecx, eax
nop dword [eax]
cmp cx, 0x3b
je 0x10033fc4
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10033e30
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 0x10033e7f
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 0x10033e70
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 0x100341d1
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 0x100341d1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10034081
push 0xa
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002dc60
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 0x100341d1
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 0x10034006
mov byte [ebp - 4], 0xe
test esi, esi
je 0x10033fab
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f8], 0
jmp 0x100341d1
test esi, esi
je 0x10033e48
mov ecx, dword [ebp - 0x1d0]
mov eax, esi
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x4c
jne 0x10033e51
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 0x10033e51
push 0xa
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0xffffffff
mov ecx, esi
call fcn.1002dc60
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xe
test esi, esi
je 0x10034033
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 0x100341d1
mov edi, dword [ebp - 0x1d8]
mov edx, esi
inc dword [ebp - 0x1cc]
mov ecx, edi
push 0
call fcn.1002d290
add esp, 4
test al, al
jne 0x100341d1
cmp byte [ebp - 0x19d], al
je 0x1003410e
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x100340be
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100340b4
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x100340cd
xor eax, eax
mov word [esi + ecx*2 - 2], ax
mov ecx, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1e0]
call fcn.100334c0
test al, al
jne 0x1003417b
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.1002e0c0
add esp, 0x14
jmp 0x1003417b
cmp byte [ebp - 0x19e], 0
je 0x1003412c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jns 0x1003417b
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 0x10034174
movzx eax, word [esi]
mov ecx, dword [ebp - 0x19c]
mov edx, eax
test ax, ax
je 0x1003416f
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 0x10034160
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 0x19e], 1
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x1003418e
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034184
lea eax, [edi + ecx*2]
movzx ecx, word [esi]
test cx, cx
je 0x100341af
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 0x100341a0
xor ecx, ecx
mov word [eax], cx
mov eax, edi
cmp word [edi], cx
je 0x100341ca
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100341c0
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 0x10033e20
mov edi, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x19c]
xor ecx, ecx
mov eax, edx
cmp word [edx], cx
je 0x10034239
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10034206
test ecx, ecx
je 0x10034239
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 0x10034248
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 0x10034280
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 0x100342a9
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 0x100342d2
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 0x10034322
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.1004d40a
mov esp, ebp
pop ebp
ret 4
call fcn.10050f8f
int3