Function at 0x41a2a0
Capabilities:
Create thread
Delete registry key
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x38]
sub esp, 0x38
push 0xffffffffffffffff
push 0x476715
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp + 0x2c], edi
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x34], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x34]
push str.InterbootContext
call fcn.0040c180
test al, al
jne 0x41a314
push str.InterbootContext
lea ecx, [ebp + 0x34]
call fcn.0041bda0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x34]
mov dword [ebp + 0x18], 0x492a54
lea ecx, [ebp + 0x1c]
push eax
mov dword [ebp + 0x18], 0x492a70
call fcn.004356e0
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x40]
mov dword [ebp + 0x20], fcn.00419ef0
mov byte [ebp + 0x24], 1
mov dword [ebp + 0x28], esi
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp + 0x34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a36b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 8], 0
je 0x41a51c
cmp byte [edi + 5], 0
mov dword [ebp - 0x70], 0x48ff7c
mov dword [ebp - 0x6c], esi
je 0x41a394
mov ecx, esi
call fcn.00430e40
mov dword [ebp - 0x68], eax
jmp 0x41a470
lea ecx, [edi + 0x118]
push ecx
push 0
push 0xdf
call fcn.00435f60
lea eax, [ebp - 0x70]
mov dword [ebp], method.std::_Facet_base.virtual_4
mov dword [ebp], 0x493e80
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0xffffffff
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 6
lea eax, [ebp + 0x40]
push eax
push 0
lea eax, [ebp]
mov dword [ebp + 0x14], 0
push eax
push 0x4465f0
push 0
push 0
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 4], eax
test eax, eax
jne 0x41a412
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 4]
mov ecx, eax
call fcn.00424c40
mov byte [ebp - 4], 4
mov eax, dword [ebp + 4]
mov dword [ebp], 0x493e80
test eax, eax
je 0x41a470
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 8], 0xffffffff
je 0x41a467
lea eax, [ebp + 0x40]
mov dword [ebp + 0x40], 0
push eax
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41a467
cmp dword [ebp + 0x40], 0x103
jne 0x41a467
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x41a4ba
xor edx, edx
nop dword [eax + eax]
test edx, edx
js 0x41ac1a
cmp ecx, edi
jge 0x41ac1a
mov eax, dword [esi + 4]
mov eax, dword [eax + edx + 0x60]
cmp eax, 2
je 0x41a55c
cmp eax, 1
je 0x41a55c
cmp eax, 3
je 0x41a55c
inc ecx
add edx, 0x74
cmp ecx, edi
jl 0x41a480
cmp byte [0x4a89dc], 0
je 0x41a51c
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x40]
push 0x22
push str.No_prerequisite_must_be_installed.
call fcn.00404870
lea eax, [ebp + 0x40]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a51c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x18], 0x492a70
mov dword [ebp - 4], 0x3c
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x41abb9
mov ecx, dword [ebp + 0x20]
push eax
lea eax, [ebp + 0x18]
push eax
cmp ecx, fcn.00419ef0
jne 0x41abb4
call fcn.00419ef0
jmp 0x41abb6
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + 0x124]
lea ebx, [eax + 0x118]
call fcn.004371a0
lea eax, [ebp + 0x18]
xor edi, edi
push eax
mov eax, dword [ebp + 0x2c]
push ebx
add eax, 8
push eax
push esi
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0043b820
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.004304e0
test al, al
je 0x41a670
cmp byte [0x4a89dc], 0
je 0x41a601
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x40]
push 0x31
push str.Starting_installing_prerequisites_in_silent_mode.
call fcn.00404870
lea eax, [ebp + 0x40]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a601
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0xc8], 1
call fcn.0043db30
push 0
lea ecx, [ebp - 0xfc]
call fcn.0043bd50
push 0
lea ecx, [ebp - 0xfc]
call fcn.0043caf0
push 0
lea ecx, [ebp - 0xfc]
call fcn.0043d4c0
cmp byte [ebp - 0x8b], 0
jne 0x41a92a
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0043bb20
lea ecx, [ebp - 0xfc]
call fcn.0043d930
test al, al
jne 0x41a92a
mov edi, 1
jmp 0x41a92a
mov ecx, esi
call fcn.004305d0
test al, al
je 0x41a92a
cmp byte [0x4a89dc], 0
je 0x41a6e2
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x40]
push 0x33
push str.Starting_installing_prerequisites_in_basic_UI_mode.
call fcn.00404870
lea eax, [ebp + 0x40]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a6e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 4]
mov dword [ebp + 0x40], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x41a74e
mov eax, dword [ebx + 8]
cmp dword [eax - 0xc], 0
jne 0x41a70a
push ebx
lea ecx, [ebx + 8]
call fcn.00405ad0
lea ecx, [ebx + 8]
call fcn.0042be60
mov edx, 0xa1
lea ecx, [ebp + 0x40]
call fcn.00426f80
mov byte [ebp - 4], 0x17
lea esi, [ebx + 4]
push dword [ebx + 8]
push dword [ebp + 0x40]
push esi
call fcn.00422e30
add esp, 0xc
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a751
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41a751
mov esi, dword [ebp + 0x40]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov dword [ebp + 0x34], eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x492474
mov dword [ebp - 0x44], 0x492448
mov dword [ebp - 0x64], 0x492cbc
mov dword [ebp - 0x44], 0x492c90
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
call fcn.0044d2c0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0xfc]
call fcn.0043db30
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x41a814
call fcn.0045069c
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x41a814
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call eax
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [ebp - 0x2c], 0
jmp 0x41a8b8
push 0
push 0
push eax
call fcn.0045079e
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x58], eax
mov dword [ebp + 0x30], 0x4a8a64
mov byte [ebp + 0x34], 0
mov byte [ebp - 4], 0x20
push 0x4a8a64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4a8a7c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov byte [ebp + 0x34], 1
mov dword [0x4a8a7c], eax
mov byte [ebp - 4], 0x1f
push 0x4a8a64
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x437520
push esi
push 0xd8
push dword [0x4a772c]
mov byte [ebp + 0x34], 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [ebp - 0x2c], 0
sub esi, 1
je 0x41a8b6
sub esi, 6
jne 0x41a8b8
lea edi, [esi + 1]
jmp 0x41a8b8
xor edi, edi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x64], 0x492cbc
mov dword [ebp - 0x44], 0x492c90
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41a8d8
push eax
call ebx
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x24]
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x23
cmp byte [ebp - 0x10], 0
je 0x41a8fe
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41a8fe
mov eax, dword [ecx]
push 0
push dword [ebp - 0x24]
push ecx
call dword [eax + 0x28]
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41a90f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x5c]
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41a92a
push eax
call fcn.00450748
cmp byte [0x4a89dc], 0
mov esi, str.true
mov ebx, str.false
je 0x41a9da
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp + 0x40]
push 0x24
push str.After_running_prerequisites_we_have:
call fcn.00404870
push 0x16
push str.__Reboot_was_required
lea ecx, [ebp + 0x40]
call fcn.00404870
cmp byte [ebp - 0x8b], 0
mov edx, esi
cmove edx, ebx
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a990
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x40]
call fcn.00404870
lea eax, [ebp + 0x40]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xc
or ebx, 0xffffffff
mov edx, dword [ebp + 0x40]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a9dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41a9dd
or ebx, 0xffffffff
cmp byte [ebp - 0x8b], 0
je 0x41ab37
cmp byte [0x4a89dc], 0
je 0x41aa86
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp + 0x40]
push 0x15
push str.__Reboot_was_refused
call fcn.00404870
cmp byte [ebp - 0x8c], 0
mov eax, str.false
mov edx, esi
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x34], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aa40
sub ecx, dword [ebp + 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x40]
call fcn.00404870
lea eax, [ebp + 0x40]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41aa86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x8c], 0
jne 0x41ab25
cmp byte [0x4a89dc], 0
je 0x41ab25
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x41ac10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x34
lea ecx, [ebp + 0x40]
push 0x15
push str.__Reboot_in_Progress
call fcn.00404870
cmp byte [ebp - 0x74], 0
mov eax, str.false
cmove esi, eax
mov edx, esi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41aae0
sub edx, ecx
lea ecx, [ebp + 0x40]
sar edx, 1
push edx
push esi
call fcn.00404870
lea eax, [ebp + 0x40]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ab25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x8b], 0
je 0x41ab37
cmp byte [ebp - 0x8c], 0
je 0x41ab3d
cmp byte [ebp - 0x74], 0
je 0x41ab4d
mov eax, dword [ebp + 0x2c]
or edi, 0xffffffff
mov byte [ebp + 0x24], 0
mov byte [eax + 4], 1
jmp 0x41ab50
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
mov byte [ebp - 4], 0x38
lea eax, [ebp - 0xa4]
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x38
lea ecx, [ebp - 0xa0]
call fcn.0040bd80
mov byte [ebp - 4], 0x37
lea ecx, [ebp - 0xe0]
call fcn.0043df60
mov byte [ebp - 4], 4
lea eax, [ebp - 0xe8]
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a51e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41a51e
call ecx
add esp, 8
cmp byte [ebp + 0x24], 0
je 0x41abcd
push dword [ebp + 0x1c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x40], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41abf9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x38]
pop ebp
ret 4
push 0x80004005
call fcn.00402f30
push 1
push 0xc000008c
call fcn.004134e0
int3