Function at 0x40fc51
Capabilities:
Accept command line arguments
Check if file exists
Create thread
Enumerate files on windows
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:
push ebp
lea ebp, [esp - 0x122d8]
mov eax, 0x122d8
call fcn.00416810
push 0xffffffffffffffff
push 0x42bed7
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x122d4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x122e0]
mov edi, dword [ebp + 0x122e8]
push str.XmpSetup
xor ebx, ebx
push str.XmpSetup01572D6A_8C9A_484b_8B31_F2890BF1FB21
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x40fcf9
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40fcf1
push 1
push str._XmpSetup_There_is_another_xmpsetup_running_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
or eax, 0xffffffff
jmp 0x41165d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40fd4f
push 1
push dword [ebp + 0x122ec]
push str._nShow_
push edi
push str._XmpSetup_cmdline
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040ba5f
push 0x432cc8
call fcn.004074dd
xor edi, edi
inc edi
pop ecx
cmp eax, edi
je 0x40fe0b
push str._silent
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe0b
push 0x432cb0
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe0b
push 0x432ca0
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe0b
push 0x432c98
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe02
push str._update
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe02
push 0x432c80
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe02
push 0x432c70
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe02
call fcn.0040763b
cmp eax, edi
je 0x40fe02
push 0x432c68
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe0b
push 0x432c60
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fe0b
mov dword [ebp - 0x1c], ebx
jmp 0x40fe0e
mov dword [ebp - 0x1c], 2
jmp 0x40fe0e
mov dword [ebp - 0x1c], edi
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40fe40
push edi
push dword [ebp - 0x1c]
push str._XmpSetup_Install_type
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040ba5f
push dword [ebp - 0x1c]
xor eax, eax
mov word [ebp + 0x122a0], ax
lea edi, [ebp + 0x122a2]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x122a0]
push 0x42d5e8
push eax
call fcn.00401000
add esp, 0xc
lea eax, [ebp + 0x122a0]
push eax
push str.INSTALL_TYPE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
push 0x206
mov word [ebp + 0x10f0c], ax
lea eax, [ebp + 0x10f0e]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x10f0c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x10f0c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
push edi
lea ecx, [ebp + 0x250]
call fcn.00406082
mov dword [ebp - 4], ebx
xor eax, eax
push 0x206
mov word [ebp + 0x106ec], ax
lea eax, [ebp + 0x106ee]
push ebx
push eax
call fcn.00415ab0
lea eax, [ebp + 0x106ec]
push edi
push eax
call fcn.00416869
lea eax, [ebp + 0x106ec]
push eax
call fcn.00416af4
add esp, 0x18
push 0x42f3cc
lea ecx, [ebp + 0x288]
call fcn.00406082
mov byte [ebp - 4], 1
lea eax, [ebp + 0x106ec]
push eax
lea ecx, [ebp + 0x26c]
call fcn.00406082
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040fba3
mov byte [ebp - 4], 3
push str.installsource
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040e365
mov byte [ebp - 4], 4
push dword [ebp - 0x2c]
call fcn.00414010
pop ecx
test eax, eax
jbe 0x40ffa0
push dword [ebp - 0x2c]
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x288]
call fcn.004053d9
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
jmp 0x41007c
push str.XMPSETUP_KANKAN_.EXE
lea ecx, [ebp + 0x26c]
call fcn.004043b3
test eax, eax
je 0x41006c
push str.XMPSETUP3.EXE
lea ecx, [ebp + 0x26c]
call fcn.004043b3
test eax, eax
je 0x41006c
push 0x432bc8
lea ecx, [ebp + 0x26c]
call fcn.004043b3
test eax, eax
je 0x41006c
or edi, 0xffffffff
push edi
push 0x432bc4
lea ecx, [ebp + 0x250]
call fcn.004045bf
cmp eax, edi
je 0x41007c
push edi
inc eax
push eax
lea eax, [ebp + 0x2c0]
push eax
lea ecx, [ebp + 0x250]
call fcn.004060a4
mov byte [ebp - 4], 6
push edi
push ebx
push eax
lea ecx, [ebp + 0x288]
call fcn.004053d9
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
push edi
push 0x431da4
lea ecx, [ebp + 0x288]
call fcn.004045bf
cmp eax, edi
je 0x41007c
push eax
push ebx
lea eax, [ebp + 0x2c0]
push eax
lea ecx, [ebp + 0x288]
call fcn.004060a4
mov byte [ebp - 4], 7
push edi
jmp 0x40ff7c
push str.kkweb
lea ecx, [ebp + 0x288]
call fcn.00405cb6
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4100c2
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
jae 0x41009c
lea eax, [ebp + 0x28c]
push 1
push eax
push str._XmpSetup_InstallSource_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
push 0xfe
lea eax, [ebp + 0x11b3e]
push ebx
push eax
call fcn.00415ab0
xor eax, eax
mov word [ebp + 0x11b3c], ax
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x10f0c]
push eax
mov dword [ebp - 0x34], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x410182
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041169a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41017d
push esi
push edi
push dword [ebp - 0x34]
lea eax, [ebp + 0x10f0c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410176
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x42d900
push esi
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410176
mov eax, dword [ebp - 0x28]
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 + 0x11b3c]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call fcn.004135c6
pop ecx
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4101b9
push 1
lea eax, [ebp + 0x11b3c]
push eax
push str._XmpSetup_Version_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
push 0x834
call fcn.00416786
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x4101dd
mov ecx, eax
call fcn.00403386
mov edi, eax
mov dword [ebp - 0x28], eax
jmp 0x4101e2
xor edi, edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 4
mov dword [edi], 0xa2a
mov dword [edi + 4], 3
call fcn.0040dad7
mov dword [edi + 8], eax
xor eax, eax
cmp dword [ebp - 0x1c], ebx
push str.000000000000000
sete al
mov dword [edi + 0xc], eax
lea eax, [edi + 0x14]
push eax
call fcn.00416869
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
pop ecx
pop ecx
jae 0x41022b
lea eax, [ebp + 0x28c]
push eax
lea eax, [edi + 0x424]
push eax
call fcn.00416869
lea eax, [ebp + 0x11b3c]
push eax
lea eax, [edi + 0x21c]
push eax
call fcn.00416869
push 0x834
call fcn.00416786
add esp, 0x14
cmp eax, ebx
je 0x410275
mov esi, dword [ebp - 0x28]
mov ecx, 0x20d
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov esi, str.WinMain
jmp 0x410278
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 9
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], ebx
call fcn.004031ee
cmp eax, ebx
jne 0x4102bd
lea eax, [ebp - 0x30]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x24]
call fcn.0040322f
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x30]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
push 0x40d903
push ebx
push ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.004031d3
mov byte [ebp - 4], 3
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.0040f3df
mov byte [ebp - 4], 1
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0x26c]
call fcn.00404665
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x288]
call fcn.00404665
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x250]
call fcn.00404665
xor eax, eax
push 0x206
mov word [ebp + 0x102dc], ax
lea eax, [ebp + 0x102de]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
lea eax, [ebp + 0x102dc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp + 0x102dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, edi
jne 0x4103da
cmp dword [ebp - 0x40], ebx
ja 0x4103da
jb 0x410393
cmp dword [ebp - 0x44], 0x5f5e100
jae 0x4103da
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4103bc
push 1
push str._XmpSetup_There_is_no_enough_space_in_system_dir_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
push 0x432b04
call fcn.0040339d
pop ecx
push 0xfffffffffffffffe
pop ebx
push dword [ebp - 0x1c]
call fcn.0040e8bb
pop ecx
mov eax, ebx
jmp 0x41165d
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.004069f6
pop ecx
test eax, eax
jne 0x410439
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.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba5f
mov edi, dword [ebp - 0x18]
push 0x2c
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [0x43ce40], edi
call fcn.00415ab0
add esp, 0xc
mov dword [ebp - 0x60], edi
mov edi, 0x7f00
push edi
push ebx
mov dword [ebp - 0x74], 0x30
mov dword [ebp - 0x70], 3
mov dword [ebp - 0x6c], 0x40f549
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push edi
push ebx
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [ebp - 0x58], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x74]
mov edi, str.XmpSetup01572D6A_8C9A_484b_8B31_F2890BF1FB21
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x4104c4
push 0x432ad0
call fcn.0040339d
pop ecx
jmp 0x4103ca
push ebx
push dword [ebp - 0x18]
mov eax, SysReAllocStringLen
push ebx
push ebx
push eax
push eax
push eax
push eax
push 0xcf0000
push 0x432abc
push edi
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x43ce44], eax
cmp eax, ebx
jne 0x4104f9
push 0x432aac
jmp 0x4104b9
push ebx
lea ecx, [ebp + 0x2a4]
call fcn.004072de
pop ecx
mov dword [ebp - 4], 0xa
mov eax, dword [ebp + 0x2b8]
dec eax
push eax
lea ecx, [ebp + 0x2a4]
call fcn.00403d8a
cmp word [eax], 0x5c
jne 0x41053e
mov eax, dword [ebp + 0x2b8]
dec eax
push eax
lea ecx, [ebp + 0x2a4]
call fcn.00403d8a
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x410553
lea eax, [ebp + 0x2a8]
push eax
push 0x42d470
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4105ab
push 1
sub esp, 0x1c
lea eax, [ebp + 0x2a4]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00405a78
mov byte [ebp - 4], 0xb
push str._XmpSetup_userdata_path
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba5f
mov esi, str._windir_
lea edi, [ebp + 0x122b0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x206
movsd dword es:[edi], dword [esi]
mov word [ebp + 0x10afc], ax
lea eax, [ebp + 0x10afe]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x10afc]
push eax
lea eax, [ebp + 0x122b0]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x410646
lea eax, [ebp + 0x10afc]
push eax
lea ecx, [ebp - 0x90]
call fcn.00406082
mov esi, eax
mov byte [ebp - 4], 0xc
xor edi, edi
lea eax, [ebp + 0x122b0]
inc edi
push eax
lea ecx, [ebp + 0x2c0]
mov dword [ebp - 0x14], edi
call fcn.00406082
mov dword [ebp - 4], 0xd
push esi
mov ecx, eax
mov dword [ebp - 0x14], 3
call fcn.0040438f
test eax, eax
je 0x410649
mov byte [ebp - 0xd], bl
jmp 0x41064d
xor edi, edi
inc edi
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xc
test byte [ebp - 0x14], 2
je 0x41066b
and dword [ebp - 0x14], 0xfffffffd
push ebx
push edi
lea ecx, [ebp + 0x2c0]
call fcn.00404665
mov dword [ebp - 4], 0xa
test byte [ebp - 0x14], 1
je 0x410689
and dword [ebp - 0x14], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x90]
call fcn.00404665
mov esi, str.WinMain
cmp byte [ebp - 0xd], bl
je 0x4106cb
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4106bb
push edi
push str._XmpSetup_no_windir_and_set_it
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
push str.C:windows
push str.windir
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
lea eax, [ebp + 0x10afc]
push eax
lea eax, [ebp + 0x122b0]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410734
push edi
lea eax, [ebp + 0x10afc]
push eax
push 0x430e1c
lea eax, [ebp + 0x122b0]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
push 7
pop ecx
mov esi, str._LocalAppdata_
lea edi, [ebp + 0x12280]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x206
mov word [ebp + 0x11114], ax
lea eax, [ebp + 0x11116]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x11114]
push eax
lea eax, [ebp + 0x12280]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x4107c9
lea eax, [ebp + 0x11114]
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov esi, eax
mov byte [ebp - 4], 0xe
or dword [ebp - 0x14], 4
lea eax, [ebp + 0x12280]
push eax
lea ecx, [ebp - 0x90]
call fcn.00406082
mov dword [ebp - 4], 0xf
or dword [ebp - 0x14], 8
push esi
mov ecx, eax
call fcn.0040438f
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x4107cd
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xe
test byte [ebp - 0x14], 8
je 0x4107ec
and dword [ebp - 0x14], 0xfffffff7
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.00404665
mov dword [ebp - 4], 0xa
test byte [ebp - 0x14], 4
je 0x41080b
and dword [ebp - 0x14], 0xfffffffb
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
mov esi, str.WinMain
cmp byte [ebp - 0xd], bl
je 0x41085f
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x41083e
push 1
push str._XmpSetup_no_local_appdata_and_set_it
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x410853
lea eax, [ebp + 0x2a8]
push eax
push str.LocalAppdata
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
lea eax, [ebp + 0x11114]
push eax
lea eax, [ebp + 0x12280]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4108c9
push 1
lea eax, [ebp + 0x11114]
push eax
push 0x430e1c
lea eax, [ebp + 0x12280]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
xor eax, eax
push 0x206
mov word [ebp + 0x11e44], ax
lea eax, [ebp + 0x11e46]
push ebx
push eax
call fcn.00415ab0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea eax, [ebp + 0x11e44]
push eax
push ebx
push ebx
push 0x2b
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + 0x11e44]
push eax
call esi
test eax, eax
lea eax, [ebp + 0x11e44]
push eax
jne 0x4109ac
push ebx
push ebx
push 0x26
push ebx
call edi
lea eax, [ebp + 0x11e44]
push eax
call esi
test eax, eax
jne 0x410974
push 0x104
lea eax, [ebp + 0x108f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x410962
movzx eax, word [ebp + 0x108f4]
push eax
lea eax, [ebp + 0x11e44]
push str._c:Program_Files_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x410974
push str.C:Program_Files_
lea eax, [ebp + 0x11e44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x11e44]
push eax
call esi
cmp word [ebp + eax*2 + 0x11e42], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x41099c
push 0x42d900
lea eax, [ebp + 0x11e44]
push eax
call esi
push str.Common_Files_
lea eax, [ebp + 0x11e44]
push eax
call esi
jmp 0x4109cb
call esi
cmp word [ebp + eax*2 + 0x11e42], 0x5c
je 0x4109cb
push 0x42d900
lea eax, [ebp + 0x11e44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa
pop ecx
mov esi, str._CommonProgramFiles_
lea edi, [ebp + 0x12254]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x206
mov word [ebp + 0x1131c], ax
lea eax, [ebp + 0x1131e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00415ab0
lea eax, [ebp + 0x11e44]
push eax
call fcn.00414010
add esp, 0x10
test eax, eax
jbe 0x410df2
lea eax, [ebp + 0x11e44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410a58
push 1
lea eax, [ebp + 0x11e44]
push eax
push str._XmpSetup_set_common_path
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
lea eax, [ebp + 0x11e44]
push eax
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, str.WinMain
push 0x104
lea eax, [ebp + 0x1131c]
push eax
lea eax, [ebp + 0x12254]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410ad9
push 1
lea eax, [ebp + 0x1131c]
push eax
push 0x430e1c
lea eax, [ebp + 0x12254]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
mov esi, str._temp_
lea edi, [ebp + 0x122c4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x206
movsd dword es:[edi], dword [esi]
mov word [ebp + 0x11934], ax
lea eax, [ebp + 0x11936]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x11934]
push eax
lea eax, [ebp + 0x122c4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x11934]
test eax, eax
jbe 0x410b80
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov esi, eax
mov byte [ebp - 4], 0x12
or dword [ebp - 0x14], 0x40
lea eax, [ebp + 0x122c4]
push eax
lea ecx, [ebp - 0x90]
call fcn.00406082
mov dword [ebp - 4], 0x13
or dword [ebp - 0x14], 0x80
push esi
mov ecx, eax
call fcn.0040438f
test eax, eax
je 0x410b80
lea eax, [ebp + 0x11934]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x410b84
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0x12
test byte [ebp - 0x14], 0x80
je 0x410ba6
and dword [ebp - 0x14], 0xffffff7f
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.00404665
mov dword [ebp - 4], 0xa
test byte [ebp - 0x14], 0x40
je 0x410bc5
and dword [ebp - 0x14], 0xffffffbf
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
mov esi, str.WinMain
cmp byte [ebp - 0xd], bl
je 0x410c1a
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410bf8
push 1
push str._XmpSetup_no_temp_and_set_it
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
lea eax, [ebp + 0x11934]
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 + 0x11934]
push eax
lea eax, [ebp + 0x122c4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410c84
push 1
lea eax, [ebp + 0x11934]
push eax
push 0x430e1c
lea eax, [ebp + 0x122c4]
push eax
push str._XmpSetup_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x10d04], ax
lea eax, [ebp + 0x10d06]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
push ebx
push 0x10
lea eax, [ebp + 0x10d04]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x410cd8
lea eax, [ebp + 0x10d04]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp + 0x10d04]
push eax
push str.DeskTop
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410d27
push 1
lea eax, [ebp + 0x10d04]
push eax
push 0x430e1c
push str.DeskTop
push str._XmpSetup_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0x14
push str.0.0.0.0
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov byte [ebp - 4], 0x15
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.004031ee
cmp eax, ebx
jne 0x410f36
xor eax, eax
push edi
mov word [ebp + 0x1204c], ax
lea eax, [ebp + 0x1204e]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1204c]
push eax
push str.Path
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x104
call fcn.00403267
lea eax, [ebp + 0x1204c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410f36
xor eax, eax
push edi
mov word [ebp + 0x11524], ax
lea eax, [ebp + 0x11526]
push ebx
push eax
call fcn.00415ab0
lea eax, [ebp + 0x11524]
push eax
lea eax, [ebp + 0x1204c]
push eax
call fcn.004032d6
add esp, 0x14
test eax, eax
je 0x410ef6
lea eax, [ebp + 0x11524]
jmp 0x410f2a
push 0x104
lea eax, [ebp + 0x1131c]
push eax
lea eax, [ebp + 0x12254]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x410e68
lea eax, [ebp + 0x1131c]
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov esi, eax
mov byte [ebp - 4], 0x10
or dword [ebp - 0x14], 0x10
lea eax, [ebp + 0x12254]
push eax
lea ecx, [ebp - 0x90]
call fcn.00406082
mov dword [ebp - 4], 0x11
or dword [ebp - 0x14], 0x20
push esi
mov ecx, eax
call fcn.0040438f
test eax, eax
je 0x410e68
lea eax, [ebp + 0x1131c]
push eax
call fcn.00414010
pop ecx
mov byte [ebp - 0xd], bl
test eax, eax
ja 0x410e6c
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0x10
test byte [ebp - 0x14], 0x20
je 0x410e8b
and dword [ebp - 0x14], 0xffffffdf
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.00404665
mov dword [ebp - 4], 0xa
test byte [ebp - 0x14], 0x10
je 0x410eaa
and dword [ebp - 0x14], 0xffffffef
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
cmp byte [ebp - 0xd], bl
je 0x410a6a
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410ee1
push 1
push str._XmpSetup_no_common_files_and_set_it
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
push str.C:Program_FilesCommon_Files
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x410a6f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1204c]
push eax
push str.version
lea ecx, [ebp - 0x24]
call fcn.00403267
cmp eax, ebx
jne 0x410f36
lea eax, [ebp + 0x1204c]
push eax
call fcn.00414010
pop ecx
cmp eax, 7
jb 0x410f36
lea eax, [ebp + 0x1204c]
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00405cb6
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410f82
push 1
sub esp, 0x1c
lea eax, [ebp + 0x2c0]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00405a78
mov byte [ebp - 4], 0x16
push str._XmpSetup__OLDXMPVERSION:
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov byte [ebp - 4], 0x15
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba5f
cmp dword [ebp + 0x2d8], 8
mov eax, dword [ebp + 0x2c4]
jae 0x410f97
lea eax, [ebp + 0x2c4]
push eax
push str.OLDXMPVERSION
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 0x14
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call fcn.004031d3
push 0x42fe74
push str.IS_LITE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411006
push 1
push 0x42fe74
push str._XmpSetup_is_package_lite
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
push str._smstartup
call fcn.004074dd
pop ecx
cmp eax, 1
je 0x411026
push 0x43278c
call fcn.004074dd
pop ecx
cmp eax, 1
jne 0x41105f
push 0x42fe74
push str.START_UP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x41105f
push 1
push str._XmpSetup_is_start_up_1
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.0040ba5f
call fcn.0040dad7
cmp eax, 1
jne 0x4112fb
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0x17
push 0x2001f
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.004031ee
cmp eax, ebx
jne 0x41116d
xor eax, eax
push edi
mov word [ebp + 0x104e4], ax
lea eax, [ebp + 0x104e6]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x104e4]
push eax
push str.PackageName
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x104
call fcn.00403267
cmp eax, ebx
jne 0x41116d
cmp dword [ebp - 0x18], ebx
jbe 0x41116d
lea eax, [ebp + 0x104e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
xor eax, eax
push edi
mov word [ebp + 0x11c3c], ax
lea eax, [ebp + 0x11c3e]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x11c3c]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 0x18]
lea eax, [ebp + 0x11c3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x11c3c]
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov byte [ebp - 4], 0x18
lea eax, [ebp + 0x2c0]
push eax
call fcn.0040e79c
pop ecx
mov byte [ebp - 4], 0x17
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
xor eax, eax
push edi
mov word [ebp + 0x1204c], ax
lea eax, [ebp + 0x1204e]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1204c]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4111d5
push 1
lea eax, [ebp + 0x1204c]
push eax
push str.sztmpPath_is
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
push 0x104
lea eax, [ebp + 0x1204c]
push eax
lea eax, [ebp + 0x108f4]
push eax
call fcn.00415d91
lea eax, [ebp + 0x108f4]
push str.XMPSetup
push eax
call fcn.0041683b
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [ebp + 0x108f4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x18], eax
test byte [ebp], 0x10
je 0x4112d1
cmp word [ebp + 0x2c], 0x2e
je 0x4112d1
push 0x104
lea eax, [ebp + 0x1204c]
push eax
lea eax, [ebp + 0x11524]
push eax
call fcn.00415d91
lea eax, [ebp + 0x11524]
push 0x42d900
push eax
call fcn.0041683b
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x11524]
push eax
call fcn.0041683b
push esi
call fcn.004069f6
add esp, 0x20
test eax, eax
jne 0x41129c
push 1
lea eax, [ebp + 0x11524]
push eax
push str.delete_file_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
lea eax, [ebp + 0x11524]
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00406082
mov byte [ebp - 4], 0x19
lea eax, [ebp + 0x2c0]
push eax
call fcn.0040e79c
pop ecx
mov byte [ebp - 4], 0x17
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411215
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call fcn.004031d3
xor eax, eax
push edi
mov word [ebp + 0x1172c], ax
lea eax, [ebp + 0x1172e]
push ebx
push eax
call fcn.00415ab0
lea eax, [ebp + 0x1172c]
push eax
call fcn.0040f790
add esp, 0x10
cmp eax, 1
jne 0x411634
lea eax, [ebp + 0x1172c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
push 0xfffe
mov word [ebp + 0x2dc], ax
lea eax, [ebp + 0x2de]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
push 0x8000
lea eax, [ebp + 0x2dc]
push eax
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x1172c]
push eax
lea eax, [ebp + 0x2dc]
push eax
push str._s__s
push 0x8000
push eax
call fcn.004157ed
add esp, 0x14
lea eax, [ebp + 0x2dc]
push eax
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x20], 0x43ce54
mov dword [ebp - 0x28], str..zlib1.dll
mov dword [ebp - 0x18], ebx
xor eax, eax
push edi
mov word [ebp + 0x1204c], ax
lea eax, [ebp + 0x1204e]
push ebx
push eax
call fcn.00415ab0
lea eax, [ebp + 0x1172c]
push eax
lea eax, [ebp + 0x1204c]
push eax
call fcn.00416869
add esp, 0x14
push dword [ebp - 0x28]
lea eax, [ebp + 0x1204c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411424
push 1
lea eax, [ebp + 0x1204c]
push eax
push str._XmpSetup_pre_load_dll_path
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
lea eax, [ebp + 0x1204c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x4115b6
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x20], 4
mov dword [ecx], eax
mov eax, 0x208
add dword [ebp - 0x18], eax
add dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], 0x1248
jb 0x4113b0
xor eax, eax
push edi
mov word [ebp + 0x11c3c], ax
lea eax, [ebp + 0x11c3e]
push ebx
push eax
call fcn.00415ab0
lea eax, [ebp + 0x1172c]
push eax
lea eax, [ebp + 0x11c3c]
push eax
call fcn.00416869
add esp, 0x14
push str..SetupReal.dll
lea eax, [ebp + 0x11c3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4114d0
push 1
lea eax, [ebp + 0x11c3c]
push eax
push str._XmpSetup_SetupReal.dll_full_path
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
lea eax, [ebp + 0x11c3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x43ce48], eax
cmp eax, ebx
je 0x4115b6
cmp eax, 0x10000000
jne 0x411528
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411528
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.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba5f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartUI
push dword [0x43ce48]
call edi
push str.EndUI
push dword [0x43ce48]
mov dword [0x43ce4c], eax
call edi
mov dword [0x43ce50], eax
cmp dword [0x43ce4c], ebx
je 0x4115ed
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411595
push 1
lea eax, [ebp + 0x1172c]
push eax
push str.XmpSetup:_Skin_Dir:
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba5f
push dword [ebp - 0x38]
lea eax, [ebp + 0x1172c]
push dword [0x43ce44]
push eax
call dword [0x43ce4c]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0xc
jmp 0x41160e
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4115ed
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._XmpSetup_pre_load_dll_failed__GetLastError
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf77
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba5f
push 0x432608
jmp 0x411639
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0xac]
push eax
call esi
test eax, eax
jne 0x4115f4
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x2a4]
call fcn.00404665
xor eax, eax
jmp 0x41165d
push 0x4325f4
call fcn.0040339d
push dword [ebp - 0x1c]
call fcn.0040e8bb
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x2a4]
call fcn.00404665
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x122d4]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x122d8
leave
ret 0x10