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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
xor eax, eax
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 0x18], cx
mov dword [ebp - 0x10], 0x348
mov dword [ebp - 4], 0xffffff38
mov dword [ebp - 0x24], 0x280
mov dword [ebp - 0x20], 0x1e0
mov edx, dword [0xcb1fb4]
and edx, 1
jne 0x49e9a9
mov eax, dword [0xcb1fb4]
or eax, 1
mov dword [0xcb1fb4], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x49e997
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x34], edx
jmp 0x49e9a0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [0xcb1fb0], edx
cmp dword [0x121bbe0], 0xa
je 0x49e9be
mov ax, word [0xcb1f58]
mov word [ebp - 0x14], ax
jmp 0x49e9c9
mov cx, word [0xcb1fa0]
mov word [ebp - 0x14], cx
movsx edx, word [ebp - 0x14]
test edx, edx
je 0x49ebc5
movsx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x49eae4
movsx ecx, word [ebp - 0x14]
imul ecx, ecx, 0x19
mov edx, 0x33
sub edx, ecx
mov word [ebp - 8], dx
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x49ea15
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x38], edx
jmp 0x49ea1e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x38], eax
movsx edx, word [ebp - 8]
add edx, dword [0xcb1fb0]
cmp edx, dword [ebp - 0x38]
jae 0x49eadf
call fcn.0049e6c0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x49eadf
mov eax, 1
mov ecx, dword [ebp - 0x28]
mov word [ecx + 0x3c], ax
call fcn.005cbcdc
cdq
idiv dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], 0
call fcn.005cbcdc
and eax, 0x80000001
jns 0x49ea7b
dec eax
or eax, 0xfffffffe
inc eax
add eax, 2
mov edx, dword [ebp - 0x28]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0xc], 9
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x49eaaf
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x3c], edx
jmp 0x49eab8
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [0xcb1fb0], edx
mov ax, word [0xcb1f60]
add ax, 1
mov word [0xcb1f60], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
neg edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], edx
jmp 0x49ebc5
movsx ecx, word [ebp - 0x14]
lea edx, [ecx*4 - 8]
mov word [ebp - 0x18], dx
mov dword [ebp - 0xc], 0
jmp 0x49eb05
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
movsx ecx, word [ebp - 0x18]
cmp dword [ebp - 0xc], ecx
jge 0x49ebc5
call fcn.0049e6c0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x49ebc0
mov edx, 1
mov eax, dword [ebp - 0x2c]
mov word [eax + 0x3c], dx
call fcn.005cbcdc
cdq
idiv dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0
call fcn.005cbcdc
and eax, 0x80000001
jns 0x49eb5c
dec eax
or eax, 0xfffffffe
inc eax
add eax, 2
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], 9
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x49eb90
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x40], edx
jmp 0x49eb99
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [0xcb1fb0], edx
mov ax, word [0xcb1f60]
add ax, 1
mov word [0xcb1f60], ax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
neg edx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], edx
jmp 0x49eafc
mov dword [ebp - 0xc], 0
mov ecx, dword [0xca9a7c]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x49ec8a
mov edx, dword [ebp - 0x1c]
movsx eax, word [edx + 0x3c]
cmp eax, 1
jne 0x49ec67
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0049e7c0
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx]
jle 0x49ec35
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 4]
jg 0x49ec67
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0049e740
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov cx, word [0xcb1f60]
sub cx, 1
mov word [0xcb1f60], cx
jmp 0x49ebd5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x1c], eax
mov ecx, 1
mov word [0xcb1f54], cx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x49ebd5
mov esp, ebp
pop ebp
ret