Function at 0x407910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x473018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push 1
mov dword [ebp - 0x104], 0
call dword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoInitialize]
mov esi, eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 4], 0
test esi, esi
js 0x408752
mov ecx, edi
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x88], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407986
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x88]
call fcn.00404580
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 0
sub esp, 0x18
xor ecx, ecx
mov eax, esp
mov dword [ebp - 0xfc], esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
sub esp, 0x18
lea eax, [ebp - 0x88]
mov dword [ebp - 0x100], esp
mov ecx, esp
push eax
call fcn.00403fa0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf4]
call fcn.004087b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00420840
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 0xf
push 0x46350c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00404580
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
mov edx, 0x80000001
push eax
lea ecx, [ebp - 0x70]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x407a88
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408782
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x5c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push 0x45f36c
push eax
mov dword [ebp - 0x14], 7
call fcn.0043d82c
add esp, 8
mov edi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.004040c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
test edi, edi
je 0x407c12
lea eax, [ebp - 0x40]
push eax
call fcn.00423af0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407b06
mov byte [ebp - 0xf5], 1
test al, 0x10
jne 0x407b0d
mov byte [ebp - 0xf5], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
je 0x407c0c
push 1
sub esp, 0x18
xorps xmm0, xmm0
mov eax, esp
mov dword [ebp - 0xfc], esp
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x70]
push 2
push eax
mov byte [ebp - 4], 4
call fcn.00424680
mov byte [ebp - 4], 0xb
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403940
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x70]
call fcn.004040c0
lea eax, [ebp - 0x40]
push eax
call fcn.00423af0
mov byte [ebp - 4], 0xe
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00403940
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x407be1
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0xa0]
cmp ecx, 8
cmovae eax, edx
dec edi
cmp word [eax + edi*2], 0x5c
jne 0x407be1
cmp ecx, 8
mov dword [ebp - 0x90], edi
lea eax, [ebp - 0xa0]
cmovae eax, edx
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004253a0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa0]
call fcn.004040c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
push ecx
call fcn.00424110
lea ecx, [ebp - 0x58]
call fcn.00420840
mov byte [ebp - 4], 0x11
xorps xmm0, xmm0
push 0x14
push str.LocalAppDataMigrated
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00404580
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
mov edx, 0x80000001
push eax
lea ecx, [ebp - 0x40]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x407c9c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407c92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408787
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0x45f36c
push eax
mov dword [ebp - 0x14], 7
call fcn.0043d82c
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
test edi, edi
je 0x407e25
lea eax, [ebp - 0x70]
push eax
call fcn.00423c00
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407d1a
mov byte [ebp - 0xf5], 1
test al, 0x10
jne 0x407d21
mov byte [ebp - 0xf5], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
je 0x407e1f
push 1
sub esp, 0x18
xorps xmm0, xmm0
mov eax, esp
mov dword [ebp - 0xfc], esp
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x40]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.00424680
mov byte [ebp - 4], 0x17
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403940
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x40]
call fcn.004040c0
lea eax, [ebp - 0x70]
push eax
call fcn.00423c00
mov byte [ebp - 4], 0x1a
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.00403940
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x70]
call fcn.004040c0
mov edi, dword [ebp - 0xa8]
test edi, edi
je 0x407df4
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0xb8]
cmp ecx, 8
cmovae eax, edx
dec edi
cmp word [eax + edi*2], 0x5c
jne 0x407df4
cmp ecx, 8
mov dword [ebp - 0xa8], edi
lea eax, [ebp - 0xb8]
cmovae eax, edx
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004253a0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xb8]
call fcn.004040c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
push ecx
call fcn.004242e0
lea ecx, [ebp - 0x58]
call fcn.00420840
mov byte [ebp - 4], 0x1d
xorps xmm0, xmm0
push 0x13
push str.ProgramDataMigrated
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00404580
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
mov edx, 0x80000001
push eax
lea ecx, [ebp - 0x40]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x407eaf
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407ea5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40878c
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0x45f36c
push eax
mov dword [ebp - 0x14], 7
call fcn.0043d82c
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
test edi, edi
je 0x407f50
lea eax, [ebp - 0x70]
push eax
call fcn.00423d10
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407f29
mov byte [ebp - 0xf5], 1
test al, 0x10
jne 0x407f30
mov byte [ebp - 0xf5], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
je 0x407f4a
call fcn.00424e80
push ecx
call fcn.004244b0
lea ecx, [ebp - 0x58]
call fcn.00420840
mov byte [ebp - 4], 0x22
xorps xmm0, xmm0
push 0x10
push str.UserDataMigrated
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.00404580
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
mov edx, 0x80000001
push eax
lea ecx, [ebp - 0x40]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 0x25
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x407fda
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407fd0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408791
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0x45f36c
push eax
mov dword [ebp - 0x14], 7
call fcn.0043d82c
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
test edi, edi
je 0x40804b
lea eax, [ebp - 0x70]
push eax
call fcn.004238d0
mov byte [ebp - 4], 0x26
mov ecx, 1
mov dword [ebp - 0x104], ecx
cmp dword [eax + 0x10], 0
je 0x408051
mov byte [ebp - 0xf5], cl
jmp 0x408058
mov ecx, dword [ebp - 0x104]
mov byte [ebp - 0xf5], 0
mov dword [ebp - 4], 4
test cl, 1
je 0x408075
and ecx, 0xfffffffe
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x70]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
mov edi, dword [ebp - 0x78]
je 0x40865e
push 7
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.UiLevel
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00404580
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x58]
call fcn.00420840
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x28]
push ecx
push eax
mov edx, 0x80000002
lea ecx, [ebp - 0x40]
call fcn.00426770
add esp, 8
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x58]
call fcn.004040c0
mov byte [ebp - 4], 0x2b
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x408118
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40810e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408796
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0xa
push 0
push eax
mov dword [ebp - 0x14], 7
call fcn.0043d76a
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov eax, dword [ebp - 0xfc]
cmp eax, 1
jne 0x40821e
lea eax, [ebp - 0x58]
push eax
call fcn.004239e0
mov byte [ebp - 4], 0x2c
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00403940
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x58]
call fcn.004040c0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4081aa
mov byte [ebp - 0xf5], 1
test al, 0x10
jne 0x4081b1
mov byte [ebp - 0xf5], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
je 0x4081cb
call fcn.00424da0
lea eax, [ebp - 0x58]
push eax
call fcn.004238d0
mov byte [ebp - 4], 0x2f
push 1
push eax
call fcn.00424940
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
push ecx
call fcn.00423f40
call fcn.00423e20
test al, al
je 0x40865e
lea eax, [ebp - 0x40]
push eax
call fcn.00425800
mov byte [ebp - 4], 0x30
push eax
call fcn.0041bdf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
jmp 0x408659
test eax, eax
jne 0x40865e
lea eax, [ebp - 0x58]
push eax
call fcn.004239e0
mov byte [ebp - 4], 0x31
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00403940
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x58]
call fcn.004040c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40826b
mov byte [ebp - 0xf5], 1
test al, 0x10
jne 0x408272
mov byte [ebp - 0xf5], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
je 0x4083d0
test edi, edi
jne 0x4083d0
call fcn.00401c50
mov ecx, eax
test ecx, ecx
je 0x40879b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0x108]
push 0x69
call fcn.00402110
call fcn.00401c50
mov ecx, eax
test ecx, ecx
je 0x40879b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 0x37
lea ecx, [ebp - 0x100]
push 0x68
call fcn.00402110
call fcn.00401c50
mov ecx, eax
test ecx, ecx
je 0x40879b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 0x39
lea eax, [ebp - 0x58]
push eax
call fcn.004237c0
mov byte [ebp - 4], 0x3a
cmp dword [eax + 0x14], 8
jb 0x40832b
mov eax, dword [eax]
mov edi, dword [ebp - 0x100]
push eax
lea eax, [ebp - 0xfc]
push edi
push eax
call fcn.004026c0
add esp, 0xc
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x58]
call fcn.004040c0
mov esi, dword [ebp - 0xfc]
push 0x24
push dword [ebp - 0x108]
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40836f
call fcn.00424da0
mov byte [ebp - 4], 0x37
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40838d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x35
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4083a8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x108]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4083c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x10c]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x88]
cmp edi, 0x14
jne 0x40842a
mov eax, edi
mov edx, str._uninstallMsiVersion
mov dword [ebp - 0xfc], eax
test eax, eax
je 0x408426
sub ecx, edx
mov dword [ebp - 0x100], ecx
nop
movzx ecx, word [edx + ecx]
movzx eax, word [edx]
cmp cx, ax
jne 0x40842a
mov eax, dword [ebp - 0xfc]
add edx, 2
mov ecx, dword [ebp - 0x100]
dec eax
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x408400
mov al, 1
jmp 0x40842c
xor al, al
test al, al
je 0x408483
lea eax, [ebp - 0x58]
push eax
call fcn.004238d0
mov byte [ebp - 4], 0x3e
push 0
push eax
call fcn.00424940
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
push ecx
call fcn.00423f40
call fcn.00423e20
test al, al
je 0x40865e
lea eax, [ebp - 0x40]
push eax
call fcn.00425800
mov byte [ebp - 4], 0x3f
push eax
call fcn.0041bdf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
jmp 0x408659
test edi, edi
jne 0x40865e
lea eax, [ebp - 0x58]
push eax
call fcn.004238d0
mov edx, eax
mov dword [ebp - 0x100], edx
mov byte [ebp - 4], 0x40
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x18], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x41
mov ecx, 0x26
mov eax, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0xfc]
sub eax, esi
cmp ecx, eax
ja 0x40851d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0x26
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0xfc], eax
lea esi, [eax + esi*2]
test ecx, ecx
je 0x408515
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0xfc]
xor ecx, ecx
mov word [eax + 0x4c], cx
jmp 0x408535
push 0
push ecx
push dword [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404660
mov edx, dword [ebp - 0x100]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x10c]
cmovae eax, dword [ebp - 0x28]
cmp dword [edx + 0x14], 8
jb 0x40854e
mov edx, dword [edx]
push eax
push 0
push 0
push edx
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x4085a7
mov byte [ebp - 4], 0x40
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40859c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408592
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087a5
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov byte [ebp - 0xf5], 1
jmp 0x4085ed
mov byte [ebp - 4], 0x40
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4085e5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4085db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087a5
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov byte [ebp - 0xf5], al
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
cmp byte [ebp - 0xf5], 0
je 0x408630
lea eax, [ebp - 0x40]
push eax
call fcn.00425980
mov byte [ebp - 4], 0x42
push eax
call fcn.0041bdf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
jmp 0x408659
push ecx
call fcn.00423f40
call fcn.00423e20
test al, al
je 0x40865e
lea eax, [ebp - 0x58]
push eax
call fcn.00425800
mov byte [ebp - 4], 0x43
push eax
call fcn.0041bdf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
cmp edi, 0x14
jne 0x4086a3
mov edx, str._uninstallMsiVersion
test edi, edi
je 0x40869f
sub eax, edx
mov dword [ebp - 0xfc], eax
movzx ecx, word [eax + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x4086a3
mov eax, dword [ebp - 0xfc]
add edx, 2
sub edi, 1
jne 0x408685
mov al, 1
jmp 0x4086a5
xor al, al
test al, al
jne 0x4086e0
call fcn.00402f70
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xf4]
call dword [eax + 4]
mov byte [ebp - 4], 0x44
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00403160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004040c0
mov byte [ebp - 4], 0x46
lea ecx, [ebp - 0xd8]
call fcn.004040c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.004040c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x40873b
mov edx, dword [ebp - 0x88]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408731
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087aa
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 4], 0xffffffff
test esi, esi
js 0x408763
call dword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
xor eax, eax
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.00432e76
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043c8de
call fcn.0043c8de
call fcn.0043c8de
call fcn.0043c8de
call fcn.0043c8de
push 0x80004005
call fcn.004019d0
call fcn.0043c8de
call fcn.0043c8de
int3