Function at 0x40186b
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
jmp 0x403af0
push 0xffffffffffffffff
push 0x470022
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
push ebx
push ebp
mov ebp, ecx
push str.Create_process_to_run_kernel.exe..._r_n
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0xc]
xor ebx, ebx
push ebx
push 2
push eax
mov dword [esp + 0x2c0], ebx
call fcn.004012bc
add esp, 0xc
lea ecx, [esp + 0x14]
push ebp
call sub.MFC42u.DLL_CString::CString_2
push 0x480dd4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b8], 1
call fcn.0041f1ac
mov ecx, dword [0x486e64]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
push 0x480f20
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b8], 2
call fcn.0041f1ac
mov edx, dword [0x486eb4]
cmp dword [edx - 8], ebx
je 0x403b95
push 0x486eb4
lea ecx, [esp + 0x14]
call fcn.0041f1b8
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xae]
mov word [esp + 0xac], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xac]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xac]
lea edx, [esp + 0x14]
push ecx
push str._s_..._r_n
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2bc], 3
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov byte [esp + 0x2bc], 4
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x44]
mov byte [esp + 0x2bc], 5
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x48]
mov byte [esp + 0x2bc], 6
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2bc], 7
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x50]
mov byte [esp + 0x2bc], 8
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x54]
mov byte [esp + 0x2bc], 9
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x2bc], 0xa
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea eax, [esp + 0xac]
mov byte [esp + 0x2bc], 0xb
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [eax]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
mov byte [esp + 0x2c8], 0xc
call fcn.00439bf0
add esp, 0xc
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2bc], 0xb
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
je 0x403d35
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004011db
add esp, 0xc
mov eax, dword [esp + 0x10]
mov byte [esp + 0x2bc], 0xd
cmp dword [eax - 8], ebx
je 0x403d24
push 0x480efc
lea ecx, [esp + 0x1c]
call fcn.0041f1ac
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041f1b8
push 0x480ef8
lea ecx, [esp + 0x1c]
call fcn.0041f1ac
lea ecx, [esp + 0x10]
mov byte [esp + 0x2bc], 0xb
call sub.MFC42u.DLL_CString::CString
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], 0x44
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
xor edx, edx
lea ecx, [esp + 0x68]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], edx
push ecx
push ebx
mov dword [esp + 0x6c], edx
push ebx
push ebx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
cmp eax, ebx
pop esi
jne 0x403dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push 0x480e80
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
push ebx
push 1
push edx
call fcn.004012bc
add esp, 0x18
lea eax, [esp + 8]
mov dword [esp + 8], 5
push 0x478f10
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x84
push 0x81
call fcn.00401870
mov ecx, dword [esp + 0x58]
add esp, 8
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Wait_for_Process_failed__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x18]
push ebx
push 1
push eax
call fcn.004012bc
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 8], 2
push 0x478f10
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp + 0x3c], ebx
je 0x403e56
mov edx, dword [ebp + 0x40]
lea eax, [esp + 0xc]
push edx
push str.RemoveFIle_:_s__r_n
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x18]
push ebx
push 1
push ecx
call fcn.004012bc
mov ebp, dword [ebp + 0x40]
push ebp
call fcn.00401195
add esp, 0x1c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b4], 0x14
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x2b4], 0x13
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b4], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b4], 0x11
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b4], 0x10
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b4], 0xf
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x2b4], 0xe
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x2b4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2ac]
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b0
ret