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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x60], 0
je 0x4bd311
mov byte [ebp - 1], 1
mov ecx, dword [0xe5dcb8]
mov dword [ebp - 0x38], ecx
mov edx, dword [0xe5dcbc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510980
test eax, eax
je 0x4bcd01
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x68]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
call fcn.0049b7c0
test eax, eax
je 0x4bcce9
movzx edx, byte [0xe5dcb5]
test edx, edx
je 0x4bcce9
mov eax, dword [0xe5dcb8]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x40]
je 0x4bcc9d
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 0x58]
mov eax, dword [ebp - 0xc]
imul edx, dword [eax + 0x50]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
shl eax, 0x10
mov ecx, dword [ebp - 0xc]
cdq
idiv dword [ecx + 0x60]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004bc150
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4bcce4
call fcn.0049c590
test eax, eax
je 0x4bcce0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax]
call edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xdc], 0
je 0x4bccd1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xdc]
call edx
call fcn.0049c980
push 0
call fcn.004cb900
add esp, 4
mov byte [ebp - 1], 0
jmp 0x4bcc24
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x2d]
mov byte [ebp - 3], cl
movzx ax, byte [ebp - 3]
jmp 0x4bd313
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x8c
call fcn.00510980
test eax, eax
je 0x4bd00d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfb
div ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x41]
mov byte [ebp - 2], al
call fcn.0049b7c0
test eax, eax
je 0x4bcfe5
movzx ecx, byte [0xe5dcb5]
test ecx, ecx
je 0x4bcfe5
mov edx, dword [0xe5dcb8]
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
add edx, dword [eax]
mov dword [ebp - 0x30], edx
mov ecx, dword [0xe5dcbc]
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x8c
call fcn.00510980
test eax, eax
je 0x4bcf73
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x41]
and edx, 8
jne 0x4bce78
movzx eax, byte [ebp - 2]
or eax, 8
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x41], al
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x44]
sub ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x4c]
jle 0x4bcdda
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x44], edx
jmp 0x4bcdf4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x48]
jge 0x4bcdf4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
sub edx, dword [ecx + 0x60]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x5c]
sub eax, dword [edx + 0x58]
shl eax, 0x10
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x54], eax
jle 0x4bce34
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x5c]
sub ecx, dword [eax + 0x58]
shl ecx, 0x10
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x54], ecx
jmp 0x4bce47
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jge 0x4bce47
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x54]
sar eax, 0x10
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x58]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510730
mov byte [ebp - 1], 1
jmp 0x4bcf71
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfb
div ecx
mov edx, dword [ebp - 0x10]
add edx, 2
cmp eax, edx
jbe 0x4bcf71
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
sub edx, dword [ecx + 0x50]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x44], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x4c]
jle 0x4bcec3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x44], eax
jmp 0x4bcedd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x48]
jge 0x4bcedd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x54]
sub eax, dword [edx + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x5c]
sub ecx, dword [eax + 0x58]
shl ecx, 0x10
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x54], ecx
jle 0x4bcf1d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
sub edx, dword [ecx + 0x58]
shl edx, 0x10
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], edx
jmp 0x4bcf30
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x54], 0
jge 0x4bcf30
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
sar ecx, 0x10
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x58]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510730
mov byte [ebp - 1], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfb
div ecx
sub eax, 6
mov dword [ebp - 0x10], eax
jmp 0x4bcf90
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x41]
and eax, 8
je 0x4bcf90
movzx ecx, byte [ebp - 2]
and ecx, 0xfffffffd
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x41], cl
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4bcfe0
call fcn.0049c590
test eax, eax
je 0x4bcfdc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
call eax
movzx ecx, byte [ebp - 1]
cmp ecx, 2
jne 0x4bcfcd
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xdc], 0
je 0x4bcfcd
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xdc]
call ecx
call fcn.0049c980
push 0
call fcn.004cb900
add esp, 4
mov byte [ebp - 1], 0
jmp 0x4bcd36
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x41]
and eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x41], al
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x2d]
mov byte [ebp - 4], al
movzx ax, byte [ebp - 4]
jmp 0x4bd313
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xb4
call fcn.00510980
test eax, eax
je 0x4bd311
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfb
div ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x42]
mov byte [ebp - 2], al
call fcn.0049b7c0
test eax, eax
je 0x4bd2f1
movzx ecx, byte [0xe5dcb5]
test ecx, ecx
je 0x4bd2f1
mov edx, dword [0xe5dcb8]
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
add edx, dword [eax]
mov dword [ebp - 0x30], edx
mov ecx, dword [0xe5dcbc]
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xb4
call fcn.00510980
test eax, eax
je 0x4bd27f
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x42]
and edx, 8
jne 0x4bd184
movzx eax, byte [ebp - 2]
or eax, 8
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x42], al
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x50]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x4c]
jle 0x4bd0e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x44], edx
jmp 0x4bd100
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x48]
jge 0x4bd100
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x60]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x5c]
sub eax, dword [edx + 0x58]
shl eax, 0x10
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x54], eax
jle 0x4bd140
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x5c]
sub ecx, dword [eax + 0x58]
shl ecx, 0x10
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x54], ecx
jmp 0x4bd153
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jge 0x4bd153
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x54]
sar eax, 0x10
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x58]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510730
mov byte [ebp - 1], 1
jmp 0x4bd27d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfb
div ecx
mov edx, dword [ebp - 0x10]
add edx, 2
cmp eax, edx
jbe 0x4bd27d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x50]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x4c]
jle 0x4bd1cf
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x44], eax
jmp 0x4bd1e9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x48]
jge 0x4bd1e9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x5c]
sub ecx, dword [eax + 0x58]
shl ecx, 0x10
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x54], ecx
jle 0x4bd229
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
sub edx, dword [ecx + 0x58]
shl edx, 0x10
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], edx
jmp 0x4bd23c
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x54], 0
jge 0x4bd23c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
sar ecx, 0x10
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x58]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510730
mov byte [ebp - 1], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfb
div ecx
sub eax, 6
mov dword [ebp - 0x10], eax
jmp 0x4bd29c
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x42]
and eax, 8
je 0x4bd29c
movzx ecx, byte [ebp - 2]
and ecx, 0xfffffffd
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x42], cl
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4bd2ec
call fcn.0049c590
test eax, eax
je 0x4bd2e8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
call eax
movzx ecx, byte [ebp - 1]
cmp ecx, 2
jne 0x4bd2d9
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xdc], 0
je 0x4bd2d9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xdc]
call ecx
call fcn.0049c980
push 0
call fcn.004cb900
add esp, 4
mov byte [ebp - 1], 0
jmp 0x4bd042
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x42]
and eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x42], al
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x2d]
mov byte [ebp - 5], al
movzx ax, byte [ebp - 5]
jmp 0x4bd313
xor eax, eax
mov esp, ebp
pop ebp
ret 4