Function at 0x10051cd0
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 0x1005205e
test eax, eax
jne 0x10051d06
mov eax, 3
call dword [0x101215f4]
cmp eax, 1
sete al
test al, al
je 0x1005205e
mov ecx, esi
call fcn.100514c0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10051d6d
xor esi, esi
mov edi, 0x6644c8
nop dword [eax + eax]
test esi, esi
js 0x10051d29
cmp esi, 0xb
jl 0x10051d2a
int3
cmp dword [edi], 0
je 0x10051d57
test esi, esi
js 0x10051d38
cmp esi, 0xb
jl 0x10051d39
int3
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call dword [0x10120e98]
test esi, esi
js 0x10051d50
cmp esi, 0xb
jl 0x10051d51
int3
mov dword [edi], 0
add edi, 4
inc esi
cmp edi, 0x6644f4
jb 0x10051d20
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.1003b920
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 0x10051e20
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jne 0x10051e20
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jne 0x10051e20
mov eax, 0x664458
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1d4c0
jbe 0x10051e53
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 0x10051e53
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 0x10052045
cmp edi, 0x18
je 0x10052045
cmp edi, 0x144
je 0x10052045
mov eax, dword [0x1013cc2c]
cmp dword [eax], 0
jne 0x1005204b
cmp edi, 0x1f7
je 0x1005204b
cmp edi, 0x1b
je 0x1005204b
cmp edi, 0xd
je 0x1005204b
cmp edi, 0x50
je 0x1005204b
cmp edi, 0x70
je 0x1005204b
mov ecx, edi
call fcn.100c1900
mov esi, eax
cmp esi, 0x186
jne 0x10051ead
call dword [0x101216f4]
jmp 0x10052031
lea eax, [esi - 0x1f4]
cmp eax, 4
ja 0x10051f74
cmp esi, 0x1f8
jne 0x10051f37
mov eax, dword [0x1013ccc8]
test byte [eax], 1
je 0x10051f37
cmp dword [0x58e940], 0
jle 0x10051efb
mov edx, 7
mov ecx, 0x58e940
call fcn.1003d230
cmp eax, 0xffffffff
je 0x10051efb
shl eax, 4
add eax, dword [0x58e944]
je 0x10051efb
mov ecx, dword [eax + 0xc]
jmp 0x10051f0f
push 7
push str._nError:_Message_string__d_not_found.
call fcn.10016d20
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.100171f0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10051da0
cmp byte [0x10181618], 0
je 0x10051f55
cmp byte [0x10181619], 0
mov byte [0x10181618], 0
je 0x10051f55
call fcn.100c1470
mov ecx, dword [0x1013ccbc]
mov eax, dword [ecx]
mov dword [0x101558f8], eax
lea eax, [esi - 0x1f4]
mov dword [ecx], eax
mov ecx, 0x400
jmp 0x1005200b
lea eax, [esi - 0x1f9]
cmp eax, 0x16
ja 0x10051f98
lea ecx, [esi - 0x1fa]
mov dword [0x10181614], esi
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10052031
jmp 0x1005200e
cmp esi, 0x210
je 0x10051fda
cmp esi, 0x211
je 0x10051fda
cmp esi, 0x151
jne 0x10051fc1
mov eax, dword [0x1013cbe4]
cmp byte [eax], 0
je 0x10052031
mov ecx, 0x402
jmp 0x1005200b
cmp esi, 0x149
jne 0x10052031
mov eax, dword [0x1013cbe4]
cmp byte [eax], 0
je 0x10052031
mov ecx, 0x403
jmp 0x1005200b
cmp byte [0x10181618], 0
je 0x10052006
cmp byte [0x10181619], 0
mov byte [0x10181618], 0
je 0x10051ff8
call fcn.100c1470
cmp dword [0x10170fe4], 0
mov ecx, 0x404
jle 0x1005200b
mov ecx, 0x401
mov dword [ebp - 4], ecx
mov eax, dword [0x1013ccbc]
cmp dword [eax], 0
jne 0x1005201f
call fcn.100509b0
jmp 0x10052031
mov edx, dword ds:[0x664508]
mov eax, dword [ebp - 4]
notrack call dword ds:[edx*4 + 0x51c170]
cmp dword [0x664500], 0
jne 0x1005204b
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10051da0
call dword [0x1012100c]
call fcn.10051a50
call fcn.100c1c50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x664338], 0x1b58
cmp dword [0x58e940], 0
jle 0x100520ab
mov edx, 0x1b58
mov ecx, 0x58e940
call fcn.1003d230
mov edx, eax
cmp edx, 0xffffffff
je 0x100520ab
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 0x100520c8
mov dword [0x664344], str.Error
push dword [0x664338]
push str._nError:_Message_string__d_not_found.
call fcn.10016d20
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.100171f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret