Function at 0x489990
Capabilities:
Create process on windows
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x489998
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c8c
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
push ebp
push 0x489cf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
mov dword [eax + 0x360], 0x6e9cec
mov dword [eax + 0x364], 0
mov eax, dword [esi]
add eax, 0x382
mov edx, dword [ebp - 4]
call fcn.00404814
mov eax, ebx
xor al, 1
mov edx, dword [esi]
mov byte [edx + 0x378], al
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x330]
call fcn.0047dd20
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
call fcn.00405080
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x330]
mov cl, 1
call fcn.0047de50
test al, al
je 0x489b33
mov eax, dword [esi]
mov eax, dword [eax + 0x338]
mov edx, 0x64
call fcn.0047b630
mov eax, dword [esi]
mov eax, dword [eax + 0x338]
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, dword [esi]
mov eax, dword [eax + 0x338]
call fcn.0047b470
lea edx, [ebp - 0x18]
call fcn.00408b24
push dword [ebp - 0x18]
push 0x489d08
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x350]
call fcn.0044041c
push dword [ebp - 0x1c]
push 0x489d14
mov eax, dword [esi]
push dword [eax + 0x38a]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404b5c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a0c88]
call fcn.0044044c
lea edx, [ebp - 0x20]
mov eax, dword [0x4a0c88]
call fcn.0044041c
mov edx, dword [ebp - 0x20]
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.004617b8
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.00461bc4
mov eax, dword [esi]
mov edx, dword [eax + 0x386]
lea eax, [ebp - 8]
mov ecx, 0x489d20
call fcn.00404ae8
mov eax, dword [ebp - 8]
call fcn.00408fdc
inc eax
setne al
test al, al
je 0x489b1b
push 5
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00404c9c
push eax
push 0x489d2c
mov eax, dword [esi]
call fcn.00447310
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x49ee9c]
mov eax, dword [eax]
call fcn.00461bc4
mov eax, dword [esi]
call fcn.0045e070
jmp 0x489ca7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004887a4
test al, al
je 0x489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x386]
lea eax, [ebp - 0xc]
mov ecx, 0x489d3c
call fcn.00404ae8
mov eax, dword [ebp - 0xc]
call fcn.00408fdc
inc eax
setne al
test al, al
je 0x489b78
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00404c9c
push eax
call sub.kernel32.dll_RemoveDirectoryA
test bl, bl
je 0x489bef
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00409398
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00408664
mov eax, dword [ebp - 0x24]
mov edx, 0x489d50
call fcn.00404be8
je 0x489bd7
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00409398
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00408664
mov eax, dword [ebp - 0x2c]
mov edx, 0x489d60
call fcn.00404be8
je 0x489bd7
mov eax, dword [esi]
cmp byte [eax + 0x375], 0
je 0x489be3
push ebp
call fcn.0048982c
pop ecx
jmp 0x489ca7
push ebp
call fcn.004898e8
pop ecx
jmp 0x489ca7
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x238]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x36c]
jne 0x489c17
cmp eax, dword [ecx + 0x368]
jbe 0x489c48
jmp 0x489c19
jle 0x489c48
lea ecx, [ebp - 0x34]
mov eax, dword [esi]
mov edx, dword [eax + 0x368]
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x238]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
add eax, 0x382
call fcn.00404814
jmp 0x489c59
mov eax, dword [esi]
add eax, 0x382
mov edx, 0x489d70
call fcn.00404814
mov eax, dword [esi]
add dword [eax + 0x368], 1
adc dword [eax + 0x36c], 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x238]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x36c]
jne 0x489c96
cmp eax, dword [ecx + 0x368]
setb dl
jmp 0x489c99
setl dl
mov eax, dword [esi]
mov eax, dword [eax + 0x382]
call fcn.00489990
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489cf8
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004047e4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004047e4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004047e4
lea eax, [ebp - 0x10]
call fcn.00404f10
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004047e4
ret