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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call dword [0x10026378]
cmp dword [ebp + 0x10], 0
jne 0x10004eb9
jmp 0x10005072
mov eax, dword [0x10531540]
movzx ecx, byte [eax + 2]
cmp ecx, 0xc1
jne 0x1000506d
cmp dword [0xe609e8], 5
jne 0x1000506d
mov edx, dword [0x10531540]
movzx eax, byte [edx + 4]
cmp eax, 0x11
je 0x10004f0b
mov ecx, dword [0x10531540]
movzx edx, byte [ecx + 4]
cmp edx, 0x19
je 0x10004f0b
mov eax, dword [0x10531540]
movzx ecx, byte [eax + 4]
cmp ecx, 0x1e
jne 0x1000506d
mov edx, dword [0x111841bc]
and edx, 1
jne 0x10004f2e
mov eax, dword [0x111841bc]
or eax, 1
mov dword [0x111841bc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841b8], eax
mov ecx, dword [0x11183aa8]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10005048
mov eax, dword [ebp - 4]
call fcn.10003da0
movzx eax, byte [eax]
mov ecx, dword [0x11183a18]
mov edx, dword [ecx]
mov ax, word [edx + eax*2 + 0x78]
mov word [ebp - 0x14], ax
movsx ecx, word [ebp - 0x14]
cmp ecx, 0x107
je 0x10004f77
movsx edx, word [ebp - 0x14]
cmp edx, 0x22f
jne 0x10004f7c
jmp 0x10005200
movzx eax, byte [0x11183a5e]
test eax, eax
jne 0x10004f8c
jmp 0x100053c8
mov byte [0x11183a5e], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111841b8]
cmp eax, 0x14
jb 0x10004fb1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841b8], eax
jmp 0x10004fb6
jmp 0x100053c8
cmp dword [0x111841b4], 0
je 0x10004fe4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111841b4]
cmp eax, 0x5dc
jb 0x10004fdf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841b4], eax
jmp 0x10004fe4
jmp 0x100053c8
mov eax, dword [ebp - 4]
call fcn.10003d90
movsx eax, word [eax]
call fcn.10003db0
push 0x20
mov al, 0xc
lea esi, [ebp - 0x10]
call fcn.10001f20
mov ecx, dword [0x10531540]
movzx edx, byte [ecx + 4]
cmp edx, 0x11
jne 0x10005015
xor eax, eax
mov word [ebp - 0x14], ax
mov cx, word [ebp - 0x14]
mov word [ebp - 0xc], cx
mov eax, dword [ebp - 4]
call fcn.10003d90
mov dx, word [eax]
mov word [ebp - 8], dx
mov ax, word [0x11183a64]
mov word [ebp - 6], ax
movzx ecx, byte [ebp - 0xf]
lea edx, [ebp - 0x10]
push edx
mov edx, 0x100263b8
call fcn.100018d0
movzx eax, byte [0x11183a5d]
test eax, eax
jne 0x10005063
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841b4], eax
jmp 0x100053c8
mov dword [0x111841b4], 0
jmp 0x10005200
mov ecx, dword [0x10531540]
movzx edx, byte [ecx + 2]
cmp edx, 0xc1
jne 0x100051e6
cmp dword [0xe609e8], 5
jne 0x100051e6
mov eax, dword [0x10531540]
movzx ecx, byte [eax + 4]
cmp ecx, 0x11
je 0x100050b6
mov edx, dword [0x10531540]
movzx eax, byte [edx + 4]
cmp eax, 0x4b
jne 0x100051e6
movzx ecx, byte [0x11183a5e]
test ecx, ecx
jne 0x100050c6
jmp 0x100053c8
mov byte [0x11183a5e], 0
mov edx, dword [0x111841bc]
and edx, 2
jne 0x100050f0
mov eax, dword [0x111841bc]
or eax, 2
mov dword [0x111841bc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841b0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111841b0]
cmp eax, 0x14
jb 0x1000510e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841b0], eax
jmp 0x10005113
jmp 0x100053c8
cmp dword [0x111841ac], 0
je 0x10005141
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111841ac]
cmp eax, 0x5dc
jb 0x1000513c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111841ac], eax
jmp 0x10005141
jmp 0x100053c8
mov ecx, dword [0x11183aa8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x100051d6
mov eax, dword [ebp - 0x18]
call fcn.10003d90
movsx eax, word [eax]
call fcn.10003db0
push 0x20
mov al, 0xc
lea esi, [ebp - 0x28]
call fcn.10001f20
mov eax, dword [ebp - 0x18]
call fcn.10003da0
movzx eax, byte [eax]
mov ecx, dword [0x11183a18]
mov edx, dword [ecx]
mov ax, word [edx + eax*2 + 0x78]
mov word [ebp - 0x1c], ax
mov ecx, dword [0x10531540]
movzx edx, byte [ecx + 4]
cmp edx, 0x11
jne 0x100051a3
xor eax, eax
mov word [ebp - 0x1c], ax
mov cx, word [ebp - 0x1c]
mov word [ebp - 0x24], cx
mov eax, dword [ebp - 0x18]
call fcn.10003d90
mov dx, word [eax]
mov word [ebp - 0x20], dx
mov ax, word [0x11183a64]
mov word [ebp - 0x1e], ax
movzx ecx, byte [ebp - 0x27]
lea edx, [ebp - 0x28]
push edx
mov edx, 0x100263b8
call fcn.100018d0
movzx eax, byte [0x11183a5d]
test eax, eax
jne 0x100051e6
jmp 0x100053c8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x1002636c]
jmp 0x100053c8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2118]
push ecx
call dword [0x10026370]
add esp, 0xc
call dword [0x10026374]
and eax, 0x800000ff
jns 0x1000522e
dec eax
or eax, 0xffffff00
inc eax
jmp 0x1000522e
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 [0x1002637c]
mov dword [ebp - 0x1114], eax
cmp dword [ebp - 0x1114], 0x100
jge 0x10005337
cmp dword [ebp + 0x14], 0
jne 0x10005337
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 [0x1002637c]
mov eax, dword [ebp - 0x2120]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x1002636c]
jmp 0x100053c8
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 0x10005363
dec eax
or eax, 0xffffff00
inc eax
jmp 0x10005363
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 [0x1002637c]
mov edx, dword [ebp - 0x2124]
push edx
lea eax, [ebp - 0x1110]
push eax
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x1002636c]
jmp 0x100053c8
mov esp, ebp
pop ebp
ret