Function at 0x40f9ca
Capabilities:
Accept command line arguments
Check if file exists
Create thread
Get common file path
Get disk size
Get file version info
Get program files directory
Query environment variable
Set current directory
Set environment variable

Disassembly:
mov eax, 0x4230bc
call fcn.00414798
mov eax, 0x11710
call fcn.00414900
mov eax, dword [0x431d24]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push str.XmpSetup
xor ebx, ebx
push str.XmpSetup01572D6A_8C9A_484b_8B31_F2890BF1FB21
mov dword [ebp - 0x11674], eax
mov dword [ebp - 0x1167c], edi
mov dword [ebp - 0x11658], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x40fa56
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, str.WinMain
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40fa4e
push 1
push str._XmpSetup_There_is_another_xmpsetup_running_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
or eax, 0xffffffff
jmp 0x410f82
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push 0x4076ca
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x40fa79
xor eax, eax
inc eax
jmp 0x410f82
mov esi, str.WinMain
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40fac5
push 1
push dword [ebp + 0x14]
push str._nShow_
push edi
push str._XmpSetup_cmdline
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040b202
push 0x429d70
call fcn.00406e91
xor edi, edi
inc edi
cmp eax, edi
pop ecx
je 0x40fb61
push str._silent
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb61
push 0x429d58
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb61
push 0x429d48
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb61
push 0x429d40
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb55
push str._update
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb55
push 0x429d28
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb55
push 0x429d18
call fcn.00406e91
cmp eax, edi
pop ecx
je 0x40fb55
call fcn.00407008
cmp eax, edi
je 0x40fb55
mov dword [ebp - 0x11660], ebx
jmp 0x40fb67
mov dword [ebp - 0x11660], 2
jmp 0x40fb67
mov dword [ebp - 0x11660], edi
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40fb9c
push edi
push dword [ebp - 0x11660]
push str._XmpSetup_Install_type
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040b202
push dword [ebp - 0x11660]
xor eax, eax
mov word [ebp - 0x44], bx
lea edi, [ebp - 0x42]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x44]
push 0x424524
push eax
call fcn.00415664
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push str.INSTALL_TYPE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
mov word [ebp - 0x6a8], bx
mov ecx, 0x81
lea edi, [ebp - 0x6a6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x6a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x11634]
mov dword [ebp - 0x1165c], eax
call fcn.00405af3
mov dword [ebp - 4], ebx
push dword [ebp - 0x1165c]
xor eax, eax
mov word [ebp - 0x4a0], bx
mov ecx, 0x81
lea edi, [ebp - 0x49e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x4a0]
push eax
call fcn.00414a86
lea eax, [ebp - 0x4a0]
push eax
call fcn.0041493d
add esp, 0xc
push 0x4263b4
lea ecx, [ebp - 0x115fc]
call fcn.00405af3
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x11650]
call fcn.00405af3
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1171c]
call fcn.0040f906
mov byte [ebp - 4], 3
push str.installsource
lea eax, [ebp - 0x11664]
push eax
lea ecx, [ebp - 0x1171c]
call fcn.0040de84
mov byte [ebp - 4], 4
push dword [ebp - 0x11664]
call fcn.0041391d
test eax, eax
pop ecx
jbe 0x40fcfc
push dword [ebp - 0x11664]
lea ecx, [ebp - 0x11698]
call fcn.00405af3
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x115fc]
call fcn.00405182
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403c42
jmp 0x40fdd8
push str.XMPSETUP_KANKAN_.EXE
lea ecx, [ebp - 0x11650]
call fcn.00404049
test eax, eax
je 0x40fdc8
push str.XMPSETUP3.EXE
lea ecx, [ebp - 0x11650]
call fcn.00404049
test eax, eax
je 0x40fdc8
push 0x429c80
lea ecx, [ebp - 0x11650]
call fcn.00404049
test eax, eax
je 0x40fdc8
or edi, 0xffffffff
push edi
push 0x429c7c
lea ecx, [ebp - 0x11634]
call fcn.004041db
cmp eax, edi
je 0x40fdd8
push edi
inc eax
push eax
lea eax, [ebp - 0x11698]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405b15
mov byte [ebp - 4], 6
push edi
push ebx
push eax
lea ecx, [ebp - 0x115fc]
call fcn.00405182
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403c42
push edi
push 0x428f04
lea ecx, [ebp - 0x115fc]
call fcn.004041db
cmp eax, edi
je 0x40fdd8
push eax
push ebx
lea eax, [ebp - 0x11698]
push eax
lea ecx, [ebp - 0x115fc]
call fcn.00405b15
mov byte [ebp - 4], 7
push edi
jmp 0x40fcd8
push str.kkweb
lea ecx, [ebp - 0x115fc]
call fcn.0040587c
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40fe1e
cmp dword [ebp - 0x115e4], 8
mov eax, dword [ebp - 0x115f8]
jae 0x40fdf8
lea eax, [ebp - 0x115f8]
push 1
push eax
push str._XmpSetup_InstallSource_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x7a6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1166c]
push eax
lea eax, [ebp - 0x6a8]
push eax
mov word [ebp - 0x7a8], bx
mov dword [ebp - 0x1166c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x40fee7
lea eax, [edi + edi + 2]
push eax
call fcn.00410fb6
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1165c], eax
je 0x40fee7
push eax
push edi
push dword [ebp - 0x1166c]
lea eax, [ebp - 0x6a8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40fedb
lea eax, [ebp - 0x11668]
push eax
lea eax, [ebp - 0x11670]
push eax
push 0x424850
push dword [ebp - 0x1165c]
mov dword [ebp - 0x11668], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40fedb
mov eax, dword [ebp - 0x11670]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x7a8]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push dword [ebp - 0x1165c]
call fcn.00413d59
pop ecx
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x40ff1e
push 1
lea eax, [ebp - 0x7a8]
push eax
push str._XmpSetup_Version_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
push 0x830
call fcn.00411391
pop ecx
mov dword [ebp - 0x11670], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x40ff42
mov ecx, eax
call fcn.0040334e
mov edi, eax
jmp 0x40ff44
xor edi, edi
mov dword [ebp - 0x1165c], edi
mov byte [ebp - 4], 4
mov dword [edi], 0xa2a
mov dword [edi + 4], 3
call fcn.0040d5f2
mov dword [edi + 8], eax
xor eax, eax
cmp dword [ebp - 0x11660], 1
push str.000000000000000
setne al
mov dword [edi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.00414a86
cmp dword [ebp - 0x115e4], 8
mov eax, dword [ebp - 0x115f8]
pop ecx
pop ecx
jae 0x40ff97
lea eax, [ebp - 0x115f8]
push eax
lea eax, [edi + 0x420]
push eax
call fcn.00414a86
lea eax, [ebp - 0x7a8]
push eax
lea eax, [edi + 0x218]
push eax
call fcn.00414a86
push 0x830
call fcn.00411391
add esp, 0x14
cmp eax, ebx
je 0x40ffea
mov esi, dword [ebp - 0x1165c]
mov ecx, 0x20c
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1165c]
mov dword [ebp - 0x11668], eax
mov esi, str.WinMain
jmp 0x40fff0
mov dword [ebp - 0x11668], ebx
lea eax, [ebp - 0x11678]
push eax
push ebx
push edi
push 0x40d345
push ebx
push ebx
mov dword [ebp - 0x11678], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [ebp - 4], 3
push dword [ebp - 0x11664]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1171c]
call fcn.0040f160
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x11650]
call fcn.00403c42
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x115fc]
call fcn.00403c42
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403c42
xor eax, eax
mov word [ebp - 0x15e0], bx
mov ecx, 0x81
lea edi, [ebp - 0x15de]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x15e0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x116a0]
push eax
lea eax, [ebp - 0x116fc]
push eax
lea eax, [ebp - 0x116f4]
push eax
lea eax, [ebp - 0x15e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x410103
cmp dword [ebp - 0x1169c], ebx
ja 0x410103
jb 0x4100c7
cmp dword [ebp - 0x116a0], 0x5f5e100
jae 0x410103
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x4100f0
push 1
push str._XmpSetup_There_is_no_enough_space_in_system_dir_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
push 0x429bbc
call fcn.00403365
pop ecx
push 0xfffffffffffffffe
pop ebx
jmp 0x41021a
cmp dword [ebp - 0x11660], ebx
je 0x41016a
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
mov edi, eax
call fcn.0040655f
test eax, eax
pop ecx
jne 0x41016a
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._lasterror
push edi
push str._XmpSetup_SetPriorityClass_result
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b202
mov edx, dword [ebp - 0x11674]
push 0xb
pop ecx
xor eax, eax
lea edi, [ebp - 0x116cc]
rep stosd dword es:[edi], eax
mov edi, 0x7f00
push edi
push ebx
mov dword [0x432e24], edx
mov dword [ebp - 0x116d0], 0x30
mov dword [ebp - 0x116cc], 3
mov dword [ebp - 0x116c8], 0x40f2c9
mov dword [ebp - 0x116c4], ebx
mov dword [ebp - 0x116c0], ebx
mov dword [ebp - 0x116bc], edx
call dword [sym.imp.USER32.dll_LoadIconW]
push edi
push ebx
mov dword [ebp - 0x116b8], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [ebp - 0x116b4], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x116b0], eax
mov eax, dword [ebp - 0x116b8]
mov dword [ebp - 0x116a4], eax
lea eax, [ebp - 0x116d0]
push eax
mov dword [ebp - 0x116ac], ebx
mov dword [ebp - 0x116a8], str.XmpSetup01572D6A_8C9A_484b_8B31_F2890BF1FB21
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x41022d
push 0x429b88
call fcn.00403365
pop ecx
push dword [ebp - 0x11668]
call fcn.0040e3f3
pop ecx
mov eax, ebx
jmp 0x410f82
push ebx
push dword [ebp - 0x11674]
mov eax, SysReAllocStringLen
push ebx
push ebx
push eax
push eax
push eax
push eax
push 0xcf0000
push 0x429b74
push str.XmpSetup01572D6A_8C9A_484b_8B31_F2890BF1FB21
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [0x432e28], eax
jne 0x410280
push 0x429b64
call fcn.00403365
push dword [ebp - 0x11668]
call fcn.0040e3f3
pop ecx
pop ecx
xor eax, eax
jmp 0x410f82
lea eax, [ebp - 0x11618]
push ebx
push eax
call fcn.00407483
pop ecx
pop ecx
mov dword [ebp - 4], 9
mov edi, dword [ebp - 0x11604]
dec edi
push edi
lea ecx, [ebp - 0x11618]
call fcn.00403997
cmp word [eax], 0x5c
jne 0x4102be
push edi
lea ecx, [ebp - 0x11618]
call fcn.00403997
mov word [eax], bx
cmp dword [ebp - 0x11600], 8
mov eax, dword [ebp - 0x11614]
jae 0x4102d3
lea eax, [ebp - 0x11614]
push eax
push 0x42439c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x41032e
push 1
sub esp, 0x1c
lea eax, [ebp - 0x11618]
mov ecx, esp
mov dword [ebp - 0x11678], esp
push eax
call fcn.004056d9
mov byte [ebp - 4], 0xa
push str._XmpSetup_userdata_path
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.00404819
mov ecx, eax
call fcn.0040b202
mov esi, str._windir_
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov word [ebp - 0xfc8], bx
mov ecx, 0x81
lea edi, [ebp - 0xfc6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0xfc8]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x4103c3
lea eax, [ebp - 0xfc8]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405af3
mov esi, eax
mov byte [ebp - 4], 0xb
xor edi, edi
lea eax, [ebp - 0x34]
inc edi
push eax
lea ecx, [ebp - 0x11698]
mov dword [ebp - 0x11658], edi
call fcn.00405af3
mov dword [ebp - 4], 0xc
push esi
mov ecx, eax
mov dword [ebp - 0x11658], 3
call fcn.00404025
test eax, eax
je 0x4103c6
mov byte [ebp - 0x11651], bl
jmp 0x4103cd
xor edi, edi
inc edi
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0xb
test byte [ebp - 0x11658], 2
je 0x4103f1
and dword [ebp - 0x11658], 0xfffffffd
push ebx
push edi
lea ecx, [ebp - 0x11698]
call fcn.00403c42
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 1
je 0x410415
and dword [ebp - 0x11658], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x11634]
call fcn.00403c42
cmp byte [ebp - 0x11651], bl
mov esi, str.WinMain
je 0x41045a
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x41044a
push edi
push str._XmpSetup_no_windir_and_set_it
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
push str.C:windows
push str.windir
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0xfc8]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x4104bd
push edi
lea eax, [ebp - 0xfc8]
push eax
push 0x427ec0
lea eax, [ebp - 0x34]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
push 7
pop ecx
mov esi, str._LocalAppdata_
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov word [ebp - 0x13d8], bx
mov ecx, 0x81
lea edi, [ebp - 0x13d6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x13d8]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x41054c
lea eax, [ebp - 0x13d8]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405af3
mov esi, eax
mov byte [ebp - 4], 0xd
or dword [ebp - 0x11658], 4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x11698]
call fcn.00405af3
mov dword [ebp - 4], 0xe
or dword [ebp - 0x11658], 8
push esi
mov ecx, eax
call fcn.00404025
test eax, eax
mov byte [ebp - 0x11651], bl
jne 0x410553
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0xd
test byte [ebp - 0x11658], 8
je 0x410578
and dword [ebp - 0x11658], 0xfffffff7
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403c42
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 4
je 0x41059d
and dword [ebp - 0x11658], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403c42
cmp byte [ebp - 0x11651], bl
mov edi, str.WinMain
je 0x4105f4
push edi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x4105d3
push 1
push str._XmpSetup_no_local_appdata_and_set_it
push ebx
push edi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
cmp dword [ebp - 0x11600], 8
mov eax, dword [ebp - 0x11614]
jae 0x4105e8
lea eax, [ebp - 0x11614]
push eax
push str.LocalAppdata
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0x13d8]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410658
push 1
lea eax, [ebp - 0x13d8]
push eax
push 0x427ec0
lea eax, [ebp - 0x64]
push eax
push str._XmpSetup_
push ebx
push edi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov word [ebp - 0x298], bx
mov ecx, 0x81
lea edi, [ebp - 0x296]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x298]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x298]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x298]
push eax
jne 0x410735
push ebx
push ebx
push 0x26
push ebx
call esi
lea eax, [ebp - 0x298]
push eax
call edi
test eax, eax
jne 0x4106fd
push 0x104
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x4106eb
movzx eax, word [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x298]
push str._c:Program_Files_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4106fd
push str.C:Program_Files_
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x298]
push eax
call edi
cmp word [ebp + eax*2 - 0x29a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x410725
push 0x424850
lea eax, [ebp - 0x298]
push eax
call esi
push str.Common_Files_
lea eax, [ebp - 0x298]
push eax
call esi
jmp 0x410754
call edi
cmp word [ebp + eax*2 - 0x29a], 0x5c
je 0x410754
push 0x424850
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa
pop ecx
mov esi, str._CommonProgramFiles_
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov word [ebp - 0xdc0], bx
mov ecx, 0x81
lea edi, [ebp - 0xdbe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x298]
push eax
call fcn.0041391d
test eax, eax
pop ecx
jbe 0x410db3
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov esi, str.WinMain
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x4107dc
push 1
lea eax, [ebp - 0x298]
push eax
push str._XmpSetup_set_common_path
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
lea eax, [ebp - 0x298]
push eax
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, str.WinMain
push 0x104
lea eax, [ebp - 0xdc0]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x41085d
push 1
lea eax, [ebp - 0xdc0]
push eax
push 0x427ec0
lea eax, [ebp - 0x90]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
mov esi, str._temp_
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov word [ebp - 0x9b0], bx
mov ecx, 0x81
lea edi, [ebp - 0x9ae]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x9b0]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x9b0]
test eax, eax
jbe 0x4108fb
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405af3
mov esi, eax
mov byte [ebp - 4], 0x11
or dword [ebp - 0x11658], 0x40
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x11698]
call fcn.00405af3
mov dword [ebp - 4], 0x12
or byte [ebp - 0x11658], 0x80
push esi
mov ecx, eax
call fcn.00404025
test eax, eax
je 0x4108fb
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 0x11651], bl
jne 0x410902
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0x11
test byte [ebp - 0x11658], 0x80
je 0x410927
and byte [ebp - 0x11658], 0x7f
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403c42
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 0x40
je 0x41094c
and dword [ebp - 0x11658], 0xffffffbf
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403c42
cmp byte [ebp - 0x11651], bl
mov esi, str.WinMain
je 0x4109a4
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410982
push 1
push str._XmpSetup_no_temp_and_set_it
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
lea eax, [ebp - 0x9b0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.C:Documents_and_SettingsAdministratorLocal_SettingsTemp
push str.temp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0x9b0]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410a08
push 1
lea eax, [ebp - 0x9b0]
push eax
push 0x427ec0
lea eax, [ebp - 0x20]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
xor eax, eax
mov word [ebp - 0x11d0], bx
mov ecx, 0x81
lea edi, [ebp - 0x11ce]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x11d0]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
mov edi, str.DeskTop
jne 0x410a56
lea eax, [ebp - 0x11d0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x11d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410aa1
push 1
lea eax, [ebp - 0x11d0]
push eax
push 0x427ec0
push edi
push str._XmpSetup_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
mov edi, 0x426f04
push edi
push str.IS_LITE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410ae3
push 1
push edi
push str._XmpSetup_is_package_lite
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
push str._smstartup
call fcn.00406e91
cmp eax, 1
pop ecx
je 0x410b03
push 0x429904
call fcn.00406e91
cmp eax, 1
pop ecx
jne 0x410b38
push edi
push str.START_UP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410b38
push 1
push str._XmpSetup_is_start_up_1
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
xor eax, eax
mov word [ebp - 0xbb8], bx
mov ecx, 0x81
lea edi, [ebp - 0xbb6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xbb8]
push eax
call fcn.0040f510
cmp eax, 1
pop ecx
jne 0x410f54
lea eax, [ebp - 0xbb8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x115e0], bx
mov ecx, 0x3fff
lea edi, [ebp - 0x115de]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x8000
lea eax, [ebp - 0x115e0]
push eax
mov edi, str.Path
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0xbb8]
push eax
lea eax, [ebp - 0x115e0]
push eax
push str._s__s
push 0x8000
push eax
call fcn.00413b3d
add esp, 0x14
lea eax, [ebp - 0x115e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1165c], 0x432e38
mov dword [ebp - 0x11664], str.._atl71.dll
mov dword [ebp - 0x11660], ebx
xor eax, eax
mov word [ebp - 0x6a8], bx
mov ecx, 0x81
lea edi, [ebp - 0x6a6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xbb8]
push eax
lea eax, [ebp - 0x6a8]
push eax
call fcn.00414a86
pop ecx
pop ecx
push dword [ebp - 0x11664]
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410c63
push 1
lea eax, [ebp - 0x6a8]
push eax
push str._XmpSetup_pre_load_dll_path
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x410ed0
mov ecx, dword [ebp - 0x1165c]
add dword [ebp - 0x1165c], 4
mov dword [ecx], eax
mov eax, 0x208
add dword [ebp - 0x11660], eax
add dword [ebp - 0x11664], eax
cmp dword [ebp - 0x11660], 0x1248
jb 0x410bec
xor eax, eax
mov word [ebp - 0x4a0], bx
mov ecx, 0x81
lea edi, [ebp - 0x49e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xbb8]
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.00414a86
pop ecx
pop ecx
push str..SetupReal.dll
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410d1e
push 1
lea eax, [ebp - 0x4a0]
push eax
push str._XmpSetup_SetupReal.dll_full_path
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b202
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x432e2c], eax
je 0x410da9
cmp eax, 0x10000000
jne 0x410d72
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410d72
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._XmpSetup_Load_SetupReal.dll_returns_0x10000000_and_lasterror_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b202
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartUI
push dword [0x432e2c]
call esi
push str.EndUI
push dword [0x432e2c]
mov dword [0x432e30], eax
call esi
mov dword [0x432e34], eax
mov eax, dword [0x432e30]
cmp eax, ebx
jne 0x410f06
push 0x429814
jmp 0x410f59
push 0x104
lea eax, [ebp - 0xdc0]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x410e30
lea eax, [ebp - 0xdc0]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405af3
mov edi, eax
mov byte [ebp - 4], 0xf
push 0x10
pop esi
or dword [ebp - 0x11658], esi
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x11698]
call fcn.00405af3
mov dword [ebp - 4], esi
or dword [ebp - 0x11658], 0x20
push edi
mov ecx, eax
call fcn.00404025
test eax, eax
je 0x410e30
lea eax, [ebp - 0xdc0]
push eax
call fcn.0041391d
test eax, eax
pop ecx
mov byte [ebp - 0x11651], bl
ja 0x410e37
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0xf
test byte [ebp - 0x11658], 0x20
je 0x410e5c
and dword [ebp - 0x11658], 0xffffffdf
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403c42
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 0x10
je 0x410e81
and dword [ebp - 0x11658], 0xffffffef
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403c42
cmp byte [ebp - 0x11651], bl
je 0x4107ee
mov esi, str.WinMain
push esi
call fcn.0040655f
test eax, eax
pop ecx
jne 0x410ebb
push 1
push str._XmpSetup_no_common_files_and_set_it
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
push str.C:Program_FilesCommon_Files
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x4107f3
push 0x429814
call fcn.00403365
push esi
call fcn.0040655f
test eax, eax
pop ecx
pop ecx
jne 0x410f5f
push 1
push str._XmpSetup_pre_load_dll_failed_
push ebx
push esi
call fcn.0040a727
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c98b
mov ecx, eax
call fcn.0040b202
jmp 0x410f5f
push dword [ebp - 0x1167c]
lea ecx, [ebp - 0xbb8]
push dword [0x432e28]
push ecx
call eax
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0xc
jmp 0x410f40
lea eax, [ebp - 0x116ec]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x116ec]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x116ec]
push ebx
push eax
call esi
test eax, eax
jne 0x410f26
xor esi, esi
jmp 0x410f6e
push 0x42977c
call fcn.00403365
pop ecx
push 0xfffffffffffffffd
pop esi
push dword [ebp - 0x11668]
call fcn.0040e3f3
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x11618]
call fcn.00403c42
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413d8f
leave
ret 0x10