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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a2220
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a24f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5b4e24]
mov edx, 0x4a250c
call fcn.00405690
jne 0x4a24db
lea edx, [ebp - 0xc]
mov eax, dword [0x5addc8]
mov eax, dword [eax]
call fcn.0046eaa8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040a57c
mov edx, dword [ebp - 8]
mov eax, 0x5b4f50
call fcn.004052bc
lea ecx, [ebp - 0x10]
mov edx, 1
mov eax, dword [0x5b4f50]
call fcn.004381c0
mov eax, dword [ebp - 0x10]
mov edx, 0x4a2518
call fcn.00405690
je 0x4a22c6
lea ecx, [ebp - 0x14]
mov edx, 1
mov eax, dword [0x5b4f50]
call fcn.004381c0
mov eax, dword [ebp - 0x14]
mov edx, 0x4a2524
call fcn.00405690
je 0x4a22c6
mov eax, 0x5b4f50
mov edx, 0x4a2518
call fcn.00405534
lea edx, [ebp - 0x1c]
mov eax, dword [0x5addc8]
mov eax, dword [eax]
call fcn.0046eaa8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004a6c6c
mov edx, dword [ebp - 0x18]
mov eax, 0x5b4f4c
mov ecx, 0x4a2530
call fcn.00405580
lea eax, [ebp - 4]
mov edx, 0x4a2540
call fcn.00405300
mov eax, dword [ebp - 4]
call fcn.0040a38c
test al, al
je 0x4a2319
mov eax, dword [ebp - 4]
call fcn.004056f8
push eax
call sub.kernel32.dll_DeleteFileA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004056f8
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x5b4ef0]
mov edx, 0x4a255c
call fcn.00405690
jne 0x4a237e
lea edx, [ebp - 0x20]
mov eax, dword [0x5addc8]
mov eax, dword [eax]
call fcn.0046eaa8
mov eax, dword [ebp - 0x20]
mov edx, dword [0x5b4f54]
call fcn.004a1ea0
mov edx, 6
mov eax, dword [0x5b4f54]
call fcn.0040a4cc
jmp 0x4a23b1
mov eax, 0x5b4f54
mov ecx, dword [0x5b4f4c]
mov edx, dword [0x5b4f50]
call fcn.00405580
lea edx, [ebp - 0x24]
mov eax, dword [0x5addc8]
mov eax, dword [eax]
call fcn.0046eaa8
mov eax, dword [ebp - 0x24]
mov edx, dword [0x5b4f54]
call fcn.004a1b3c
mov eax, dword [0x5b4f54]
call fcn.0040a38c
test al, al
je 0x4a2402
mov eax, dword [0x5b4ed4]
mov edx, 0x4a255c
call fcn.00405690
je 0x4a23dc
push 0
push 0x4a2560
call sub.kernel32.dll_WinExec
push 1
mov eax, dword [0x5b4f50]
call fcn.004056f8
push eax
push 0
mov eax, dword [0x5b4f54]
call fcn.004056f8
push eax
push 0x4a257c
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x5b4de4]
mov eax, dword [eax + 0x378]
mov dl, 1
call fcn.0043bedc
mov eax, dword [0x5b4de4]
mov eax, dword [eax + 0x380]
mov dl, 1
call fcn.0043bedc
mov eax, dword [0x5b4e90]
mov edx, 0x4a255c
call fcn.00405690
jne 0x4a243c
call fcn.004a1390
mov eax, dword [0x5b4e94]
mov edx, 0x4a255c
call fcn.00405690
jne 0x4a246a
mov eax, dword [0x5b4f94]
push eax
mov eax, dword [0x5b4de4]
mov eax, dword [eax + 0x37c]
push eax
mov eax, dword [0x5b4de4]
push eax
call fcn.004a1420
cmp dword [0x5b4ea4], 0
je 0x4a249e
mov eax, dword [0x5b4ea4]
mov edx, 0x4a258c
call fcn.00405690
je 0x4a249e
push 1
push 0
push 0
mov eax, dword [0x5b4ea4]
call fcn.004056f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x5b4ee4]
mov edx, 0x4a255c
call fcn.00405690
jne 0x4a24db
xor eax, eax
push ebp
push 0x4a24d1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00442bec
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a24db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a24fd
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.0040528c
ret