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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10155938]
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
cmp eax, 0xffffffff
je 0x1005204e
test eax, eax
jne 0x10051cf6
mov eax, 3
call dword [0x101215f4]
cmp eax, 1
sete al
test al, al
je 0x1005204e
mov ecx, esi
call fcn.100514b0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10051d5d
xor esi, esi
mov edi, 0x6644c8
nop dword [eax + eax]
test esi, esi
js 0x10051d19
cmp esi, 0xb
jl 0x10051d1a
int3
cmp dword [edi], 0
je 0x10051d47
test esi, esi
js 0x10051d28
cmp esi, 0xb
jl 0x10051d29
int3
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call dword [0x10120e98]
test esi, esi
js 0x10051d40
cmp esi, 0xb
jl 0x10051d41
int3
mov dword [edi], 0
add edi, 4
inc esi
cmp edi, 0x6644f4
jb 0x10051d10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call dword [0x10121440]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x664458], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
nop
call fcn.1003b910
mov edi, eax
cmp ebx, 1
mov eax, 0x1f8
cmove edi, eax
xor eax, eax
cmp ebx, 1
cmovne eax, ebx
mov ebx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call dword [0x10121440]
cmp edi, 0xffffffff
jne 0x10051e10
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jne 0x10051e10
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jne 0x10051e10
mov eax, 0x664458
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1d4c0
jbe 0x10051e43
call dword [0x10120f44]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x664458
mov dword [ecx], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
call dword [0x10121440]
jmp 0x10051e43
call esi
mov ecx, 0x664458
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp edi, 0x11
je 0x10052035
cmp edi, 0x18
je 0x10052035
cmp edi, 0x144
je 0x10052035
mov eax, dword [0x1013cc2c]
cmp dword [eax], 0
jne 0x1005203b
cmp edi, 0x1f7
je 0x1005203b
cmp edi, 0x1b
je 0x1005203b
cmp edi, 0xd
je 0x1005203b
cmp edi, 0x50
je 0x1005203b
cmp edi, 0x70
je 0x1005203b
mov ecx, edi
call fcn.100c18e0
mov esi, eax
cmp esi, 0x186
jne 0x10051e9d
call dword [0x101216f4]
jmp 0x10052021
lea eax, [esi - 0x1f4]
cmp eax, 4
ja 0x10051f64
cmp esi, 0x1f8
jne 0x10051f27
mov eax, dword [0x1013ccc8]
test byte [eax], 1
je 0x10051f27
cmp dword [0x58e940], 0
jle 0x10051eeb
mov edx, 7
mov ecx, 0x58e940
call fcn.1003d220
cmp eax, 0xffffffff
je 0x10051eeb
shl eax, 4
add eax, dword [0x58e944]
je 0x10051eeb
mov ecx, dword [eax + 0xc]
jmp 0x10051eff
push 7
push str._nError:_Message_string__d_not_found.
call fcn.10016d10
add esp, 8
mov ecx, str.Error
movzx eax, byte [0x6ab718]
xor edx, edx
push 0
push eax
push 0
push eax
push 0x74
push 0xc0
push 0
call fcn.100171e0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10051d90
cmp byte [0x10181618], 0
je 0x10051f45
cmp byte [0x10181619], 0
mov byte [0x10181618], 0
je 0x10051f45
call fcn.100c1450
mov ecx, dword [0x1013ccbc]
mov eax, dword [ecx]
mov dword [0x101558f8], eax
lea eax, [esi - 0x1f4]
mov dword [ecx], eax
mov ecx, 0x400
jmp 0x10051ffb
lea eax, [esi - 0x1f9]
cmp eax, 0x16
ja 0x10051f88
lea ecx, [esi - 0x1fa]
mov dword [0x10181614], esi
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10052021
jmp 0x10051ffe
cmp esi, 0x210
je 0x10051fca
cmp esi, 0x211
je 0x10051fca
cmp esi, 0x151
jne 0x10051fb1
mov eax, dword [0x1013cbe4]
cmp byte [eax], 0
je 0x10052021
mov ecx, 0x402
jmp 0x10051ffb
cmp esi, 0x149
jne 0x10052021
mov eax, dword [0x1013cbe4]
cmp byte [eax], 0
je 0x10052021
mov ecx, 0x403
jmp 0x10051ffb
cmp byte [0x10181618], 0
je 0x10051ff6
cmp byte [0x10181619], 0
mov byte [0x10181618], 0
je 0x10051fe8
call fcn.100c1450
cmp dword [0x10170fe4], 0
mov ecx, 0x404
jle 0x10051ffb
mov ecx, 0x401
mov dword [ebp - 4], ecx
mov eax, dword [0x1013ccbc]
cmp dword [eax], 0
jne 0x1005200f
call fcn.100509a0
jmp 0x10052021
mov edx, dword ds:[0x664508]
mov eax, dword [ebp - 4]
notrack call dword ds:[edx*4 + 0x51c170]
cmp dword [0x664500], 0
jne 0x1005203b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10051d90
call dword [0x1012100c]
call fcn.10051a40
call fcn.100c1c30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x664338], 0x1b58
cmp dword [0x58e940], 0
jle 0x1005209b
mov edx, 0x1b58
mov ecx, 0x58e940
call fcn.1003d220
mov edx, eax
cmp edx, 0xffffffff
je 0x1005209b
shl edx, 4
add edx, dword [0x58e944]
mov ecx, dword [edx + 4]
mov dword [0x66433c], ecx
mov eax, dword [edx + 8]
mov dword [0x664340], eax
mov eax, dword [edx + 0xc]
mov dword [0x664344], eax
jmp 0x100520b8
mov dword [0x664344], str.Error
push dword [0x664338]
push str._nError:_Message_string__d_not_found.
call fcn.10016d10
add esp, 8
movzx eax, byte [0x6ab718]
xor edx, edx
mov ecx, dword [0x664344]
push 1
push eax
push 0
push eax
push 0x87
push 0xc0
push 0
call fcn.100171e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret