Function at 0x40c1a0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x10
je 0x40c221
mov edx, dword [ebp + 0x24]
add edx, 0xf
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x120], 0x94
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x110], 2
jne 0x40c202
push 0x50cb7c
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40c211
push 0x50cb88
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40c227
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 1
neg edx
sbb edx, edx
inc edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov ax, word [ebp - 0x60]
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c46a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 2
je 0x40c457
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jge 0x40c3ae
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0
jne 0x40c3a9
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40c330
cmp dword [ebp - 0x78], 0xf
jne 0x40c32e
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40c3a4
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0x102
je 0x40c359
cmp dword [ebp - 0x128], 0xffffffff
je 0x40c35b
jmp 0x40c378
jmp 0x40c3a4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
mov dword [ebp - 0x80], 1
jmp 0x40c3a4
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [ebp - 0x80], 1
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x84]
mov dword [eax], ecx
jmp 0x40c2fe
jmp 0x40c441
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0x102
je 0x40c3db
cmp dword [ebp - 0x12c], 0xffffffff
je 0x40c406
jmp 0x40c41c
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x40a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 4
je 0x40c3fc
push 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40c404
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
jmp 0x40c441
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x40c441
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x84]
mov dword [edx], eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c468
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ecx], edx
jmp 0x40c47e
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0x10
je 0x40c492
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esp, ebp
pop ebp
ret