Function at 0x40fecb
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, 0x42360d
call fcn.00414c98
mov eax, 0x11710
call fcn.00414e00
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 0x40ff57
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, str.WinMain
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40ff4f
push 1
push str._XmpSetup_There_is_another_xmpsetup_running_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
or eax, 0xffffffff
jmp 0x411486
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push 0x4077a9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x40ff7a
xor eax, eax
inc eax
jmp 0x411486
mov esi, str.WinMain
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40ffc6
push 1
push dword [ebp + 0x14]
push str._nShow_
push edi
push str._XmpSetup_cmdline
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040b2e1
push 0x429eb0
call fcn.00406f70
xor edi, edi
inc edi
cmp eax, edi
pop ecx
je 0x410062
push str._silent
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410062
push 0x429e98
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410062
push 0x429e88
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410062
push 0x429e80
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410056
push str._update
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410056
push 0x429e68
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410056
push 0x429e58
call fcn.00406f70
cmp eax, edi
pop ecx
je 0x410056
call fcn.004070e7
cmp eax, edi
je 0x410056
mov dword [ebp - 0x11660], ebx
jmp 0x410068
mov dword [ebp - 0x11660], 2
jmp 0x410068
mov dword [ebp - 0x11660], edi
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x41009d
push edi
push dword [ebp - 0x11660]
push str._XmpSetup_Install_type
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040b2e1
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 0x424534
push eax
call fcn.00415b64
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.00405bd2
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.00414f86
lea eax, [ebp - 0x4a0]
push eax
call fcn.00414e3d
add esp, 0xc
push 0x4263c4
lea ecx, [ebp - 0x115fc]
call fcn.00405bd2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x11650]
call fcn.00405bd2
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1171c]
call fcn.0040fe07
mov byte [ebp - 4], 3
push str.installsource
lea eax, [ebp - 0x11664]
push eax
lea ecx, [ebp - 0x1171c]
call fcn.0040df63
mov byte [ebp - 4], 4
push dword [ebp - 0x11664]
call fcn.00413e1d
test eax, eax
pop ecx
jbe 0x4101fd
push dword [ebp - 0x11664]
lea ecx, [ebp - 0x11698]
call fcn.00405bd2
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x115fc]
call fcn.00405261
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403d21
jmp 0x4102d9
push str.XMPSETUP_KANKAN_.EXE
lea ecx, [ebp - 0x11650]
call fcn.00404128
test eax, eax
je 0x4102c9
push str.XMPSETUP3.EXE
lea ecx, [ebp - 0x11650]
call fcn.00404128
test eax, eax
je 0x4102c9
push 0x429dc0
lea ecx, [ebp - 0x11650]
call fcn.00404128
test eax, eax
je 0x4102c9
or edi, 0xffffffff
push edi
push 0x429dbc
lea ecx, [ebp - 0x11634]
call fcn.004042ba
cmp eax, edi
je 0x4102d9
push edi
inc eax
push eax
lea eax, [ebp - 0x11698]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405bf4
mov byte [ebp - 4], 6
push edi
push ebx
push eax
lea ecx, [ebp - 0x115fc]
call fcn.00405261
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403d21
push edi
push 0x428f14
lea ecx, [ebp - 0x115fc]
call fcn.004042ba
cmp eax, edi
je 0x4102d9
push eax
push ebx
lea eax, [ebp - 0x11698]
push eax
lea ecx, [ebp - 0x115fc]
call fcn.00405bf4
mov byte [ebp - 4], 7
push edi
jmp 0x4101d9
push str.kkweb
lea ecx, [ebp - 0x115fc]
call fcn.0040595b
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x41031f
cmp dword [ebp - 0x115e4], 8
mov eax, dword [ebp - 0x115f8]
jae 0x4102f9
lea eax, [ebp - 0x115f8]
push 1
push eax
push str._XmpSetup_InstallSource_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
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 0x4103e8
lea eax, [edi + edi + 2]
push eax
call fcn.004114ba
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1165c], eax
je 0x4103e8
push eax
push edi
push dword [ebp - 0x1166c]
lea eax, [ebp - 0x6a8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4103dc
lea eax, [ebp - 0x11668]
push eax
lea eax, [ebp - 0x11670]
push eax
push 0x424860
push dword [ebp - 0x1165c]
mov dword [ebp - 0x11668], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4103dc
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.00414259
pop ecx
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x41041f
push 1
lea eax, [ebp - 0x7a8]
push eax
push str._XmpSetup_Version_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
push 0x830
call fcn.00411895
pop ecx
mov dword [ebp - 0x11670], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x410443
mov ecx, eax
call fcn.0040339c
mov edi, eax
jmp 0x410445
xor edi, edi
mov dword [ebp - 0x1165c], edi
mov byte [ebp - 4], 4
mov dword [edi], 0xc0a
mov dword [edi + 4], 3
call fcn.0040d6d1
mov dword [edi + 8], eax
xor eax, eax
cmp dword [ebp - 0x11660], ebx
push str.000000000000000
sete al
mov dword [edi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.00414f86
cmp dword [ebp - 0x115e4], 8
mov eax, dword [ebp - 0x115f8]
pop ecx
pop ecx
jae 0x410497
lea eax, [ebp - 0x115f8]
push eax
lea eax, [edi + 0x420]
push eax
call fcn.00414f86
lea eax, [ebp - 0x7a8]
push eax
lea eax, [edi + 0x218]
push eax
call fcn.00414f86
push 0x830
call fcn.00411895
add esp, 0x14
cmp eax, ebx
je 0x4104ea
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 0x4104f0
mov dword [ebp - 0x11668], ebx
lea eax, [ebp - 0x11678]
push eax
push ebx
push edi
push 0x40d424
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.0040f23f
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x11650]
call fcn.00403d21
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x115fc]
call fcn.00403d21
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403d21
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 0x410603
cmp dword [ebp - 0x1169c], ebx
ja 0x410603
jb 0x4105c7
cmp dword [ebp - 0x116a0], 0x5f5e100
jae 0x410603
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x4105f0
push 1
push str._XmpSetup_There_is_no_enough_space_in_system_dir_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
push 0x429cfc
call fcn.004033b3
pop ecx
push 0xfffffffffffffffe
pop ebx
jmp 0x41071a
cmp dword [ebp - 0x11660], ebx
je 0x41066a
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.0040663e
test eax, eax
pop ecx
jne 0x41066a
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.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b2e1
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], 0x40f3a8
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 0x41072d
push 0x429cc8
call fcn.004033b3
pop ecx
push dword [ebp - 0x11668]
call fcn.0040e4d2
pop ecx
mov eax, ebx
jmp 0x411486
push ebx
push dword [ebp - 0x11674]
mov eax, SysReAllocStringLen
push ebx
push ebx
push eax
push eax
push eax
push eax
push 0xcf0000
push 0x429cb4
push str.XmpSetup01572D6A_8C9A_484b_8B31_F2890BF1FB21
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [0x432e28], eax
jne 0x410780
push 0x429ca4
call fcn.004033b3
push dword [ebp - 0x11668]
call fcn.0040e4d2
pop ecx
pop ecx
xor eax, eax
jmp 0x411486
lea eax, [ebp - 0x11618]
push ebx
push eax
call fcn.00407562
pop ecx
pop ecx
mov dword [ebp - 4], 9
mov edi, dword [ebp - 0x11604]
dec edi
push edi
lea ecx, [ebp - 0x11618]
call fcn.004039e5
cmp word [eax], 0x5c
jne 0x4107be
push edi
lea ecx, [ebp - 0x11618]
call fcn.004039e5
mov word [eax], bx
cmp dword [ebp - 0x11600], 8
mov eax, dword [ebp - 0x11614]
jae 0x4107d3
lea eax, [ebp - 0x11614]
push eax
push 0x4243ac
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x41082e
push 1
sub esp, 0x1c
lea eax, [ebp - 0x11618]
mov ecx, esp
mov dword [ebp - 0x11678], esp
push eax
call fcn.004057b8
mov byte [ebp - 4], 0xa
push str._XmpSetup_userdata_path
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.004048f8
mov ecx, eax
call fcn.0040b2e1
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 0x4108c3
lea eax, [ebp - 0xfc8]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405bd2
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.00405bd2
mov dword [ebp - 4], 0xc
push esi
mov ecx, eax
mov dword [ebp - 0x11658], 3
call fcn.00404104
test eax, eax
je 0x4108c6
mov byte [ebp - 0x11651], bl
jmp 0x4108cd
xor edi, edi
inc edi
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0xb
test byte [ebp - 0x11658], 2
je 0x4108f1
and dword [ebp - 0x11658], 0xfffffffd
push ebx
push edi
lea ecx, [ebp - 0x11698]
call fcn.00403d21
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 1
je 0x410915
and dword [ebp - 0x11658], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x11634]
call fcn.00403d21
cmp byte [ebp - 0x11651], bl
mov esi, str.WinMain
je 0x41095a
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x41094a
push edi
push str._XmpSetup_no_windir_and_set_it
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
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.0040663e
test eax, eax
pop ecx
jne 0x4109bd
push edi
lea eax, [ebp - 0xfc8]
push eax
push 0x427ed0
lea eax, [ebp - 0x34]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
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 0x410a4c
lea eax, [ebp - 0x13d8]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405bd2
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.00405bd2
mov dword [ebp - 4], 0xe
or dword [ebp - 0x11658], 8
push esi
mov ecx, eax
call fcn.00404104
test eax, eax
mov byte [ebp - 0x11651], bl
jne 0x410a53
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0xd
test byte [ebp - 0x11658], 8
je 0x410a78
and dword [ebp - 0x11658], 0xfffffff7
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403d21
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 4
je 0x410a9d
and dword [ebp - 0x11658], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403d21
cmp byte [ebp - 0x11651], bl
mov edi, str.WinMain
je 0x410af4
push edi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x410ad3
push 1
push str._XmpSetup_no_local_appdata_and_set_it
push ebx
push edi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
cmp dword [ebp - 0x11600], 8
mov eax, dword [ebp - 0x11614]
jae 0x410ae8
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.0040663e
test eax, eax
pop ecx
jne 0x410b58
push 1
lea eax, [ebp - 0x13d8]
push eax
push 0x427ed0
lea eax, [ebp - 0x64]
push eax
push str._XmpSetup_
push ebx
push edi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
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 0x410c35
push ebx
push ebx
push 0x26
push ebx
call esi
lea eax, [ebp - 0x298]
push eax
call edi
test eax, eax
jne 0x410bfd
push 0x104
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x410beb
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 0x410bfd
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 0x410c25
push 0x424860
lea eax, [ebp - 0x298]
push eax
call esi
push str.Common_Files_
lea eax, [ebp - 0x298]
push eax
call esi
jmp 0x410c54
call edi
cmp word [ebp + eax*2 - 0x29a], 0x5c
je 0x410c54
push 0x424860
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.00413e1d
test eax, eax
pop ecx
jbe 0x4112b7
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov esi, str.WinMain
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x410cdc
push 1
lea eax, [ebp - 0x298]
push eax
push str._XmpSetup_set_common_path
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
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.0040663e
test eax, eax
pop ecx
jne 0x410d5d
push 1
lea eax, [ebp - 0xdc0]
push eax
push 0x427ed0
lea eax, [ebp - 0x90]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
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 0x410dfb
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405bd2
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.00405bd2
mov dword [ebp - 4], 0x12
or byte [ebp - 0x11658], 0x80
push esi
mov ecx, eax
call fcn.00404104
test eax, eax
je 0x410dfb
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 0x11651], bl
jne 0x410e02
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0x11
test byte [ebp - 0x11658], 0x80
je 0x410e27
and byte [ebp - 0x11658], 0x7f
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403d21
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 0x40
je 0x410e4c
and dword [ebp - 0x11658], 0xffffffbf
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403d21
cmp byte [ebp - 0x11651], bl
mov esi, str.WinMain
je 0x410ea4
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x410e82
push 1
push str._XmpSetup_no_temp_and_set_it
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
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.0040663e
test eax, eax
pop ecx
jne 0x410f08
push 1
lea eax, [ebp - 0x9b0]
push eax
push 0x427ed0
lea eax, [ebp - 0x20]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
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 0x410f56
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.0040663e
test eax, eax
pop ecx
jne 0x410fa1
push 1
lea eax, [ebp - 0x11d0]
push eax
push 0x427ed0
push edi
push str._XmpSetup_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
mov edi, 0x426f10
push edi
push str.IS_LITE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x410fe3
push 1
push edi
push str._XmpSetup_is_package_lite
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
push str._smstartup
call fcn.00406f70
cmp eax, 1
pop ecx
je 0x411003
push 0x429a44
call fcn.00406f70
cmp eax, 1
pop ecx
jne 0x41103c
push 0x426f14
push str.START_UP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x41103c
push 1
push str._XmpSetup_is_start_up_1
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
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.0040fa11
cmp eax, 1
pop ecx
jne 0x411458
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.0041403d
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.00414f86
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.0040663e
test eax, eax
pop ecx
jne 0x411167
push 1
lea eax, [ebp - 0x6a8]
push eax
push str._XmpSetup_pre_load_dll_path
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x4113d4
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 0x4110f0
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.00414f86
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.0040663e
test eax, eax
pop ecx
jne 0x411222
push 1
lea eax, [ebp - 0x4a0]
push eax
push str._XmpSetup_SetupReal.dll_full_path
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040133c
mov ecx, eax
call fcn.0040b2e1
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x432e2c], eax
je 0x4112ad
cmp eax, 0x10000000
jne 0x411276
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x411276
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.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b2e1
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 0x41140a
push 0x429954
jmp 0x41145d
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 0x411334
lea eax, [ebp - 0xdc0]
push eax
lea ecx, [ebp - 0x11634]
call fcn.00405bd2
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.00405bd2
mov dword [ebp - 4], esi
or dword [ebp - 0x11658], 0x20
push edi
mov ecx, eax
call fcn.00404104
test eax, eax
je 0x411334
lea eax, [ebp - 0xdc0]
push eax
call fcn.00413e1d
test eax, eax
pop ecx
mov byte [ebp - 0x11651], bl
ja 0x41133b
mov byte [ebp - 0x11651], 1
mov dword [ebp - 4], 0xf
test byte [ebp - 0x11658], 0x20
je 0x411360
and dword [ebp - 0x11658], 0xffffffdf
push ebx
push 1
lea ecx, [ebp - 0x11698]
call fcn.00403d21
mov dword [ebp - 4], 9
test byte [ebp - 0x11658], 0x10
je 0x411385
and dword [ebp - 0x11658], 0xffffffef
push ebx
push 1
lea ecx, [ebp - 0x11634]
call fcn.00403d21
cmp byte [ebp - 0x11651], bl
je 0x410cee
mov esi, str.WinMain
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x4113bf
push 1
push str._XmpSetup_no_common_files_and_set_it
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
push str.C:Program_FilesCommon_Files
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x410cf3
push 0x429954
call fcn.004033b3
push esi
call fcn.0040663e
test eax, eax
pop ecx
pop ecx
jne 0x411463
push 1
push str._XmpSetup_pre_load_dll_failed_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040b2e1
jmp 0x411463
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 0x411444
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 0x41142a
xor esi, esi
jmp 0x411472
push 0x4298bc
call fcn.004033b3
pop ecx
push 0xfffffffffffffffd
pop esi
push dword [ebp - 0x11668]
call fcn.0040e4d2
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x11618]
call fcn.00403d21
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.0041428f
leave
ret 0x10