Function at 0x40fc42
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.00416800
push 0xffffffffffffffff
push 0x42bec7
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 0x40fcea
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40fce2
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.0040cf68
mov ecx, eax
call fcn.0040ba50
or eax, 0xffffffff
jmp 0x41164e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40fd40
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.0040cf68
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040ba50
push 0x432cc0
call fcn.004074dd
xor edi, edi
inc edi
pop ecx
cmp eax, edi
je 0x40fdfc
push str._silent
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdfc
push 0x432ca8
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdfc
push 0x432c98
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdfc
push 0x432c90
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdf3
push str._update
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdf3
push 0x432c78
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdf3
push 0x432c68
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdf3
call fcn.0040763b
cmp eax, edi
je 0x40fdf3
push 0x432c60
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdfc
push 0x432c58
call fcn.004074dd
pop ecx
cmp eax, edi
je 0x40fdfc
mov dword [ebp - 0x1c], ebx
jmp 0x40fdff
mov dword [ebp - 0x1c], 2
jmp 0x40fdff
mov dword [ebp - 0x1c], edi
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x40fe31
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.0040cf68
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040ba50
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.00415aa0
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.00415aa0
lea eax, [ebp + 0x106ec]
push edi
push eax
call fcn.00416859
lea eax, [ebp + 0x106ec]
push eax
call fcn.00416ae4
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.0040fb94
mov byte [ebp - 4], 3
push str.installsource
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040e356
mov byte [ebp - 4], 4
push dword [ebp - 0x2c]
call fcn.00414000
pop ecx
test eax, eax
jbe 0x40ff91
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 0x41006d
push str.XMPSETUP_KANKAN_.EXE
lea ecx, [ebp + 0x26c]
call fcn.004043b3
test eax, eax
je 0x41005d
push str.XMPSETUP3.EXE
lea ecx, [ebp + 0x26c]
call fcn.004043b3
test eax, eax
je 0x41005d
push 0x432bc0
lea ecx, [ebp + 0x26c]
call fcn.004043b3
test eax, eax
je 0x41005d
or edi, 0xffffffff
push edi
push 0x432bbc
lea ecx, [ebp + 0x250]
call fcn.004045bf
cmp eax, edi
je 0x41006d
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 0x431d9c
lea ecx, [ebp + 0x288]
call fcn.004045bf
cmp eax, edi
je 0x41006d
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 0x40ff6d
push str.kkweb
lea ecx, [ebp + 0x288]
call fcn.00405cb6
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4100b3
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
jae 0x41008d
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
push 0xfe
lea eax, [ebp + 0x11b3e]
push ebx
push eax
call fcn.00415aa0
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 0x410173
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041168c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41016e
push esi
push edi
push dword [ebp - 0x34]
lea eax, [ebp + 0x10f0c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410167
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 0x410167
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.004135b8
pop ecx
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4101aa
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
push 0x834
call fcn.00416776
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x4101ce
mov ecx, eax
call fcn.00403386
mov edi, eax
mov dword [ebp - 0x28], eax
jmp 0x4101d3
xor edi, edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 4
mov dword [edi], 0xc0a
mov dword [edi + 4], 3
call fcn.0040dac8
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.00416859
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
pop ecx
pop ecx
jae 0x41021c
lea eax, [ebp + 0x28c]
push eax
lea eax, [edi + 0x424]
push eax
call fcn.00416859
lea eax, [ebp + 0x11b3c]
push eax
lea eax, [edi + 0x21c]
push eax
call fcn.00416859
push 0x834
call fcn.00416776
add esp, 0x14
cmp eax, ebx
je 0x410266
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 0x410269
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 0x4102ae
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 0x40d8f4
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.0040f3d0
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.00415aa0
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 0x4103cb
cmp dword [ebp - 0x40], ebx
ja 0x4103cb
jb 0x410384
cmp dword [ebp - 0x44], 0x5f5e100
jae 0x4103cb
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4103ad
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.0040cf68
mov ecx, eax
call fcn.0040ba50
push 0x432afc
call fcn.0040339d
pop ecx
push 0xfffffffffffffffe
pop ebx
push dword [ebp - 0x1c]
call fcn.0040e8ac
pop ecx
mov eax, ebx
jmp 0x41164e
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 0x41042a
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.0040cf68
mov ecx, eax
call fcn.00401251
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba50
mov edi, dword [ebp - 0x18]
push 0x2c
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [0x43ce40], edi
call fcn.00415aa0
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], 0x40f53a
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 0x4104b5
push 0x432ac8
call fcn.0040339d
pop ecx
jmp 0x4103bb
push ebx
push dword [ebp - 0x18]
mov eax, SysReAllocStringLen
push ebx
push ebx
push eax
push eax
push eax
push eax
push 0xcf0000
push 0x432ab4
push edi
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x43ce44], eax
cmp eax, ebx
jne 0x4104ea
push 0x432aa4
jmp 0x4104aa
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 0x41052f
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 0x410544
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 0x41059c
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.0040cf68
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba50
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.00415aa0
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 0x410637
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 0x41063a
mov byte [ebp - 0xd], bl
jmp 0x41063e
xor edi, edi
inc edi
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xc
test byte [ebp - 0x14], 2
je 0x41065c
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 0x41067a
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 0x4106bc
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4106ac
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.0040cf68
mov ecx, eax
call fcn.0040ba50
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 0x410725
push edi
lea eax, [ebp + 0x10afc]
push eax
push 0x430e18
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
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.00415aa0
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 0x4107ba
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 0x4107be
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xe
test byte [ebp - 0x14], 8
je 0x4107dd
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 0x4107fc
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 0x410850
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x41082f
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.0040cf68
mov ecx, eax
call fcn.0040ba50
cmp dword [ebp + 0x2bc], 8
mov eax, dword [ebp + 0x2a8]
jae 0x410844
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 0x4108ba
push 1
lea eax, [ebp + 0x11114]
push eax
push 0x430e18
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
xor eax, eax
push 0x206
mov word [ebp + 0x11e44], ax
lea eax, [ebp + 0x11e46]
push ebx
push eax
call fcn.00415aa0
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 0x41099d
push ebx
push ebx
push 0x26
push ebx
call edi
lea eax, [ebp + 0x11e44]
push eax
call esi
test eax, eax
jne 0x410965
push 0x104
lea eax, [ebp + 0x108f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jbe 0x410953
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 0x410965
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 0x41098d
push 0x42d900
lea eax, [ebp + 0x11e44]
push eax
call esi
push str.Common_Files_
lea eax, [ebp + 0x11e44]
push eax
call esi
jmp 0x4109bc
call esi
cmp word [ebp + eax*2 + 0x11e42], 0x5c
je 0x4109bc
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.00415aa0
lea eax, [ebp + 0x11e44]
push eax
call fcn.00414000
add esp, 0x10
test eax, eax
jbe 0x410de3
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 0x410a49
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
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 0x410aca
push 1
lea eax, [ebp + 0x1131c]
push eax
push 0x430e18
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
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.00415aa0
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 0x410b71
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 0x410b71
lea eax, [ebp + 0x11934]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x410b75
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0x12
test byte [ebp - 0x14], 0x80
je 0x410b97
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 0x410bb6
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 0x410c0b
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410be9
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.0040cf68
mov ecx, eax
call fcn.0040ba50
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 0x410c75
push 1
lea eax, [ebp + 0x11934]
push eax
push 0x430e18
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x10d04], ax
lea eax, [ebp + 0x10d06]
push ebx
push eax
call fcn.00415aa0
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 0x410cc9
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 0x410d18
push 1
lea eax, [ebp + 0x10d04]
push eax
push 0x430e18
push str.DeskTop
push str._XmpSetup_
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
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 0x410f27
xor eax, eax
push edi
mov word [ebp + 0x1204c], ax
lea eax, [ebp + 0x1204e]
push ebx
push eax
call fcn.00415aa0
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 0x410f27
xor eax, eax
push edi
mov word [ebp + 0x11524], ax
lea eax, [ebp + 0x11526]
push ebx
push eax
call fcn.00415aa0
lea eax, [ebp + 0x11524]
push eax
lea eax, [ebp + 0x1204c]
push eax
call fcn.004032d6
add esp, 0x14
test eax, eax
je 0x410ee7
lea eax, [ebp + 0x11524]
jmp 0x410f1b
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 0x410e59
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 0x410e59
lea eax, [ebp + 0x1131c]
push eax
call fcn.00414000
pop ecx
mov byte [ebp - 0xd], bl
test eax, eax
ja 0x410e5d
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0x10
test byte [ebp - 0x14], 0x20
je 0x410e7c
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 0x410e9b
and dword [ebp - 0x14], 0xffffffef
push ebx
push 1
lea ecx, [ebp + 0x2c0]
call fcn.00404665
cmp byte [ebp - 0xd], bl
je 0x410a5b
mov esi, str.WinMain
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410ed2
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.0040cf68
mov ecx, eax
call fcn.0040ba50
push str.C:Program_FilesCommon_Files
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x410a60
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 0x410f27
lea eax, [ebp + 0x1204c]
push eax
call fcn.00414000
pop ecx
cmp eax, 7
jb 0x410f27
lea eax, [ebp + 0x1204c]
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00405cb6
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410f73
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.0040cf68
mov byte [ebp - 4], 0x15
mov ecx, eax
call fcn.00405221
mov ecx, eax
call fcn.0040ba50
cmp dword [ebp + 0x2d8], 8
mov eax, dword [ebp + 0x2c4]
jae 0x410f88
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 0x42fe70
push str.IS_LITE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x410ff7
push 1
push 0x42fe70
push str._XmpSetup_is_package_lite
push ebx
push esi
call fcn.0040afdf
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
push str._smstartup
call fcn.004074dd
pop ecx
cmp eax, 1
je 0x411017
push 0x432784
call fcn.004074dd
pop ecx
cmp eax, 1
jne 0x411050
push 0x42fe74
push str.START_UP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411050
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.0040cf68
mov ecx, eax
call fcn.0040ba50
call fcn.0040dac8
cmp eax, 1
jne 0x4112ec
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 0x41115e
xor eax, eax
push edi
mov word [ebp + 0x104e4], ax
lea eax, [ebp + 0x104e6]
push ebx
push eax
call fcn.00415aa0
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 0x41115e
cmp dword [ebp - 0x18], ebx
jbe 0x41115e
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.00415aa0
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.0040e78d
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.00415aa0
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 0x4111c6
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
push 0x104
lea eax, [ebp + 0x1204c]
push eax
lea eax, [ebp + 0x108f4]
push eax
call fcn.00415d81
lea eax, [ebp + 0x108f4]
push str.XMPSetup
push eax
call fcn.0041682b
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 0x4112c2
cmp word [ebp + 0x2c], 0x2e
je 0x4112c2
push 0x104
lea eax, [ebp + 0x1204c]
push eax
lea eax, [ebp + 0x11524]
push eax
call fcn.00415d81
lea eax, [ebp + 0x11524]
push 0x42d900
push eax
call fcn.0041682b
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x11524]
push eax
call fcn.0041682b
push esi
call fcn.004069f6
add esp, 0x20
test eax, eax
jne 0x41128d
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
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.0040e78d
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 0x411206
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.00415aa0
lea eax, [ebp + 0x1172c]
push eax
call fcn.0040f781
add esp, 0x10
cmp eax, 1
jne 0x411625
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.00415aa0
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.004157dd
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.00415aa0
lea eax, [ebp + 0x1172c]
push eax
lea eax, [ebp + 0x1204c]
push eax
call fcn.00416859
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 0x411415
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
lea eax, [ebp + 0x1204c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x4115a7
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 0x4113a1
xor eax, eax
push edi
mov word [ebp + 0x11c3c], ax
lea eax, [ebp + 0x11c3e]
push ebx
push eax
call fcn.00415aa0
lea eax, [ebp + 0x1172c]
push eax
lea eax, [ebp + 0x11c3c]
push eax
call fcn.00416859
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 0x4114c1
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
lea eax, [ebp + 0x11c3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x43ce48], eax
cmp eax, ebx
je 0x4115a7
cmp eax, 0x10000000
jne 0x411519
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411519
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.0040cf68
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba50
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 0x4115de
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x411586
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.0040cf68
mov ecx, eax
call fcn.004014c7
mov ecx, eax
call fcn.0040ba50
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 0x4115ff
push esi
call fcn.004069f6
pop ecx
test eax, eax
jne 0x4115de
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.0040cf68
mov ecx, eax
call fcn.004013c8
mov ecx, eax
call fcn.0040ba50
push 0x432600
jmp 0x41162a
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 0x4115e5
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x2a4]
call fcn.00404665
xor eax, eax
jmp 0x41164e
push 0x4325ec
call fcn.0040339d
push dword [ebp - 0x1c]
call fcn.0040e8ac
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.00413e96
add ebp, 0x122d8
leave
ret 0x10