Function at 0x1007bb0
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009080
push 0x1003b37
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100b048]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x38], eax
cmp eax, 0x7fffffff
je 0x1007c13
push 1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov ebx, dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
jne 0x1007c33
mov eax, dword [esi + 0x1c]
cmp dword [eax], 0xc00000fd
je 0x1007c5a
mov eax, dword [esi + 0x64]
test eax, 0x1000
jne 0x1007c5a
test eax, 0x8000
jne 0x1007c5a
push esi
mov ecx, dword [esi + 8]
call fcn.01005880
push eax
push 0
call fcn.01005260
mov edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [esi]
push 0xd94
push esi
push esi
mov ecx, dword [eax + 0x28]
call ecx
push eax
push edi
call fcn.01005260
mov edi, eax
mov dword [ebp - 0x1c], edi
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1007ca7
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1007c80
sub eax, ebx
sar eax, 1
mov edx, dword [esi]
add eax, eax
push eax
push ecx
push esi
mov ecx, dword [edx + 0x28]
call ecx
push eax
push edi
call fcn.01005260
mov edi, eax
mov dword [ebp - 0x1c], edi
mov edx, dword [esi + 0x28]
test edx, edx
je 0x1007cda
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007cb3
sub eax, ebx
sar eax, 1
mov ecx, dword [esi]
add eax, eax
push eax
push edx
push esi
mov ecx, dword [ecx + 0x28]
call ecx
push eax
push edi
call fcn.01005260
mov edi, eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x44], eax
mov ecx, esi
call fcn.01007a30
push eax
push edi
call fcn.01005260
mov ebx, eax
mov dword [ebp - 0x1c], ebx
lea edi, [esi + 0xb38]
lea edx, [esi + 0xc]
push edx
mov eax, dword [esi + 0x44]
push eax
push 0x1002114
call fcn.01003117
push eax
push 0x1002884
push 0x104
push edi
call fcn.01005700
add esp, 0x1c
test eax, eax
jl 0x1007eaf
lea eax, [esi + 0xd40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [esi + 0xd44], eax
mov dword [esi + 0xd4c], eax
lea ebx, [esi + 0xd84]
push ebx
lea eax, [esi + 0xd40]
push eax
push 0
push 0
push 0xc008010
push 0
push 0
push 0
push edi
mov ecx, dword [esi + 8]
call fcn.01005230
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1007e94
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
push 0x64
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, 0x102
jne 0x1007dc0
cmp dword [esi + 0xb20], 0xffffffff
je 0x1007d91
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [esi + 0xb20]
jb 0x1007d91
xor edx, edx
cmp edi, 0x102
sete dl
mov dword [esi + 0xb2c], edx
mov dword [esi + 0xb30], 1
lea edi, [esi + 0xb24]
push edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1007e0e
cmp dword [edi], 0x103
je 0x1007e0e
mov dword [esi + 0xb28], 1
xor ebx, ebx
mov dword [esi + 0xb2c], ebx
mov dword [ebp - 4], ebx
jmp 0x1007e53
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x1007e53
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.01005260
mov edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0xd88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xd88], ebx
mov ecx, dword [esi + 0xd84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xd84], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x1007f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007ea8
and eax, 0xffff
or eax, 0x80070000
push eax
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x1007eb1
push eax
push ebx
call fcn.01005260
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1007f00
mov eax, dword [ebp - 0x38]
cmp eax, 0x7fffffff
je 0x1007f18
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test edi, edi
jl 0x1007f1f
mov edi, dword [ebp - 0x24]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret