Function at 0x40c310
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44409b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x4563d4]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
push edi
mov dword [esp + 0x2a4], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
mov ecx, esi
call edx
mov ebx, eax
cmp ebx, edi
je 0x40c3dc
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c39c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x40c3b5
push eax
call esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40c3c4
push eax
call esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40c8ec
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c8ec
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, esi
call fcn.0040b760
push 0x44b314
lea edi, [esi + 4]
mov dword [esp + 0x14], eax
call fcn.00413b40
push eax
lea eax, [esp + 0x88]
push 0x104
push eax
call fcn.0042dc9b
lea eax, [esi + 0x84]
mov edi, 8
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x40c423
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x84]
push edx
call fcn.00404960
push str.____Log_start
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
cmp byte [esi + 0x2d], 0
jne 0x40c50d
cmp dword [esi + 0x44], edi
lea eax, [esi + 0x30]
jb 0x40c46a
mov eax, dword [eax]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.00421f20
mov ecx, 0x44842c
test eax, eax
je 0x40c4fb
cmp eax, 0x652
je 0x40c4c2
push eax
push str.__Fatal_error_while_trying_to_obtain_single_instance_mutex___X_
push 0x4579e4
call fcn.00404b90
add esp, 0xc
push str.____Log_End
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
lea esi, [esp + 0x14]
call fcn.00421ed0
mov eax, 0x643
jmp 0x40c8ee
push str.__Unable_to_obtain_single_instance_mutex_ownership
push 0x4579e4
call fcn.00404b90
push str.____Log_End
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0x10
lea esi, [esp + 0x14]
call fcn.00421ed0
mov eax, 0x652
jmp 0x40c8ee
push str.Single_instance_mutex_has_been_obtained
push 0x4579e4
call fcn.00404b90
add esp, 8
call fcn.00404a10
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 edi, eax
test edi, edi
je 0x40c56e
push edi
push str.Language_load_error___d_
push 0x4579e4
mov ecx, 0x448290
call fcn.00404b90
add esp, 0xc
push 0
push str.Setup
push str.Error_loading_language_resource
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x14]
call fcn.00421ed0
mov eax, edi
jmp 0x40c8ee
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40c5c1
mov ecx, edi
call fcn.0040cac0
push edi
push str.Command_line_error__d
push 0x4579e4
mov ecx, 0x448290
call fcn.00404b90
add esp, 0xc
mov eax, esi
call fcn.004096c0
test al, al
jne case.0x40c63c.10
push 0x1f9f
push 0
push 2
push 0x2067
xor ecx, ecx
call fcn.00405190
add esp, 0x10
jmp case.0x40c63c.10
mov eax, esi
call fcn.004096c0
test al, al
jne 0x40c5eb
cmp byte [esi + 0x2c], al
je 0x40c5eb
push str._b__force_reboot__is_only_valid_in_silent_mode__switch_will_be_ignored
push 0x4579e4
mov ecx, 0x448aac
mov byte [esi + 0x2c], al
call fcn.00404b90
add esp, 8
mov eax, str.IIF_FRESH
lea edi, [esi + 4]
call fcn.00413b90
test al, al
je 0x40c631
push esi
call fcn.00409520
cmp eax, 0xd
je 0x40c612
push esi
call fcn.00409520
cmp eax, 0xc
jne 0x40c631
push str._repair_and__uninstall_switches_are_not_valid_with_fresh_install__they_will_be_ignored
push 0x4579e4
mov ecx, 0x448aac
call fcn.00404b90
add esp, 8
push esi
xor ecx, ecx
call fcn.0040cb10
push esi
call fcn.00409520
cmp eax, 0xd
ja case.0x40c63c.10
jmp dword [eax*4 + 0x40c914]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
jmp 0x40c6aa
push esi
call fcn.00409320
jmp case.0x40c63c.10
push str.MSFTEDIT.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Activating_setup_wizard
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
add esp, 8
jmp 0x40c6aa
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
jmp 0x40c6aa
push esi
call fcn.00409440
jmp case.0x40c63c.10
mov ecx, esi
call fcn.00408c70
jmp case.0x40c63c.10
mov ecx, esi
call fcn.00407ed0
jmp case.0x40c63c.10
mov ecx, esi
call fcn.004085d0
jmp case.0x40c63c.10
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
mov eax, 0x458d28
call fcn.00418d20
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.Dumping_properties___d_total_
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov edi, dword [esi + 4]
add esp, 0xc
cmp edi, dword [esi + 8]
je 0x40c72f
mov eax, 8
cmp dword [edi + 0x30], eax
jb 0x40c700
mov ecx, dword [edi + 0x1c]
jmp 0x40c703
lea ecx, [edi + 0x1c]
cmp dword [edi + 0x14], eax
jb 0x40c70c
mov eax, dword [edi]
jmp 0x40c70e
mov eax, edi
push ecx
push eax
push str.___s_s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add edi, 0x38
add esp, 0x10
cmp edi, dword [esi + 8]
jne 0x40c6f1
push str.Dumping_feature_states
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov ebx, dword [esi + 0x128]
add esp, 8
cmp ebx, dword [esi + 0x12c]
je 0x40c7ce
lea edi, [ebx + 0x1c]
jmp 0x40c760
cmp byte [edi + 0x5d], 0
mov edx, 0x44bbdc
jne 0x40c770
mov edx, 0x44bbe8
cmp byte [edi + 0x5c], 0
mov dword [esp + 0x10], 0x44bbdc
jne 0x40c786
mov dword [esp + 0x10], 0x44bbe8
cmp dword [edi + 0x38], 8
jb 0x40c791
mov ecx, dword [edi + 0x24]
jmp 0x40c794
lea ecx, [edi + 0x24]
cmp dword [edi], 8
jb 0x40c79e
mov eax, dword [edi - 0x14]
jmp 0x40c7a1
lea eax, [edi - 0x14]
push edx
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
push str.__Feature:__s__Package:__s__Current:__s__New:__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add ebx, 0x7c
add esp, 0x18
add edi, 0x7c
cmp ebx, dword [esi + 0x12c]
jne 0x40c760
push str.IIF_EXITCODE
lea edi, [esi + 4]
call fcn.00413b40
push eax
call fcn.0042e8c6
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.004096c0
test al, al
je 0x40c81d
cmp byte [esi + 0x2c], 0
je 0x40c81d
cmp ebx, 0xbc2
jne 0x40c806
mov ebx, 0x669
jmp 0x40c81d
push str.Force_reboot___b__switch_was_used_but_setup_does_not_require_a_reboot
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
push str.IIF_EXITCODE
call fcn.00413b40
push eax
call fcn.0042e8c6
add esp, 4
cmp eax, 0x661
ja 0x40c844
je 0x40c859
test eax, eax
je 0x40c859
cmp eax, 0x642
jmp 0x40c850
cmp eax, 0x669
je 0x40c859
cmp eax, 0xbc2
je 0x40c859
mov ebx, 0x643
jmp 0x40c890
test ebx, ebx
je 0x40c86d
cmp ebx, 0x669
je 0x40c86d
cmp ebx, 0xbc2
jne 0x40c890
push esi
call fcn.00409520
cmp eax, 9
jl 0x40c890
cmp eax, 0xa
jle 0x40c88a
cmp eax, 0xd
jne 0x40c890
push esi
call fcn.004088e0
jmp 0x40c890
push esi
call fcn.0040c950
push ebx
push str.Exit_code__command_line_:__d
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
cmp ebx, 0x669
jne 0x40c8cc
call fcn.00417ba0
push str.Initiated_reboot
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
push str.____Log_End
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
lea esi, [esp + 0x14]
call fcn.00421ed0
mov eax, ebx
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret