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

Disassembly:
push ebp
lea ebp, [esp - 0x38]
sub esp, 0x38
push 0xffffffffffffffff
push 0x450969
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x30], esi
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
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.0040bda0
test al, al
jne 0x40a344
push str.InterbootContext
lea ecx, [ebp + 0x34]
call fcn.0040be80
mov dword [ebp - 4], 1
lea eax, [ebp + 0x34]
mov dword [ebp + 0x1c], 0x468484
lea ecx, [ebp + 0x20]
push eax
mov dword [ebp + 0x1c], 0x4684a0
call fcn.00417b60
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0x40]
mov dword [ebp + 0x24], 0x409f60
mov byte [ebp + 0x28], 1
mov dword [ebp + 0x2c], edi
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 0x40a39b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 8], 0
je 0x40a562
cmp byte [esi + 5], 0
mov dword [ebp - 0x98], 0x465d54
mov dword [ebp - 0x94], edi
je 0x40a3cf
push 0
push 0
lea ecx, [ebp - 0x98]
call fcn.00408db0
jmp 0x40a4bb
push ecx
lea ecx, [ebp - 0x98]
call fcn.00408de0
movzx eax, al
lea ecx, [esi + 0x108]
push eax
push 0xdf
call fcn.00418150
lea eax, [ebp - 0x98]
mov dword [ebp + 4], 0x46a0e8
mov dword [ebp + 4], 0x46a0f8
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0xffffffff
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov byte [ebp - 4], 6
lea eax, [ebp + 0x40]
push eax
push 0
lea eax, [ebp + 4]
mov dword [ebp + 0x18], 0
push eax
push 0x42be50
push 0
push 0
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
jne 0x40a45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00417f60
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov dword [ebp + 4], 0x46a0f8
test eax, eax
je 0x40a4bb
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0xc], 0xffffffff
je 0x40a4b2
lea eax, [ebp + 0x40]
mov dword [ebp + 0x40], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40a4b2
cmp dword [ebp + 0x40], 0x103
jne 0x40a4b2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x40a500
xor edx, edx
test edx, edx
js 0x40acbf
cmp ecx, esi
jge 0x40acbf
mov eax, dword [edi + 4]
mov eax, dword [eax + edx + 0x60]
cmp eax, 2
je 0x40a5e2
cmp eax, 1
je 0x40a5e2
cmp eax, 3
je 0x40a5e2
inc ecx
add edx, 0x74
cmp ecx, esi
jl 0x40a4c6
cmp byte [0x479ee0], 0
je 0x40a562
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
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.00403530
lea eax, [ebp + 0x40]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
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 0x40a562
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0x4684a0
mov dword [ebp - 4], 0x3d
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x40a58b
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [ebp + 0x24]
add esp, 8
cmp byte [ebp + 0x28], 0
je 0x40a59f
push dword [ebp + 0x20]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x20]
mov dword [ebp + 0x40], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a5cb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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
mov ecx, dword [ebp + 0x30]
add ecx, 0x114
call fcn.00418fa0
mov eax, dword [ebp + 0x30]
xor esi, esi
add eax, 0x108
mov dword [ebp - 0x88], 0x467ea4
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x468718
mov dword [ebp - 0x88], 0x467e78
mov dword [ebp - 0x8c], 0x468748
mov dword [ebp - 0x88], 0x46871c
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], edi
mov dword [ebp + 0x40], eax
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0xd
mov ecx, edi
mov eax, dword [ebp + 0x30]
add eax, 8
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
mov dword [ebp + 0x34], eax
call fcn.00412d90
mov dword [ebp + 0x40], eax
lea eax, [ebp - 0x70]
mov dword [ebp], eax
call fcn.00403950
test eax, eax
je 0x40accb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 0x10
xorps xmm0, xmm0
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x5c], esi
mov byte [ebp - 0x58], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x70]
push dword [ebp + 0x40]
call fcn.0041fab0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x40]
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x8c]
mov word [ebp - 0x28], si
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x14
mov ecx, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 1
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x5c], 0x478cf8
call fcn.0041f600
mov byte [ebp - 4], 0x15
mov ecx, edi
call fcn.00412bb0
test al, al
je 0x40a7f2
cmp byte [0x479ee0], 0
je 0x40a789
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp + 0x40]
push 0x31
push str.Starting_installing_prerequisites_in_silent_mode.
call fcn.00403530
lea eax, [ebp + 0x40]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a789
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x58], 1
call fcn.0041f6a0
push 0
lea ecx, [ebp - 0x8c]
call fcn.0041da60
push 0
lea ecx, [ebp - 0x8c]
call fcn.0041e7f0
push 0
lea ecx, [ebp - 0x8c]
call fcn.0041f050
cmp byte [ebp - 0x27], 0
jne 0x40aa55
push ecx
lea ecx, [ebp - 0x8c]
call fcn.0041d840
lea ecx, [ebp - 0x8c]
call fcn.0041f4a0
test al, al
jne 0x40aa55
mov esi, 1
jmp 0x40aa55
mov ecx, edi
call fcn.00412ca0
test al, al
je 0x40aa55
cmp byte [0x479ee0], 0
je 0x40a863
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x40]
push 0x33
push str.Starting_installing_prerequisites_in_basic_UI_mode.
call fcn.00403530
lea eax, [ebp + 0x40]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a863
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x30]
add ecx, 0x108
lea eax, [ecx + 4]
mov dword [ebp + 0x34], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40a8d7
mov eax, dword [ecx + 8]
lea edi, [ecx + 8]
cmp dword [eax - 0xc], 0
jne 0x40a895
push ecx
mov ecx, edi
call fcn.00407c70
mov ecx, edi
call fcn.0042b7d0
mov edx, 0xa1
lea ecx, [ebp + 0x40]
call fcn.0042b080
mov byte [ebp - 4], 0x20
push dword [edi]
mov edi, dword [ebp + 0x34]
push dword [ebp + 0x40]
push edi
call fcn.004121e0
add esp, 0xc
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a8da
mov edi, dword [ebp + 0x34]
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xec], 0
mov dword [ebp], eax
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 0x23
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x467ea4
mov dword [ebp - 0xd0], 0x467e78
mov dword [ebp - 0xf0], 0x468778
mov dword [ebp - 0xd0], 0x46874c
mov dword [ebp - 0xc8], edi
mov byte [ebp - 0xc4], 0
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], 0
call fcn.004342d0
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x8c]
call fcn.0041f6a0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x40a9d9
call fcn.004384b9
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x40a9d9
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb8], 0
jmp 0x40aa46
push 0
push 0
push eax
call fcn.004385bb
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00419450
push 0
push 0x419330
push edi
push 0xd8
push dword [0x478f9c]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 0xffffffffffffffff
push dword [ebp - 0xb8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb8], 0
sub edi, 1
je 0x40aa44
sub edi, 6
jne 0x40aa46
lea esi, [edi + 1]
jmp 0x40aa46
xor esi, esi
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xf0]
call fcn.00420550
cmp byte [0x479ee0], 0
mov edi, str.true
je 0x40ab06
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp + 0x40]
push 0x24
push str.After_running_prerequisites_we_have:
call fcn.00403530
push 0x16
push str.__Reboot_was_required
lea ecx, [ebp + 0x40]
call fcn.00403530
cmp byte [ebp - 0x27], 0
mov eax, str.false
mov edx, edi
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 0x40aac0
sub ecx, dword [ebp + 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x40]
call fcn.00403530
lea eax, [ebp + 0x40]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ab06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x27], 0
je 0x40ac51
cmp byte [0x479ee0], 0
je 0x40aba6
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x30
lea ecx, [ebp + 0x40]
push 0x15
push str.__Reboot_was_refused
call fcn.00403530
cmp byte [ebp - 0x28], 0
mov eax, str.false
mov edx, edi
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x34], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab60
sub ecx, dword [ebp + 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x40]
call fcn.00403530
lea eax, [ebp + 0x40]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aba6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x28], 0
jne 0x40ac45
cmp byte [0x479ee0], 0
je 0x40ac45
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x40accb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x35
lea ecx, [ebp + 0x40]
push 0x15
push str.__Reboot_in_Progress
call fcn.00403530
cmp byte [ebp - 0x10], 0
mov eax, str.false
cmove edi, eax
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40ac00
sub edx, ecx
lea ecx, [ebp + 0x40]
sar edx, 1
push edx
push edi
call fcn.00403530
lea eax, [ebp + 0x40]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ac45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x27], 0
je 0x40ac51
cmp byte [ebp - 0x28], 0
je 0x40ac57
cmp byte [ebp - 0x10], 0
je 0x40ac67
mov eax, dword [ebp + 0x30]
or esi, 0xffffffff
mov byte [ebp + 0x28], 0
mov byte [eax + 4], 1
jmp 0x40ac6a
mov eax, dword [ebp + 0x30]
mov dword [eax], esi
mov byte [ebp - 4], 0x39
lea eax, [ebp - 0x40]
mov dword [ebp + 0x40], eax
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x3c]
call fcn.0040c410
mov byte [ebp - 4], 0x38
lea ecx, [ebp - 0x70]
call fcn.0041f970
mov byte [ebp - 4], 4
lea eax, [ebp - 0x78]
mov dword [ebp], eax
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a564
push 1
push 0xc000008c
call fcn.0040ce70
push 0x80004005
call fcn.00404020
int3