Function at 0x40c370
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44333b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
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 0x40c43c
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c3fc
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 0x40c415
push eax
call esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40c424
push eax
call esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40c842
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c842
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, esi
call fcn.0040b7c0
lea edi, [esi + 4]
push 0x44a3b4
mov dword [esp + 0x14], eax
call fcn.004149c0
push eax
lea eax, [esp + 0x88]
push 0x104
push eax
call fcn.0042d2d5
lea eax, [esi + 0x84]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40c483
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.00404ab0
push str.____Log_start
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
cmp byte [esi + 0x2d], 0
jne 0x40c56d
cmp dword [esi + 0x44], ebx
lea eax, [esi + 0x30]
jb 0x40c4ca
mov eax, dword [eax]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.00421650
mov ecx, 0x44742c
test eax, eax
je 0x40c55b
cmp eax, 0x652
je 0x40c522
push eax
push str.__Fatal_error_while_trying_to_obtain_single_instance_mutex___X_
push 0x4569dc
call fcn.00404ce0
add esp, 0xc
push str.____Log_End
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
lea esi, [esp + 0x14]
call fcn.00421600
mov eax, 0x643
jmp 0x40c844
push str.__Unable_to_obtain_single_instance_mutex_ownership
push 0x4569dc
call fcn.00404ce0
push str.____Log_End
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0x10
lea esi, [esp + 0x14]
call fcn.00421600
mov eax, 0x652
jmp 0x40c844
push str.Single_instance_mutex_has_been_obtained
push 0x4569dc
call fcn.00404ce0
add esp, 8
call fcn.00404b60
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 0x40c5c3
push ebx
push str.Language_load_error___d_
push 0x4569dc
mov ecx, 0x447290
call fcn.00404ce0
add esp, 0xc
push 0
push str.Setup
push str.Error_loading_language_resource
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40c839
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40c616
mov ecx, ebx
call fcn.0040ca10
push ebx
push str.Command_line_error__d
push 0x4569dc
mov ecx, 0x447290
call fcn.00404ce0
add esp, 0xc
mov eax, esi
call fcn.00409740
test al, al
jne case.0x40c64b.10
push 0x1f9f
push 0
push 2
push 0x2067
xor ecx, ecx
call fcn.004052f0
add esp, 0x10
jmp case.0x40c64b.10
mov eax, esi
call fcn.00409740
test al, al
jne 0x40c640
cmp byte [esi + 0x2c], al
je 0x40c640
push str._b__force_reboot__is_only_valid_in_silent_mode__switch_will_be_ignored
push 0x4569dc
mov ecx, 0x447a28
mov byte [esi + 0x2c], al
call fcn.00404ce0
add esp, 8
push esi
call fcn.004095a0
cmp eax, 0xd
ja case.0x40c64b.10
jmp dword [eax*4 + 0x40c868]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
jmp 0x40c6b9
push esi
call fcn.004093a0
jmp case.0x40c64b.10
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Activating_setup_wizard
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
add esp, 8
jmp 0x40c6b9
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
jmp 0x40c6b9
push esi
call fcn.004094c0
jmp case.0x40c64b.10
mov ecx, esi
call fcn.00408d10
jmp case.0x40c64b.10
mov ecx, esi
call fcn.00407fe0
jmp case.0x40c64b.10
mov ecx, esi
call fcn.004086e0
jmp case.0x40c64b.10
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
mov eax, 0x457d28
call fcn.00418ea0
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
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 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov ebx, dword [edi]
add esp, 0xc
cmp ebx, dword [esi + 8]
je 0x40c73e
mov edi, edi
mov eax, 8
cmp dword [ebx + 0x30], eax
jb 0x40c70f
mov ecx, dword [ebx + 0x1c]
jmp 0x40c712
lea ecx, [ebx + 0x1c]
cmp dword [ebx + 0x14], eax
jb 0x40c71b
mov eax, dword [ebx]
jmp 0x40c71d
mov eax, ebx
push ecx
push eax
push str.___s_s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add ebx, 0x38
add esp, 0x10
cmp ebx, dword [esi + 8]
jne 0x40c700
push str.IIF_EXITCODE
call fcn.004149c0
push eax
call fcn.0042dd06
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.00409740
test al, al
je 0x40c78a
cmp byte [esi + 0x2c], 0
je 0x40c78a
cmp ebx, 0xbc2
jne 0x40c773
mov ebx, 0x669
jmp 0x40c78a
push str.Force_reboot___b__switch_was_used_but_setup_does_not_require_a_reboot
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
push str.IIF_EXITCODE
call fcn.004149c0
push eax
call fcn.0042dd06
add esp, 4
cmp eax, 0x661
ja 0x40c7b1
je 0x40c7c6
test eax, eax
je 0x40c7c6
cmp eax, 0x642
jmp 0x40c7bd
cmp eax, 0x669
je 0x40c7c6
cmp eax, 0xbc2
je 0x40c7c6
mov ebx, 0x643
jmp 0x40c7fd
test ebx, ebx
je 0x40c7da
cmp ebx, 0x669
je 0x40c7da
cmp ebx, 0xbc2
jne 0x40c7fd
push esi
call fcn.004095a0
cmp eax, 9
jl 0x40c7fd
cmp eax, 0xa
jle 0x40c7f7
cmp eax, 0xd
jne 0x40c7fd
push esi
call fcn.004089f0
jmp 0x40c7fd
push esi
call fcn.0040c8a0
push ebx
push str.Exit_code__command_line_:__d
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
push str.____Log_End
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
cmp ebx, 0x669
jne 0x40c839
call fcn.00417ea0
lea esi, [esp + 0x14]
call fcn.00421600
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.0042c682
mov esp, ebp
pop ebp
ret