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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call dword [0x10025378]
cmp dword [ebp + 0x10], 0
jne 0x10005079
jmp 0x10005232
mov eax, dword [0x10630540]
movzx ecx, byte [eax + 2]
cmp ecx, 0xc1
jne 0x1000522d
cmp dword [0xe609e8], 5
jne 0x1000522d
mov edx, dword [0x10630540]
movzx eax, byte [edx + 4]
cmp eax, 0x11
je 0x100050cb
mov ecx, dword [0x10630540]
movzx edx, byte [ecx + 4]
cmp edx, 0x19
je 0x100050cb
mov eax, dword [0x10630540]
movzx ecx, byte [eax + 4]
cmp ecx, 0x1e
jne 0x1000522d
mov edx, dword [0x112832b4]
and edx, 1
jne 0x100050ee
mov eax, dword [0x112832b4]
or eax, 1
mov dword [0x112832b4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832b0], eax
mov ecx, dword [0x11282aa8]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10005208
mov eax, dword [ebp - 4]
call fcn.10004120
movzx eax, byte [eax]
mov ecx, dword [0x11282a18]
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 0x10005137
movsx edx, word [ebp - 0x14]
cmp edx, 0x22f
jne 0x1000513c
jmp 0x100053c0
movzx eax, byte [0x11282a5e]
test eax, eax
jne 0x1000514c
jmp 0x10005588
mov byte [0x11282a5e], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x112832b0]
cmp eax, 0x14
jb 0x10005171
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832b0], eax
jmp 0x10005176
jmp 0x10005588
cmp dword [0x112832ac], 0
je 0x100051a4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x112832ac]
cmp eax, 0x5dc
jb 0x1000519f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832ac], eax
jmp 0x100051a4
jmp 0x10005588
mov eax, dword [ebp - 4]
call fcn.10004110
movsx eax, word [eax]
call fcn.10004130
push 0x20
mov al, 0xc
lea esi, [ebp - 0x10]
call fcn.100022a0
mov ecx, dword [0x10630540]
movzx edx, byte [ecx + 4]
cmp edx, 0x11
jne 0x100051d5
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.10004110
mov dx, word [eax]
mov word [ebp - 8], dx
mov ax, word [0x11282a64]
mov word [ebp - 6], ax
movzx ecx, byte [ebp - 0xf]
lea edx, [ebp - 0x10]
push edx
mov edx, 0x100253b8
call fcn.10001900
movzx eax, byte [0x11282a5d]
test eax, eax
jne 0x10005223
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832ac], eax
jmp 0x10005588
mov dword [0x112832ac], 0
jmp 0x100053c0
mov ecx, dword [0x10630540]
movzx edx, byte [ecx + 2]
cmp edx, 0xc1
jne 0x100053a6
cmp dword [0xe609e8], 5
jne 0x100053a6
mov eax, dword [0x10630540]
movzx ecx, byte [eax + 4]
cmp ecx, 0x11
je 0x10005276
mov edx, dword [0x10630540]
movzx eax, byte [edx + 4]
cmp eax, 0x4b
jne 0x100053a6
movzx ecx, byte [0x11282a5e]
test ecx, ecx
jne 0x10005286
jmp 0x10005588
mov byte [0x11282a5e], 0
mov edx, dword [0x112832b4]
and edx, 2
jne 0x100052b0
mov eax, dword [0x112832b4]
or eax, 2
mov dword [0x112832b4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832a8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x112832a8]
cmp eax, 0x14
jb 0x100052ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832a8], eax
jmp 0x100052d3
jmp 0x10005588
cmp dword [0x112832a4], 0
je 0x10005301
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x112832a4]
cmp eax, 0x5dc
jb 0x100052fc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x112832a4], eax
jmp 0x10005301
jmp 0x10005588
mov ecx, dword [0x11282aa8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x10005396
mov eax, dword [ebp - 0x18]
call fcn.10004110
movsx eax, word [eax]
call fcn.10004130
push 0x20
mov al, 0xc
lea esi, [ebp - 0x28]
call fcn.100022a0
mov eax, dword [ebp - 0x18]
call fcn.10004120
movzx eax, byte [eax]
mov ecx, dword [0x11282a18]
mov edx, dword [ecx]
mov ax, word [edx + eax*2 + 0x78]
mov word [ebp - 0x1c], ax
mov ecx, dword [0x10630540]
movzx edx, byte [ecx + 4]
cmp edx, 0x11
jne 0x10005363
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.10004110
mov dx, word [eax]
mov word [ebp - 0x20], dx
mov ax, word [0x11282a64]
mov word [ebp - 0x1e], ax
movzx ecx, byte [ebp - 0x27]
lea edx, [ebp - 0x28]
push edx
mov edx, 0x100253b8
call fcn.10001900
movzx eax, byte [0x11282a5d]
test eax, eax
jne 0x100053a6
jmp 0x10005588
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x1002536c]
jmp 0x10005588
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2118]
push ecx
call dword [0x10025370]
add esp, 0xc
call dword [0x10025374]
and eax, 0x800000ff
jns 0x100053ee
dec eax
or eax, 0xffffff00
inc eax
jmp 0x100053ee
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 [0x1002537c]
mov dword [ebp - 0x1114], eax
cmp dword [ebp - 0x1114], 0x100
jge 0x100054f7
cmp dword [ebp + 0x14], 0
jne 0x100054f7
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 [0x1002537c]
mov eax, dword [ebp - 0x2120]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x1002536c]
jmp 0x10005588
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 0x10005523
dec eax
or eax, 0xffffff00
inc eax
jmp 0x10005523
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 [0x1002537c]
mov edx, dword [ebp - 0x2124]
push edx
lea eax, [ebp - 0x1110]
push eax
mov ecx, 0xe61f84
mov ecx, dword [ecx]
call dword [0x1002536c]
jmp 0x10005588
mov esp, ebp
pop ebp
ret