Function at 0x10004ec0
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 0x10004ed9
jmp 0x10005092
mov eax, dword [0x10530540]
movzx ecx, byte [eax + 2]
cmp ecx, 0xc1
jne 0x1000508d
cmp dword [0xe609e8], 5
jne 0x1000508d
mov edx, dword [0x10530540]
movzx eax, byte [edx + 4]
cmp eax, 0x11
je 0x10004f2b
mov ecx, dword [0x10530540]
movzx edx, byte [ecx + 4]
cmp edx, 0x19
je 0x10004f2b
mov eax, dword [0x10530540]
movzx ecx, byte [eax + 4]
cmp ecx, 0x1e
jne 0x1000508d
mov edx, dword [0x111831bc]
and edx, 1
jne 0x10004f4e
mov eax, dword [0x111831bc]
or eax, 1
mov dword [0x111831bc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831b8], eax
mov ecx, dword [0x11182aa8]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10005068
mov eax, dword [ebp - 4]
call fcn.10003da0
movzx eax, byte [eax]
mov ecx, dword [0x11182a18]
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 0x10004f97
movsx edx, word [ebp - 0x14]
cmp edx, 0x22f
jne 0x10004f9c
jmp 0x10005220
movzx eax, byte [0x11182a5e]
test eax, eax
jne 0x10004fac
jmp 0x100053e8
mov byte [0x11182a5e], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111831b8]
cmp eax, 0x14
jb 0x10004fd1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831b8], eax
jmp 0x10004fd6
jmp 0x100053e8
cmp dword [0x111831b4], 0
je 0x10005004
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111831b4]
cmp eax, 0x5dc
jb 0x10004fff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831b4], eax
jmp 0x10005004
jmp 0x100053e8
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 [0x10530540]
movzx edx, byte [ecx + 4]
cmp edx, 0x11
jne 0x10005035
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 [0x11182a64]
mov word [ebp - 6], ax
movzx ecx, byte [ebp - 0xf]
lea edx, [ebp - 0x10]
push edx
mov edx, 0x100253b8
call fcn.100018d0
movzx eax, byte [0x11182a5d]
test eax, eax
jne 0x10005083
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831b4], eax
jmp 0x100053e8
mov dword [0x111831b4], 0
jmp 0x10005220
mov ecx, dword [0x10530540]
movzx edx, byte [ecx + 2]
cmp edx, 0xc1
jne 0x10005206
cmp dword [0xe609e8], 5
jne 0x10005206
mov eax, dword [0x10530540]
movzx ecx, byte [eax + 4]
cmp ecx, 0x11
je 0x100050d6
mov edx, dword [0x10530540]
movzx eax, byte [edx + 4]
cmp eax, 0x4b
jne 0x10005206
movzx ecx, byte [0x11182a5e]
test ecx, ecx
jne 0x100050e6
jmp 0x100053e8
mov byte [0x11182a5e], 0
mov edx, dword [0x111831bc]
and edx, 2
jne 0x10005110
mov eax, dword [0x111831bc]
or eax, 2
mov dword [0x111831bc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831b0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111831b0]
cmp eax, 0x14
jb 0x1000512e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831b0], eax
jmp 0x10005133
jmp 0x100053e8
cmp dword [0x111831ac], 0
je 0x10005161
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x111831ac]
cmp eax, 0x5dc
jb 0x1000515c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x111831ac], eax
jmp 0x10005161
jmp 0x100053e8
mov ecx, dword [0x11182aa8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x100051f6
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 [0x11182a18]
mov edx, dword [ecx]
mov ax, word [edx + eax*2 + 0x78]
mov word [ebp - 0x1c], ax
mov ecx, dword [0x10530540]
movzx edx, byte [ecx + 4]
cmp edx, 0x11
jne 0x100051c3
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 [0x11182a64]
mov word [ebp - 0x1e], ax
movzx ecx, byte [ebp - 0x27]
lea edx, [ebp - 0x28]
push edx
mov edx, 0x100253b8
call fcn.100018d0
movzx eax, byte [0x11182a5d]
test eax, eax
jne 0x10005206
jmp 0x100053e8
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 0x100053e8
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 0x1000524e
dec eax
or eax, 0xffffff00
inc eax
jmp 0x1000524e
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 0x10005357
cmp dword [ebp + 0x14], 0
jne 0x10005357
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 0x100053e8
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 0x10005383
dec eax
or eax, 0xffffff00
inc eax
jmp 0x10005383
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 0x100053e8
mov esp, ebp
pop ebp
ret