Function at 0x4ca9a8
Capabilities:
Check for time delay via gettickcount
Create process on windows
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb3
push 0
push 0
dec ecx
jne 0x4ca9b1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x514]
push ecx
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop ecx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x414]
push ecx
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop ecx
mov esi, ecx
lea edi, [ebp - 0x314]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
lea edi, [ebp - 0x214]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
mov esi, eax
lea edi, [ebp - 0x114]
xor ecx, ecx
mov cl, byte [esi]
inc ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
push ebp
push 0x4cb169
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call fcn.0040ab08
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x570]
call fcn.0040b79c
mov ecx, dword [ebp - 0x570]
lea eax, [ebp - 0x56c]
mov edx, 0x4cb184
call fcn.00404918
mov edx, dword [ebp - 0x56c]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xaac]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 0x214], 0
je 0x4cab32
cmp byte [ebp - 0x314], 0
je 0x4cab32
lea eax, [ebp - 0x578]
lea edx, [ebp - 0x114]
call fcn.00404854
mov eax, dword [ebp - 0x578]
lea edx, [ebp - 0x574]
call fcn.004095a0
lea eax, [ebp - 0x574]
mov edx, 0x4cb194
call fcn.004048d4
mov ecx, dword [ebp - 0x574]
mov dl, 1
mov eax, dword [0x436514]
call fcn.004365c4
mov esi, eax
test esi, esi
je 0x4cb14b
lea eax, [ebp - 0x57c]
lea edx, [ebp - 0x214]
call fcn.00404854
mov eax, dword [ebp - 0x57c]
push eax
mov ecx, 0x4cb1b8
mov edx, 0x4cb1d0
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
lea eax, [ebp - 0x580]
lea edx, [ebp - 0x314]
call fcn.00404854
mov eax, dword [ebp - 0x580]
push eax
mov ecx, 0x4cb1e0
mov edx, 0x4cb1d0
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, esi
call fcn.004037a0
cmp dword [0x4d10b0], 0
setne al
and al, byte [0x4d1174]
je 0x4cabde
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405564
push edx
push eax
lea eax, [ebp - 0x584]
call fcn.00409010
mov edx, dword [ebp - 0x584]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.004594cc
test esi, esi
jbe 0x4cabc9
push 0
push esi
call sub.kernel32.dll_TerminateProcess
mov eax, 0x1f4
call fcn.00499780
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x4d10b0], eax
mov eax, dword [0x4d10a8]
mov edx, dword [0x4d10b0]
mov dword [eax + 4], edx
lea eax, [ebp - 0x58c]
lea edx, [ebp - 0x114]
call fcn.00404854
mov eax, dword [ebp - 0x58c]
lea edx, [ebp - 0x588]
call fcn.004095d4
mov eax, dword [ebp - 0x588]
call fcn.00404acc
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x568]
xor ecx, ecx
mov edx, 0x10
call fcn.00403188
lea eax, [ebp - 0x558]
xor ecx, ecx
mov edx, 0x44
call fcn.00403188
mov dword [ebp - 0x558], 0x44
mov dword [ebp - 0x52c], 1
mov word [ebp - 0x528], 5
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x558]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x590]
lea edx, [ebp - 0x114]
call fcn.00404854
lea eax, [ebp - 0x590]
mov edx, 0x4cb200
call fcn.004048d4
mov eax, dword [ebp - 0x590]
call fcn.00404acc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4cad9b
mov eax, dword [ebp - 0x568]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x564]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1770
call fcn.00499780
mov eax, dword [ebp - 0x560]
call fcn.004ca944
mov dword [0x4d10b0], eax
mov eax, dword [0x4d10a8]
mov edx, dword [0x4d10b0]
mov dword [eax + 4], edx
jmp 0x4cad85
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405564
push edx
push eax
lea eax, [ebp - 0x594]
call fcn.00409010
mov edx, dword [ebp - 0x594]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.004594cc
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4cad57
cmp eax, 0x1d4c0
jbe 0x4cad5d
jmp 0x4cb14b
jg 0x4cb14b
mov eax, 0x3e8
call fcn.00499780
mov eax, dword [ebp - 0x560]
call fcn.004ca944
mov dword [0x4d10b0], eax
mov eax, dword [0x4d10a8]
mov edx, dword [0x4d10b0]
mov dword [eax + 4], edx
cmp dword [0x4d10b0], 0
sete al
and al, byte [0x4d1174]
jne 0x4caced
cmp dword [0x4d10b0], 0
seta al
and al, byte [0x4d1174]
je 0x4cb14b
mov eax, dword [0x4d0140]
push eax
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, 0xbb8
call fcn.00499780
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xbb8
call fcn.00499780
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xfa0
call fcn.00499780
movzx esi, byte [ebp - 0x414]
test esi, esi
jle 0x4cae41
lea edi, [ebp - 0x413]
push 0
xor eax, eax
mov al, byte [edi]
push eax
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
cmp byte [0x4d1174], 0
je 0x4cb14b
inc edi
dec esi
jne 0x4cae19
mov eax, 0x3e8
call fcn.00499780
push 0
push 9
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.00499780
movzx esi, byte [ebp - 0x514]
test esi, esi
jle 0x4caea2
lea edi, [ebp - 0x513]
push 0
xor eax, eax
mov al, byte [edi]
push eax
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
cmp byte [0x4d1174], 0
je 0x4cb14b
inc edi
dec esi
jne 0x4cae7a
mov eax, 0x3e8
call fcn.00499780
push 0
push 9
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x1f4
call fcn.00499780
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0xbb8
call fcn.00499780
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4caf82
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0xa5a200
push esi
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x34
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [0x4d10a8]
add eax, 0x178d
push eax
push 0xa5a3e8
push esi
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [0x4d10b0]
push eax
mov eax, dword [0x4d10a8]
push eax
call fcn.0049983c
jmp 0x4cb01c
mov eax, 0x4cb214
call fcn.004326d0
jmp 0x4cb14b
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405564
push edx
push eax
lea eax, [ebp - 0x598]
call fcn.00409010
mov edx, dword [ebp - 0x598]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.004594cc
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4caffb
cmp eax, 0x1d4c0
jbe 0x4cb001
jmp 0x4cb14b
jg 0x4cb14b
mov eax, 0x1f4
call fcn.00499780
mov eax, dword [0x4d10b0]
push eax
mov eax, dword [0x4d10a8]
push eax
call fcn.0049983c
mov eax, dword [0x4d10a8]
cmp byte [eax + 0x178c], 1
setne al
and al, byte [0x4d1174]
jne 0x4caf91
cmp byte [0x4d1174], 0
je 0x4cb10a
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x3e8
call fcn.00499780
jmp 0x4cb10a
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405564
push edx
push eax
lea eax, [ebp - 0x59c]
call fcn.00409010
mov edx, dword [ebp - 0x59c]
mov eax, dword [0x4d0134]
mov eax, dword [eax + 0xab4]
call fcn.004594cc
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4cb0ce
cmp eax, 0x1d4c0
jbe 0x4cb0d0
jmp 0x4cb14b
jg 0x4cb14b
push 0
push 0xd
push pe_nt_image_headers32
mov eax, dword [0x4d10b0]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x7d0
call fcn.00499780
lea eax, [ebp - 0x14]
push eax
push 4
mov eax, dword [0x4d10a8]
add eax, 0x178d
push eax
push 0xa5a3e8
push esi
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [0x4d10a8]
cmp dword [eax + 0x178d], 0
sete al
and al, byte [0x4d1174]
jne 0x4cb067
mov eax, dword [0x4d10a8]
cmp byte [eax + 0x178c], 1
jne 0x4cb145
mov eax, dword [0x4d10a8]
cmp dword [eax + 0x178d], 1
jne 0x4cb145
mov byte [ebp - 1], 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb170
lea eax, [ebp - 0x59c]
mov edx, 0xd
call fcn.00404614
ret