Function at 0x409040
Capabilities:
Create process on windows
Delete file
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42e240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [0x43b990]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x78]
cmp eax, 1
mov byte [esp + 0x70], 2
jne 0x40909f
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
and esi, 0xff
push ecx
push edx
push esi
push str.echo_yformat__c:__FS:_s__V:_s__X__Q
jmp 0x4090b8
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
and esi, 0xff
push ecx
push edx
push esi
push str.echo_yformat__c:__FS:_s__V:_s__X
lea eax, [esp + 0x20]
push eax
call fcn.00420ad5
add esp, 0x14
lea ecx, [esp + 0x78]
push 0x43fc78
call fcn.00422a7b
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 3
push ecx
call fcn.00407ca0
add esp, 4
mov edx, dword [eax]
push esi
push edx
lea eax, [esp + 0x80]
push str._s_cfmt.bat
push eax
mov byte [esp + 0x80], 4
call fcn.00420ad5
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 3
call fcn.00422a0d
lea ecx, [esp + 0x1c]
call fcn.0042371b
mov ecx, dword [esp + 0x78]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 5
call fcn.0042382d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00423984
lea ecx, [esp + 0x1c]
call fcn.00423a48
mov edx, dword [esp + 0x78]
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0x40
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], str.open
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x2c]
push eax
call ebp
mov ecx, dword [esp + 0x64]
push 0x2bf20
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4091cf
mov edx, dword [esp + 0x64]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
xor esi, esi
call edi
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x84]
push eax
push ecx
mov dword [esp + 0x8c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x409229
mov eax, dword [esp + 0x84]
cmp eax, 4
jne 0x409220
mov ecx, dword [esp + 0x14]
mov edx, ecx
inc ecx
cmp edx, 0xa
mov dword [esp + 0x14], ecx
jae 0x409220
push 0x3e8
call edi
jmp 0x40919a
xor ecx, ecx
cmp eax, ebx
sete cl
mov esi, ecx
mov edx, dword [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 3
call fcn.00423770
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 2
call fcn.00422a0d
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.00422a0d
lea ecx, [esp + 0x7c]
mov byte [esp + 0x70], bl
call fcn.00422a0d
lea ecx, [esp + 0x80]
mov dword [esp + 0x70], 0xffffffff
call fcn.00422a0d
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret