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

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x34]
movzx edx, byte [ebp + 0x2c]
push ebx
push esi
shl eax, 8
push edi
mov edi, ecx
movzx ecx, byte [ebp + 0x30]
or eax, ecx
movzx ecx, byte [ebp + 0x28]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4927c8
mov dword [eax], 0x4e5034
mov eax, dword [eax]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4927d0
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [0x52fe2c]
add eax, 0x1b4
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4927f0
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax + 0x352]
lea edx, [ebx + ebx]
push edx
call fcn.0044c4d0
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
xor ecx, ecx
push 0x4e587c
mov word [eax], cx
mov edx, dword [esi]
push ebx
push edx
call fcn.004017b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [0x52fe2c]
call fcn.00413a30
mov edx, dword [esi]
push eax
push ebx
push edx
call fcn.004017b0
mov eax, dword [esi]
push 0x4e5880
push ebx
push eax
call fcn.004017b0
mov edx, 2
cmp dword [edi + 0x3d64], edx
jne 0x492888
mov ecx, dword [0x52fe2c]
cmp dword [ecx + 0x4824], 0
jne 0x492888
push str.__ADMIN
mov dword [edi + 0x3d38], edx
mov edx, dword [esi]
push ebx
push edx
call fcn.004017b0
mov edx, 2
mov eax, dword [0x52fe30]
mov eax, dword [eax + 0x123c]
cmp eax, 0xffffffff
jne 0x4928a0
cmp dword [edi + 0x3f84], edx
jne 0x4928e7
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
cmp dword [edi + 0x3f84], edx
jne 0x4928ba
and ecx, 0xffffffdf
or ecx, 0x200000
mov eax, dword [esi]
lea edx, [eax + 2]
mov dword [ebp + 0x34], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4928c2
sub eax, dword [ebp + 0x34]
push ecx
mov ecx, dword [esi]
sar eax, 1
lea eax, [ecx + eax*2]
push str.__CINMODE_X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [edi + 0x41e4]
call fcn.0047b510
mov ecx, dword [edi + 0x41e4]
mov dword [ebp + 0x2c], eax
call fcn.0047b540
mov ecx, dword [edi + 0x3d00]
mov dword [ebp + 0x28], ecx
mov ecx, dword [esi]
lea edx, [ecx + 2]
mov dword [ebp + 0x34], edx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x492911
sub ecx, dword [ebp + 0x34]
sar ecx, 1
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x30]
push ecx
mov ecx, dword [0x52fe30]
mov edx, dword [ecx + 0xee4]
push edx
mov edx, dword [ecx + 0xee8]
push edx
mov edx, dword [ebp + 0x2c]
add ecx, 0xf00
push ecx
mov ecx, dword [edi + 0x41f8]
push ecx
push eax
mov eax, dword [0x52fe14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 0x28]
mov edx, dword [esi]
push eax
mov eax, dword [ebp + 0x34]
push ecx
lea ecx, [edx + eax*2]
push str._AID_u__GID_u__GHWND_08X__BW_i__BH_i__BZ_i___FN_s___FW_i__FH_i__TA_08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov al, byte [edi + 0x4961]
add esp, 0x30
test al, al
je 0x4929a4
cmp al, 3
jne 0x49298c
mov eax, str.__LOG3
jmp 0x49299a
cmp al, 2
mov eax, str.__LOG2
je 0x49299a
mov eax, str.__LOG
mov edx, dword [esi]
push eax
push ebx
push edx
call fcn.004017b0
mov eax, dword [0x52fe30]
cmp byte [eax + 0x11641], 0
jne 0x4929c0
mov ecx, dword [esi]
push str.__HIDE
push ebx
push ecx
call fcn.004017b0
mov edx, dword [esi]
push ebx
lea ecx, [edi + 0x3d38]
push edx
call fcn.0047a3d0
mov eax, dword [esi]
push str.__ROOT
push ebx
push eax
call fcn.004017b0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [esi]
push edx
push ebx
push eax
call fcn.004017b0
cmp byte [ebp + 0x14], 0
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 0
je 0x492a02
mov ecx, edi
call fcn.0048a050
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [ebp + 0x1c]
push 0
mov dword [edx], eax
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
push eax
mov eax, dword [ebp + 0x38]
lea ecx, [edi + 0x6bb8]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
lea eax, [edi + 0x3d38]
push eax
push edi
call fcn.0048dd70
add esp, 0x24
mov esi, eax
call ebx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov dword [ecx], eax
sub eax, dword [edx]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
test esi, esi
je 0x492adf
cmp dword [edi + 0x3d64], 2
jne 0x492a6e
mov edx, dword [0x52fe2c]
cmp dword [edx + 0x4824], 0
je 0x492a81
mov ebx, dword [ebp + 0x3c]
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
push eax
push ecx
mov ecx, edi
call fcn.0048acf0
jmp 0x492a84
mov ebx, dword [ebp + 0x3c]
cmp dword [edi + 0x3d64], 2
je 0x492aa3
push 1
add ebx, 8
push ebx
mov ecx, edi
call fcn.0048fa90
mov edx, dword [ebx]
push edx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ecx, dword [0x52fe2c]
lea eax, [ebp + 0x34]
push eax
push 1
push 1
mov dword [ebp + 0x34], 0
call fcn.004169e0
test al, al
jne 0x492ad3
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x492ad3
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x492adf
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004c57c0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x3c