Function at 0x42f676
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4dbc10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x42f6a5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [0x4dbc10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4dbc10], ebx
mov edi, 0x4dc0f8
push edi
call fcn.00412b8a
mov esi, str.shell
push esi
push edi
call fcn.0041a64b
push esi
call fcn.00416c21
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov cx, word [eax]
add esp, 0x10
cmp cx, 0x2d
mov dword [ebp - 8], ebx
mov dl, 0x2a
jne 0x42f6db
mov dl, cl
movsx esi, dl
movzx ecx, cx
cmp esi, ecx
push 2
pop edi
jne 0x42f731
movzx ecx, word [eax + 2]
cmp esi, ecx
jne 0x42f731
push edi
add eax, 4
push eax
push 0x4c6494
call fcn.0043fac4
add esp, 0xc
test al, al
je 0x42f731
add dword [ebp - 4], 8
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.00405b4a
mov eax, dword [ebp - 4]
pop ecx
mov word [eax], bx
add dword [ebp - 4], edi
lea ecx, [ebp - 4]
call fcn.0040f904
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp esi, ecx
jne 0x42f786
movzx ecx, word [eax + 2]
cmp esi, ecx
jne 0x42f786
add eax, 4
xor ebx, ebx
mov dword [ebp - 4], eax
inc ebx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4c6490
call fcn.00446de5
add esp, 0xc
test al, al
jne 0x42f77e
add dword [ebp - 4], 4
push ebx
lea eax, [ebp - 4]
push eax
push 0x4c5bb4
call fcn.00446de5
add esp, 0xc
test al, al
je 0x42f7bd
mov ebx, edi
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
jmp 0x42f7d0
push 5
lea eax, [ebp + 8]
push eax
push str._user
call fcn.00446de5
add esp, 0xc
test al, al
je 0x42f7a2
xor ebx, ebx
inc ebx
jmp 0x42f7d0
push 4
lea eax, [ebp + 8]
push eax
push str._sys
call fcn.00446de5
add esp, 0xc
test al, al
je 0x42f7bd
mov ebx, edi
jmp 0x42f7d0
push str.UCallBackhWnd
call fcn.00412436
mov ebx, eax
neg ebx
sbb ebx, ebx
pop ecx
neg ebx
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, esi
jne 0x42f7f7
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push 0x2c
lea eax, [ebp - 8]
call fcn.00405b85
mov eax, dword [ebp - 8]
cmp word [eax], si
pop ecx
je 0x42f7f7
mov word [eax], si
add eax, edi
cmp ebx, esi
jne 0x42f807
cmp word [eax], si
je 0x42f807
push eax
call fcn.0042f61d
pop ecx
push str.Shell.x
mov edi, str.SOFTWAREPELOGON
push edi
mov esi, 0x80000002
push esi
call dword [0x4dc268]
push 0
push 0
call fcn.0042afbf
pop ecx
cmp ebx, 1
pop ecx
mov ebx, str.UShell
je 0x42f839
mov ebx, dword [0x4dc0c4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push ebx
push edi
push esi
call dword [0x4dc264]
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
push 0
mov dword [ebp - 0x14], eax
call fcn.00412cf3
pop ecx
mov ebx, 0x4dc0f8
and dword [ebp - 8], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.SysShel.ack
push str.SOFTWAREPELOGONRAMDATA
push esi
call dword [0x4dbeac]
test eax, eax
jne 0x42f8b3
cmp dword [ebp - 8], eax
je 0x42f8b5
push eax
push eax
push 0x96
mov ecx, ebx
call fcn.00415ff0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
xor eax, eax
push eax
push eax
push 5
mov ecx, ebx
call fcn.00415ff0
call edi
sub eax, dword [ebp - 0x14]
cmp eax, 0x1770
jbe 0x42f86b
jmp 0x42f8ac