Function at 0x401000
Capabilities:
Check if file exists
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x42e1f8]
xor eax, esp
mov dword [esp + 0x848], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x104
lea edx, [esp + 0x64c]
push edx
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40106e
push 0x10
push 0x42a734
push str.GetModuleFileName_failed_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x643
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00407200
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x648]
push eax
lea ecx, [esp + 0x23c]
push ecx
call esi
lea edx, [esp + 0x238]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x444]
push ecx
call esi
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x34]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.SetupUi.dll
lea ecx, [esp + 0x34]
push ecx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x30]
push edx
call ebx
test eax, eax
jne 0x40113c
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x34]
push ecx
call esi
push str.SetupSetupUi.dll
lea edx, [esp + 0x34]
push edx
call edi
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x40112d
push 0x10
push 0x42a734
push str.Cant_find_setupUi.dll_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x643
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00407200
mov esp, ebp
pop ebp
ret 0x10
push str.Setup
lea ecx, [esp + 0x444]
push ecx
call edi
lea edx, [esp + 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x401174
push str.___HRESULT__hRes_____0_
push edi
push 0x4b
push str..Setup.cpp
push 2
call fcn.004075b0
add esp, 0x14
cmp eax, 1
jne 0x401174
int3
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x2ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x4011bd
push str.bRet
push edi
push 0x1d4
push str.U:developglobalincwtl80_atlapp.h
push 2
call fcn.004075b0
add esp, 0x14
cmp eax, 1
jne 0x4011bd
int3
call fcn.004015c0
test eax, eax
jge 0x4011e3
push str.___HRESULT__hRes_____0_
push edi
push 0x53
push str..Setup.cpp
push 2
call fcn.004075b0
add esp, 0x14
cmp eax, 1
jne 0x4011e3
int3
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call sub.gdiplus.dll_GdiplusStartup
lea eax, [esp + 0x30]
push eax
mov esi, 0x643
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x40123c
push str._Run
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40123c
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x64c]
push edx
call eax
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdiplusShutdown
call fcn.00401520
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x854]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00407200
mov esp, ebp
pop ebp
ret 0x10