Function at 0x40cb00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44527b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4563e4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x4563e4]
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 + 0x40]
mov ecx, esi
call edx
cmp eax, edi
jne 0x40cf7c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, esi
call fcn.0040bf90
lea edi, [esi + 4]
push str.IIF_LOGFOLDER
mov dword [esp + 0x1c], eax
call fcn.00416580
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0042eee3
lea eax, [esi + 0x84]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40cbab
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.004182d0
push str.____Log_start
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
cmp byte [esi + 0x2d], 0
jne 0x40cc9f
cmp dword [esi + 0x44], ebx
lea eax, [esi + 0x30]
jb 0x40cbec
mov eax, dword [eax]
mov ecx, eax
lea ebx, [esp + 0x14]
call fcn.00407df0
mov ecx, 0x449300
test eax, eax
je 0x40cc8d
cmp eax, 0x652
je 0x40cc4e
push eax
push str.__Fatal_error_while_trying_to_obtain_single_instance_mutex___X_
push 0x457ab8
call fcn.00418500
add esp, 0xc
push str.____Log_End
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40cc44
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x643
jmp 0x40cf7c
push str.__Unable_to_obtain_single_instance_mutex_ownership
push 0x457ab8
call fcn.00418500
push str.____Log_End
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x40cc83
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x652
jmp 0x40cf7c
push str.Single_instance_mutex_has_been_obtained
push 0x457ab8
call fcn.00418500
add esp, 8
call fcn.00418380
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
mov ecx, esi
call edx
movzx ecx, word [esi + 0x144]
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
push ecx
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
je 0x40ccf5
push ebx
push str.Language_load_error___d_
push 0x457ab8
mov ecx, 0x44a294
call fcn.00418500
add esp, 0xc
push 0
push str.Setup
push str.Error_loading_language_resource
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cf6b
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40cd4a
call fcn.0040d150
mov eax, dword [esp + 0x18]
push eax
push str.Command_line_error__d
push 0x457ab8
mov ecx, 0x44a294
call fcn.00418500
add esp, 0xc
mov eax, esi
call fcn.00409f50
test al, al
jne case.0x40cd7f.10
push 0x1f9f
push 0
push 2
push 0x2067
xor ecx, ecx
call fcn.00405830
add esp, 0x10
jmp case.0x40cd7f.10
mov eax, esi
call fcn.00409f50
test al, al
jne 0x40cd74
cmp byte [esi + 0x2c], al
je 0x40cd74
push str._b__force_reboot__is_only_valid_in_silent_mode__switch_will_be_ignored
push 0x457ab8
mov ecx, 0x44a228
mov byte [esi + 0x2c], al
call fcn.00418500
add esp, 8
push esi
call fcn.00409db0
cmp eax, 0xd
ja case.0x40cd7f.10
jmp dword [eax*4 + 0x40cfa0]
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
jmp 0x40cded
push esi
call fcn.00409bb0
jmp case.0x40cd7f.10
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Activating_setup_wizard
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
add esp, 8
jmp 0x40cded
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
jmp 0x40cded
push esi
call fcn.00409cd0
jmp case.0x40cd7f.10
mov ecx, esi
call fcn.00409510
jmp case.0x40cd7f.10
mov ecx, esi
call fcn.004087c0
jmp case.0x40cd7f.10
mov ecx, esi
call fcn.00408ee0
jmp case.0x40cd7f.10
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov eax, 0x458de8
call fcn.00413db0
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 0x457ab8
mov ecx, 0x449300
call fcn.00418500
mov ebx, dword [edi]
add esp, 0xc
cmp ebx, dword [esi + 8]
je 0x40ce70
mov eax, 8
cmp dword [ebx + 0x30], eax
jb 0x40ce41
mov ecx, dword [ebx + 0x1c]
jmp 0x40ce44
lea ecx, [ebx + 0x1c]
cmp dword [ebx + 0x14], eax
jb 0x40ce4d
mov eax, dword [ebx]
jmp 0x40ce4f
mov eax, ebx
push ecx
push eax
push str.___s_s
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add ebx, 0x38
add esp, 0x10
cmp ebx, dword [esi + 8]
jne 0x40ce32
push str.IIF_EXITCODE
call fcn.00416580
push eax
call fcn.0042ffad
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.00409f50
test al, al
je 0x40cebc
cmp byte [esi + 0x2c], 0
je 0x40cebc
cmp ebx, 0xbc2
jne 0x40cea5
mov ebx, 0x669
jmp 0x40cebc
push str.Force_reboot___b__switch_was_used_but_setup_does_not_require_a_reboot
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
push str.IIF_EXITCODE
call fcn.00416580
push eax
call fcn.0042ffad
add esp, 4
cmp eax, 0x661
ja 0x40cee3
je 0x40cef8
test eax, eax
je 0x40cef8
cmp eax, 0x642
jmp 0x40ceef
cmp eax, 0x669
je 0x40cef8
cmp eax, 0xbc2
je 0x40cef8
mov ebx, 0x643
jmp 0x40cf2f
test ebx, ebx
je 0x40cf0c
cmp ebx, 0x669
je 0x40cf0c
cmp ebx, 0xbc2
jne 0x40cf2f
push esi
call fcn.00409db0
cmp eax, 9
jl 0x40cf2f
cmp eax, 0xa
jle 0x40cf29
cmp eax, 0xd
jne 0x40cf2f
push esi
call fcn.004091f0
jmp 0x40cf2f
push esi
call fcn.0040cfe0
push ebx
push str.Exit_code__command_line_:__d
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 0xc
push str.____Log_End
push 0x457ab8
mov ecx, 0x449300
call fcn.00418500
add esp, 8
cmp ebx, 0x669
jne 0x40cf6b
call fcn.00421840
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40cf7a
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.0042ee49
mov esp, ebp
pop ebp
ret