Function at 0x4bd790
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 0x4bded3
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 0x4bd8c3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x64]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
call fcn.0049b7c0
test eax, eax
je 0x4bd8ab
movzx edx, byte [0xe5dcb5]
test edx, edx
je 0x4bd8ab
mov eax, dword [0xe5dcbc]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x3c]
je 0x4bd85f
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x3c]
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.004bc260
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 0x4bd8a6
call fcn.0049c590
test eax, eax
je 0x4bd8a2
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 0x4bd893
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 0x4bd7e5
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x2d]
mov byte [ebp - 3], cl
movzx ax, byte [ebp - 3]
jmp 0x4bded5
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x8c
call fcn.00510980
test eax, eax
je 0x4bdbcf
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 0x4bdba7
movzx ecx, byte [0xe5dcb5]
test ecx, ecx
je 0x4bdba7
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 0x4bdb35
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x41]
and edx, 8
jne 0x4bda3a
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 0x4bd99c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x44], edx
jmp 0x4bd9b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x48]
jge 0x4bd9b6
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 0x4bd9f6
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 0x4bda09
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jge 0x4bda09
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x68]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
sar edx, 0x10
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0x58]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510730
mov byte [ebp - 1], 2
jmp 0x4bdb33
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 0x4bdb33
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 0x4bda85
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x44], eax
jmp 0x4bda9f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x48]
jge 0x4bda9f
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 0x4bdadf
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 0x4bdaf2
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x54], 0
jge 0x4bdaf2
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x20], 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 edx, dword [ebp - 0x20]
push edx
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 0x4bdb52
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x41]
and eax, 8
je 0x4bdb52
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 0x4bdba2
call fcn.0049c590
test eax, eax
je 0x4bdb9e
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 0x4bdb8f
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xdc], 0
je 0x4bdb8f
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 0x4bd8f8
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 0x4bded5
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xb4
call fcn.00510980
test eax, eax
je 0x4bded3
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 0x4bdeb3
movzx ecx, byte [0xe5dcb5]
test ecx, ecx
je 0x4bdeb3
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 0x4bde41
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x42]
and edx, 8
jne 0x4bdd46
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 0x4bdca8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x44], edx
jmp 0x4bdcc2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x48]
jge 0x4bdcc2
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 0x4bdd02
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 0x4bdd15
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jge 0x4bdd15
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x68]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
sar edx, 0x10
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0x58]
push edx
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x64
call fcn.00510730
mov byte [ebp - 1], 2
jmp 0x4bde3f
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 0x4bde3f
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 0x4bdd91
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x44], eax
jmp 0x4bddab
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x48]
jge 0x4bddab
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 0x4bddeb
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 0x4bddfe
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x54], 0
jge 0x4bddfe
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x28], 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 edx, dword [ebp - 0x28]
push edx
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 0x4bde5e
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x42]
and eax, 8
je 0x4bde5e
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 0x4bdeae
call fcn.0049c590
test eax, eax
je 0x4bdeaa
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 0x4bde9b
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xdc], 0
je 0x4bde9b
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 0x4bdc04
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 0x4bded5
xor eax, eax
mov esp, ebp
pop ebp
ret 4