Function at 0x40be80
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c405
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], 0
mov ecx, 0x438aac
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40bf0b
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40bf0b
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Installing_KB:
push 0x1e
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40bf0b
cmp byte [0x438ab9], 0
je 0x40bf0b
mov ecx, 0x438ab0
call fcn.004043a0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004031f0
mov dword [ebp - 0x22c], 2
mov byte [ebp - 4], 2
call fcn.00401920
mov ecx, eax
test ecx, ecx
je 0x40c52e
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x5c
push dword [ebp - 0x224]
add eax, 0x10
mov dword [ebp - 0x22c], 6
mov dword [ebp - 0x220], eax
call fcn.00410f12
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x40bfd7
sub eax, dword [ebp - 0x224]
sar eax, 1
test eax, eax
jle 0x40bfd7
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
call fcn.004075e0
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.00403180
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
mov eax, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x22c], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c009
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.KB2999226.msu
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x21c]
call fcn.00402e00
add esp, 4
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c043
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov esi, dword [ebp - 0x21c]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c0ce
test esi, esi
je 0x40c0ce
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c0ce
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c080
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
mov ecx, 0x438aac
push eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c0ce
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c0ce
mov ecx, 0x438ab0
call fcn.004043a0
mov eax, dword [ebp - 0x21c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x264], xmm0
mov dword [ebp - 0x254], 0
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x26c], 0x3c
mov dword [ebp - 0x268], 0x40
cmp dword [eax - 4], 1
jle 0x40c139
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00401540
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 0x258], 0x433f20
mov dword [ebp - 0x250], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c47b
cmp dword [ebp - 0x234], 0
je 0x40c47b
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c1dc
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c1dc
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.ShellExecuteEx_succeeded
push 0x30
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c1dc
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c1dc
mov ecx, 0x438ab0
call fcn.004043a0
cmp byte [0x439814], 0
je 0x40c1ec
mov bl, 1
jmp 0x40c4ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x439830]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x37
ja 0x40c205
test edx, edx
jne 0x40c21f
push 5
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c286
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c286
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Waiting_for_process_to_complete
push 0x3e
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c286
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c286
mov ecx, 0x438ab0
call fcn.004043a0
push 0x927c0
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x228], eax
test eax, eax
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
jne 0x40c41a
call eax
test al, al
je 0x40c30c
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c30c
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Process_completed
push 0x22
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c30c
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c30c
mov ecx, 0x438ab0
call fcn.004043a0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [ebp - 0x220]
call fcn.00401320
mov byte [ebp - 4], 6
lea eax, [ebp - 0x220]
push dword [ebp - 0x228]
push str.Process_exit_code:__u
push eax
call fcn.00407c20
mov eax, dword [vtable.CLogImplW.0]
add esp, 0xc
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
mov esi, dword [ebp - 0x220]
test al, al
je 0x40c3d5
test esi, esi
je 0x40c3d5
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c3d5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c387
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
mov ecx, 0x438aac
push eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c3d5
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c3d5
mov ecx, 0x438ab0
call fcn.004043a0
cmp dword [ebp - 0x228], 0
je 0x40c3e8
mov ecx, 0x11
call fcn.00408c40
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c4ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40c4ee
call eax
test al, al
je 0x40c474
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c474
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Failed_to_wait_process_to_complete
push 0x44
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c474
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c474
mov ecx, 0x438ab0
call fcn.004043a0
mov ecx, 0x10
jmp 0x40c4e7
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40c4e2
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40c4e2
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.ShellExecuteEx_failed
push 0x2a
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40c4e2
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40c4e2
mov ecx, 0x438ab0
call fcn.004043a0
mov ecx, 0xf
call fcn.00408c40
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40c510
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f7c4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004016f0
int3