Function at 0x407240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x588bf7
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x5c]
xor edi, edi
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x1c], ecx
je 0x4072ab
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x5e8d28
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
mov dword [esp + 0x2f8], edi
je 0x407347
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push ecx
call eax
mov ebx, eax
cmp ebx, edi
jle 0x40732c
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0xa
lea ecx, [esp + 0x34]
mov byte [esp + 0x2f8], 1
call fcn.00408fe0
xor esi, esi
cmp ebx, edi
jle 0x40731d
jmp 0x407300
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40731d
add esi, 1
cmp esi, ebx
jl 0x407300
cmp dword [esp + 0x3c], edi
ja 0x40736d
lea ecx, [esp + 0x34]
call fcn.00408fe0
mov dword [esp + 0x2f8], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x407347
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.004721e8
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x2f8], 2
mov eax, dword [esp + 0x34]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
jne 0x4073d4
mov esi, ebx
imul esi, esi, 0x34
add esi, 8
push esi
mov dword [esp + 0x34], esi
call fcn.0044ff68
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, edi
mov byte [esp + 0x2f8], 3
jne 0x4075af
push 0x6130e4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x5e8968
call fcn.00475d96
nop
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x407591
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
add esi, 8
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x98], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x2c]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0xa4], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0xa8], eax
mov eax, dword [edi]
mov dword [esp + 0xac], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0xb0], edx
mov edx, dword [edi + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [edi + 0xc]
push 0x59dbb4
push esi
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], eax
call fcn.00409f40
add esp, 8
test eax, eax
je 0x407496
lea ecx, [esp + 0x6c]
push ecx
push esi
call fcn.0055f880
add esp, 8
test al, al
je 0x4074c6
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
jmp 0x4074ce
push 0x59dbc4
push esi
call fcn.00409f40
add esp, 8
test eax, eax
je 0x4074c6
push 0x59ded4
push edi
call fcn.00409f40
add esp, 8
test eax, eax
je 0x4074c6
mov esi, dword [esi + 0x44]
movzx eax, word [esi]
mov dword [esp + 0x18], eax
jmp 0x4074ce
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
mov dword [esp + 0xc4], ecx
jbe 0x407546
mov edi, dword [esp + 0x20]
add edi, 0x20
cmp esi, ebx
jae 0x40759b
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x10]
jne 0x40753c
lea eax, [esp + 0xb4]
push edi
push eax
call fcn.00409f40
add esp, 8
test eax, eax
je 0x40753c
lea ecx, [edi - 0x10]
push ecx
lea edx, [esp + 0xa8]
push edx
call fcn.00409f40
add esp, 8
test eax, eax
je 0x40753c
lea eax, [edi - 0x20]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00409f40
add esp, 8
test eax, eax
jne 0x407580
add esi, 1
add edi, 0x34
cmp esi, ebx
jb 0x4074ee
cmp ebx, dword [esp + 0x28]
mov edi, ebx
jb 0x407562
lea eax, [ebx + 1]
lea esi, [esp + 0x20]
call fcn.00409740
test al, al
je 0x4075a5
mov ebx, dword [esp + 0x24]
imul edi, edi, 0x34
add edi, dword [esp + 0x20]
je 0x407579
mov ecx, 0xd
lea esi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
add ebx, 1
mov dword [esp + 0x24], ebx
xor edi, edi
cmp dword [esp + 0x10], edi
jne 0x4073d0
jmp 0x40738f
push 0x80004005
call fcn.0040a460
push 0x80070057
call fcn.0040a460
push 0x8007000e
call fcn.0040a460
cmp ebx, edi
mov dword [eax], 0x8003
mov dword [eax + 4], ebx
lea edx, [eax + 8]
mov dword [esp + 0x18], edi
jle 0x4075ff
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x4075d4
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x18], ebx
jae 0x40759b
lea esi, [ecx + edx]
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
add ecx, 1
add edx, 0x34
cmp ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
jl 0x4075d0
mov esi, dword [esp + 0x30]
xor edi, edi
push edi
mov dword [esp + 0x54], esi
push str.MPKUWindow
mov dword [esp + 0x54], 0x504352
mov dword [esp + 0x5c], eax
xor ebx, ebx
xor esi, esi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
jne 0x40772a
cmp esi, edi
jne 0x407703
push 0x40
lea eax, [esp + 0x9c]
push edi
push eax
call fcn.004727f0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x10]
push str.kpupdate.exe
push ecx
mov dword [esp + 0x9c], 0x44
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.005604d0
add esp, 8
mov byte [esp + 0x2f8], 4
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x104
lea ecx, [esp + 0xe0]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jbe 0x40776e
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x98]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [esp + 0xfc]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407757
mov byte [esp + 0x2f8], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov esi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 1
cmp ebx, 6
jg 0x407785
push edi
push str.MPKUWindow
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x407627
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edx + 0x1c]
push ecx
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x6130e4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x5e8b0c
call fcn.00475d96
push 0x6130e4
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x5e8b00
call fcn.00475d96
push 0x6130e4
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x5e8b00
call fcn.00475d96
push 0x6130e4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x5e8b00
call fcn.00475d96
int3