Function at 0x40b470
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4423cb
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
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 0x40b53c
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40b4fc
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 0x40b515
push eax
call esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40b524
push eax
call esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40b942
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40b942
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, esi
call fcn.0040a8c0
lea edi, [esi + 4]
push str.IIF_LOGFOLDER
mov dword [esp + 0x14], eax
call fcn.00404030
push eax
lea eax, [esp + 0x88]
push 0x104
push eax
call fcn.0042c4dd
lea eax, [esi + 0x84]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40b583
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.00406350
push str.____Log_start
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
cmp byte [esi + 0x2d], 0
jne 0x40b66d
cmp dword [esi + 0x44], ebx
lea eax, [esi + 0x30]
jb 0x40b5ca
mov eax, dword [eax]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.004232c0
mov ecx, 0x4462a0
test eax, eax
je 0x40b65b
cmp eax, 0x652
je 0x40b622
push eax
push str.__Fatal_error_while_trying_to_obtain_single_instance_mutex___X_
push 0x4549c0
call fcn.00406580
add esp, 0xc
push str.____Log_End
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
lea esi, [esp + 0x14]
call fcn.00423270
mov eax, 0x643
jmp 0x40b944
push str.__Unable_to_obtain_single_instance_mutex_ownership
push 0x4549c0
call fcn.00406580
push str.____Log_End
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0x10
lea esi, [esp + 0x14]
call fcn.00423270
mov eax, 0x652
jmp 0x40b944
push str.Single_instance_mutex_has_been_obtained
push 0x4549c0
call fcn.00406580
add esp, 8
call fcn.00406400
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 0x40b6c3
push ebx
push str.Language_load_error___d_
push 0x4549c0
mov ecx, 0x446820
call fcn.00406580
add esp, 0xc
push 0
push str.Setup
push str.Error_loading_language_resource
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40b939
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40b716
mov ecx, ebx
call fcn.0040bb10
push ebx
push str.Command_line_error__d
push 0x4549c0
mov ecx, 0x446820
call fcn.00406580
add esp, 0xc
mov eax, esi
call fcn.00408880
test al, al
jne case.0x40b74b.10
push 0x1f9f
push 0
push 2
push 0x2067
xor ecx, ecx
call fcn.0041b670
add esp, 0x10
jmp case.0x40b74b.10
mov eax, esi
call fcn.00408880
test al, al
jne 0x40b740
cmp byte [esi + 0x2c], al
je 0x40b740
push str._b__force_reboot__is_only_valid_in_silent_mode__switch_will_be_ignored
push 0x4549c0
mov ecx, 0x446470
mov byte [esi + 0x2c], al
call fcn.00406580
add esp, 8
push esi
call fcn.004086e0
cmp eax, 0xd
ja case.0x40b74b.10
jmp dword [eax*4 + 0x40b968]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
jmp 0x40b7b9
push esi
call fcn.004084e0
jmp case.0x40b74b.10
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Activating_setup_wizard
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
add esp, 8
jmp 0x40b7b9
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
jmp 0x40b7b9
push esi
call fcn.00408600
jmp case.0x40b74b.10
mov ecx, esi
call fcn.00407cb0
jmp case.0x40b74b.10
mov ecx, esi
call fcn.00406e10
jmp case.0x40b74b.10
mov ecx, esi
call fcn.00407510
jmp case.0x40b74b.10
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
mov eax, 0x455c98
call fcn.00412da0
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 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov ebx, dword [edi]
add esp, 0xc
cmp ebx, dword [esi + 8]
je 0x40b83e
mov edi, edi
mov eax, 8
cmp dword [ebx + 0x30], eax
jb 0x40b80f
mov ecx, dword [ebx + 0x1c]
jmp 0x40b812
lea ecx, [ebx + 0x1c]
cmp dword [ebx + 0x14], eax
jb 0x40b81b
mov eax, dword [ebx]
jmp 0x40b81d
mov eax, ebx
push ecx
push eax
push str.___s_s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add ebx, 0x38
add esp, 0x10
cmp ebx, dword [esi + 8]
jne 0x40b800
push str.IIF_EXITCODE
call fcn.00404030
push eax
call fcn.0042c5e6
mov ebx, eax
add esp, 4
mov eax, esi
call fcn.00408880
test al, al
je 0x40b88a
cmp byte [esi + 0x2c], 0
je 0x40b88a
cmp ebx, 0xbc2
jne 0x40b873
mov ebx, 0x669
jmp 0x40b88a
push str.Force_reboot___b__switch_was_used_but_setup_does_not_require_a_reboot
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
push str.IIF_EXITCODE
call fcn.00404030
push eax
call fcn.0042c5e6
add esp, 4
cmp eax, 0x661
ja 0x40b8b1
je 0x40b8c6
test eax, eax
je 0x40b8c6
cmp eax, 0x642
jmp 0x40b8bd
cmp eax, 0x669
je 0x40b8c6
cmp eax, 0xbc2
je 0x40b8c6
mov ebx, 0x643
jmp 0x40b8fd
test ebx, ebx
je 0x40b8da
cmp ebx, 0x669
je 0x40b8da
cmp ebx, 0xbc2
jne 0x40b8fd
push esi
call fcn.004086e0
cmp eax, 9
jl 0x40b8fd
cmp eax, 0xa
jle 0x40b8f7
cmp eax, 0xd
jne 0x40b8fd
push esi
call fcn.00407820
jmp 0x40b8fd
push esi
call fcn.0040b9a0
push ebx
push str.Exit_code__command_line_:__d
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
push str.____Log_End
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
cmp ebx, 0x669
jne 0x40b939
call fcn.00417d50
lea esi, [esp + 0x14]
call fcn.00423270
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.0042b939
mov esp, ebp
pop ebp
ret