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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call dword [0x10025370]
cmp dword [ebp + 0x10], 0
jne 0x10005069
jmp 0x100051ab
mov eax, dword [0x10630210]
movzx ecx, byte [eax + 2]
cmp ecx, 0xc1
jne 0x100051a6
cmp dword [0xe609e8], 5
jne 0x100051a6
mov edx, dword [0x10630210]
movzx eax, byte [edx + 4]
cmp eax, 0x11
je 0x100050bb
mov ecx, dword [0x10630210]
movzx edx, byte [ecx + 4]
cmp edx, 0x19
je 0x100050bb
mov eax, dword [0x10630210]
movzx ecx, byte [eax + 4]
cmp ecx, 0x1e
jne 0x100051a6
mov edx, dword [0x11282f64]
and edx, 1
jne 0x100050de
mov eax, dword [0x11282f64]
or eax, 1
mov dword [0x11282f64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x11282f60], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x11282f60]
cmp eax, 5
jb 0x100050fc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x11282f60], eax
jmp 0x10005101
jmp 0x100054b1
mov ecx, dword [0x11282768]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100051a6
mov eax, dword [ebp - 4]
call fcn.10004100
movsx eax, word [eax]
call fcn.10004120
push 3
mov al, 0xc
lea esi, [ebp - 0x10]
call fcn.100022a0
mov eax, dword [ebp - 4]
call fcn.10004110
movzx eax, byte [eax]
mov ecx, dword [0x8128ac8]
mov dx, word [ecx + eax*2 + 0x78]
mov word [ebp - 0x14], dx
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 4]
call fcn.10004100
mov cx, word [eax]
mov word [ebp - 8], cx
mov byte [ebp - 0xc], 0xb
mov dx, word [0x11282724]
mov word [ebp - 6], dx
movzx ecx, byte [ebp - 0xf]
lea eax, [ebp - 0x10]
push eax
mov edx, 0x100253b0
call fcn.10001900
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xc], 0
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
movzx eax, byte [0x1128271d]
test eax, eax
jne 0x100051a6
jmp 0x100054b1
jmp 0x100052e9
mov ecx, dword [0x10630210]
movzx edx, byte [ecx + 2]
cmp edx, 0xc1
jne 0x100052cf
mov eax, dword [0x10630210]
movzx ecx, byte [eax + 4]
cmp ecx, 0x11
jne 0x100052cf
cmp dword [0xe609e8], 5
jne 0x100052cf
mov edx, dword [0x11282f64]
and edx, 2
jne 0x10005203
mov eax, dword [0x11282f64]
or eax, 2
mov dword [0x11282f64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x11282f5c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x11282f5c]
cmp eax, 5
jb 0x10005221
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x11282f5c], eax
jmp 0x10005226
jmp 0x100054b1
mov ecx, dword [0x11282768]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x100052cf
push 3
mov al, 0xc
lea esi, [ebp - 0x24]
call fcn.100022a0
mov eax, dword [ebp - 0x18]
call fcn.10004110
movzx eax, byte [eax]
mov ecx, dword [0x8128ac8]
mov dx, word [ecx + eax*2 + 0x78]
mov word [ebp - 0x28], dx
mov eax, dword [0x10630210]
movzx ecx, byte [eax + 4]
cmp ecx, 0x11
jne 0x10005275
xor edx, edx
mov word [ebp - 0x28], dx
mov al, byte [ebp - 0x28]
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x18]
call fcn.10004100
mov cx, word [eax]
mov word [ebp - 0x1c], cx
mov byte [ebp - 0x20], 0xb
mov dx, word [0x11282724]
mov word [ebp - 0x1a], dx
movzx ecx, byte [ebp - 0x23]
lea eax, [ebp - 0x24]
push eax
mov edx, 0x100253b0
call fcn.10001900
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x20], 0
xor ecx, ecx
mov word [ebp - 0x1c], cx
xor edx, edx
mov word [ebp - 0x1a], dx
movzx eax, byte [0x1128271d]
test eax, eax
jne 0x100052cf
jmp 0x100054b1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x10025364]
jmp 0x100054b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2118]
push ecx
call dword [0x10025368]
add esp, 0xc
call dword [0x1002536c]
and eax, 0x800000ff
jns 0x10005317
dec eax
or eax, 0xffffff00
inc eax
jmp 0x10005317
mov edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x2118], al
movzx eax, byte [ebp - 0x2118]
xor ecx, ecx
cmp eax, 0xc1
setne cl
add ecx, 2
mov dword [ebp - 0x211c], ecx
mov edx, dword [ebp - 0x211c]
mov edx, 0x8793700
mov al, byte [edx]
mov edx, dword [ebp - 0x211c]
mov byte [ebp + edx - 0x2119], al
mov eax, 0x8793700
mov cl, byte [eax]
add cl, 1
mov byte [eax], cl
mov edx, dword [ebp - 0x211c]
sub edx, 1
mov dword [ebp - 0x211c], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x211c]
push eax
mov ecx, dword [ebp - 0x211c]
lea edx, [ebp + ecx - 0x2118]
push edx
push 0
mov ecx, 0x8797778
call dword [0x10025374]
mov dword [ebp - 0x1114], eax
cmp dword [ebp - 0x1114], 0x100
jge 0x10005420
cmp dword [ebp + 0x14], 0
jne 0x10005420
mov eax, dword [ebp - 0x1114]
add eax, 2
mov dword [ebp - 0x2120], eax
mov byte [ebp - 0x108], 0xc3
mov cl, byte [ebp - 0x2120]
mov byte [ebp - 0x107], cl
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x211c]
push edx
mov eax, dword [ebp - 0x211c]
lea ecx, [ebp + eax - 0x2118]
push ecx
lea edx, [ebp - 0x106]
push edx
mov ecx, 0x8797778
call dword [0x10025374]
mov eax, dword [ebp - 0x2120]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x10025364]
jmp 0x100054b1
mov edx, dword [ebp - 0x1114]
add edx, 3
mov dword [ebp - 0x2124], edx
mov byte [ebp - 0x1110], 0xc4
mov eax, dword [ebp - 0x2124]
and eax, 0x800000ff
jns 0x1000544c
dec eax
or eax, 0xffffff00
inc eax
jmp 0x1000544c
mov byte [ebp - 0x110e], al
mov eax, dword [ebp - 0x2124]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x110f], al
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x211c]
push ecx
mov edx, dword [ebp - 0x211c]
lea eax, [ebp + edx - 0x2118]
push eax
lea ecx, [ebp - 0x110d]
push ecx
mov ecx, 0x8797778
call dword [0x10025374]
mov edx, dword [ebp - 0x2124]
push edx
lea eax, [ebp - 0x1110]
push eax
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x10025364]
jmp 0x100054b1
mov esp, ebp
pop ebp
ret