Function at 0x40cc10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4447bb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x4543e4]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0x14], edi
push edi
mov dword [esp + 0x23c], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
cmp eax, edi
jne 0x40d087
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, esi
call fcn.0040c100
lea edi, [esi + 8]
push str.IIF_LOGFOLDER
mov dword [esp + 0x1c], eax
call fcn.00415ca0
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0042e563
lea eax, [esi + 0x88]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40ccbb
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x1c]
push edx
call fcn.00407a00
push str.____Log_start
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 8
cmp byte [esi + 0x31], 0
jne 0x40cdaf
cmp dword [esi + 0x48], ebx
lea eax, [esi + 0x34]
jb 0x40ccfc
mov eax, dword [eax]
mov ecx, eax
lea ebx, [esp + 0x14]
call fcn.00408110
mov ecx, 0x448218
test eax, eax
je 0x40cd9d
cmp eax, 0x652
je 0x40cd5e
push eax
push str.__Fatal_error_while_trying_to_obtain_single_instance_mutex___X_
push 0x455a48
call fcn.00407c30
add esp, 0xc
push str.____Log_End
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40cd54
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x643
jmp 0x40d087
push str.__Unable_to_obtain_single_instance_mutex_ownership
push 0x455a48
call fcn.00407c30
push str.____Log_End
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x40cd93
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x652
jmp 0x40d087
push str.Single_instance_mutex_has_been_obtained
push 0x455a48
call fcn.00407c30
add esp, 8
call fcn.00407ab0
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
movzx ecx, word [esi + 0x144]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push ecx
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
je 0x40ce05
push ebx
push str.Language_load_error___d_
push 0x455a48
mov ecx, 0x449344
call fcn.00407c30
add esp, 0xc
push 0
push str.Setup
push str.Error_loading_language_resource
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40d076
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40ce5a
call fcn.0040d260
mov eax, dword [esp + 0x18]
push eax
push str.Command_line_error__d
push 0x455a48
mov ecx, 0x449344
call fcn.00407c30
add esp, 0xc
mov eax, esi
call fcn.0040a090
test al, al
jne case.0x40ce8c.10
push 0x1f9f
push 0
push 2
push 0x2067
xor ecx, ecx
call fcn.00405770
add esp, 0x10
jmp case.0x40ce8c.10
mov eax, esi
call fcn.0040a090
test al, al
jne 0x40ce84
cmp byte [esi + 0x30], al
je 0x40ce84
push str._b__force_reboot__is_only_valid_in_silent_mode__switch_will_be_ignored
push 0x455a48
mov ecx, 0x4492d8
mov byte [esi + 0x30], al
call fcn.00407c30
add esp, 8
mov eax, dword [esi + 4]
cmp eax, 0xd
ja case.0x40ce8c.10
jmp dword [eax*4 + 0x40d0ac]
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
jmp 0x40cefa
push esi
call fcn.00409e20
jmp case.0x40ce8c.10
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Activating_setup_wizard
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
add esp, 8
jmp 0x40cefa
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
jmp 0x40cefa
push esi
call fcn.00409f40
jmp case.0x40ce8c.10
mov ecx, esi
call fcn.004097e0
jmp case.0x40ce8c.10
mov ecx, esi
call fcn.00408ab0
jmp case.0x40ce8c.10
mov ecx, esi
call fcn.004091d0
jmp case.0x40ce8c.10
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov eax, 0x456d68
call fcn.00413ee0
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push str.Dumping_properties___d_total_
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov ebx, dword [edi]
add esp, 0xc
cmp ebx, dword [esi + 0xc]
je 0x40cf7e
nop
mov eax, 8
cmp dword [ebx + 0x30], eax
jb 0x40cf4f
mov ecx, dword [ebx + 0x1c]
jmp 0x40cf52
lea ecx, [ebx + 0x1c]
cmp dword [ebx + 0x14], eax
jb 0x40cf5b
mov eax, dword [ebx]
jmp 0x40cf5d
mov eax, ebx
push ecx
push eax
push str.___s_s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add ebx, 0x38
add esp, 0x10
cmp ebx, dword [esi + 0xc]
jne 0x40cf40
push str.IIF_EXITCODE
call fcn.00415ca0
push eax
call fcn.0042f82d
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.0040a090
test al, al
je 0x40cfca
cmp byte [esi + 0x30], 0
je 0x40cfca
cmp ebx, 0xbc2
jne 0x40cfb3
mov ebx, 0x669
jmp 0x40cfca
push str.Force_reboot___b__switch_was_used_but_setup_does_not_require_a_reboot
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 8
push str.IIF_EXITCODE
call fcn.00415ca0
push eax
call fcn.0042f82d
add esp, 4
cmp eax, 0x661
ja 0x40cff1
je 0x40d006
test eax, eax
je 0x40d006
cmp eax, 0x642
jmp 0x40cffd
cmp eax, 0x669
je 0x40d006
cmp eax, 0xbc2
je 0x40d006
mov ebx, 0x643
jmp 0x40d03a
test ebx, ebx
je 0x40d01a
cmp ebx, 0x669
je 0x40d01a
cmp ebx, 0xbc2
jne 0x40d03a
mov eax, dword [esi + 4]
cmp eax, 9
jl 0x40d03a
cmp eax, 0xa
jle 0x40d034
cmp eax, 0xd
jne 0x40d03a
push esi
call fcn.004094e0
jmp 0x40d03a
push esi
call fcn.0040d0f0
push ebx
push str.Exit_code__command_line_:__d
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push str.____Log_End
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 8
cmp ebx, 0x669
jne 0x40d076
call fcn.00420220
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d085
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret