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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b2e2c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
lea ebx, [ecx + 0x2c]
lea esi, [ecx + 0x38]
mov dword [ebx + 4], eax
mov eax, dword [esi]
lea edi, [ecx + 0x44]
mov dword [esi + 4], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov ecx, eax
not ecx
and ecx, edx
or dword [0x77e314], ecx
not edx
and edx, eax
test al, 0xf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], edx
jne 0x56dace
test al, 0xf
je 0x56dace
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov ecx, dword [ebp - 0x18]
and eax, 0xf
mov dword [ebp - 0x38], eax
jne 0x56dadd
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x18], 0
mov eax, ecx
and eax, 0xfffffff0
mov dword [ebp - 0x2c], eax
je 0x56db09
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x28], 0
jmp 0x56db18
test edx, 0xfffffff0
mov edx, dword [ebp - 0x10]
je 0x56db18
mov byte [edx + 0x24], 0
test eax, eax
je 0x56db1f
mov dword [edx + 0xc], eax
mov edx, 1
mov eax, 0x704b78
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
nop
test ecx, edx
je 0x56dbb3
movzx eax, word [eax]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
cmp eax, ecx
jae 0x56db8b
cmp dword [esi], eax
ja 0x56db8b
sub eax, dword [esi]
sar eax, 1
mov dword [ebp - 0x34], eax
cmp ecx, dword [esi + 8]
jne 0x56db60
push 1
mov ecx, esi
call fcn.004958f0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x56db82
mov ax, word [eax]
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
jmp 0x56dba9
cmp ecx, dword [esi + 8]
jne 0x56db9c
push 1
mov ecx, esi
call fcn.004958f0
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 4]
test eax, eax
je 0x56dba9
mov ecx, dword [ebp - 0x14]
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
add dword [esi + 4], 2
rol edx, 1
add eax, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
cmp eax, str..._visualwin32DrawDevice.cpp
jl 0x56db30
xor esi, esi
mov dword [ebp - 0x2c], esi
mov edi, edi
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [ebp - 0x30], eax
je 0x56dcec
movzx eax, word [esi*4 + 0x704b78]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
cmp eax, ecx
jae 0x56dc89
mov eax, dword [ebx]
lea edx, [ebp - 0x1c]
cmp eax, edx
ja 0x56dc89
mov esi, edx
mov edx, dword [ebx + 8]
sub esi, eax
sar esi, 1
cmp ecx, edx
jne 0x56dc60
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x56dc60
sub ecx, dword [ebx]
mov eax, 0x7fffffff
sar ecx, 1
sub eax, ecx
cmp eax, 1
jb 0x56dd95
sub edx, dword [ebx]
inc ecx
sar edx, 1
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
jae 0x56dc4f
xor edx, edx
jmp 0x56dc51
add edx, ecx
cmp edx, dword [ebp - 0x34]
mov ecx, ebx
cmovb edx, dword [ebp - 0x34]
push edx
call fcn.00444eb0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x56dc7d
mov ax, word [eax + esi*2]
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
jmp 0x56dce8
mov edx, dword [ebx + 8]
cmp ecx, edx
jne 0x56dcdb
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x56dcdb
sub ecx, dword [ebx]
mov eax, 0x7fffffff
sar ecx, 1
sub eax, ecx
cmp eax, 1
jb 0x56dd95
sub edx, dword [ebx]
inc ecx
sar edx, 1
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
jae 0x56dcca
xor edx, edx
jmp 0x56dccc
add edx, ecx
cmp edx, dword [ebp - 0x34]
mov ecx, ebx
cmovb edx, dword [ebp - 0x34]
push edx
call fcn.00444eb0
mov eax, dword [ebx + 4]
test eax, eax
je 0x56dce8
mov ecx, dword [ebp - 0x1c]
mov word [eax], cx
add dword [ebx + 4], 2
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, 0xe
jl 0x56dbd0
mov eax, dword [0x77a6a4]
cmp dword [0x796e6c], eax
je 0x56ddde
mov dword [0x796e6c], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x44]
mov ecx, str._paddelay
call fcn.004312a0
test al, al
je 0x56dd3b
lea ecx, [ebp - 0x44]
call fcn.00402770
mov dword [0x772e4c], eax
lea edx, [ebp - 0x44]
mov ecx, str._padinterval
call fcn.004312a0
test al, al
je 0x56dd59
lea ecx, [ebp - 0x44]
call fcn.00402770
mov dword [0x772e68], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
dec eax
je 0x56ddbe
dec eax
je 0x56dda5
dec eax
jne 0x56ddde
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x56ddde
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x56dd9f
push dword [esi + 8]
call fcn.00634397
add esp, 4
push esi
call fcn.00633f98
jmp 0x56dddb
push str.vector_T__too_long
call fcn.00632c40
dec eax
mov dword [esi + 4], eax
jmp 0x56ddde
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x56ddde
mov eax, dword [ecx]
test eax, eax
jne 0x56ddb9
call fcn.004df580
jmp 0x56ddde
dec eax
mov dword [ecx], eax
jmp 0x56ddde
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x56ddce
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
add esp, 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x56ddde
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
add esp, 4
mov ebx, dword [ebp - 0x10]
mov esi, 0xa
cmp byte [ebx + 0x18], 0
je 0x56df79
cmp dword [0x772e4c], 0
jl 0x56df79
cmp dword [0x772e68], 0
jle 0x56df79
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x14]
sub eax, dword [0x772e4c]
js 0x56df79
cdq
idiv dword [0x772e68]
mov ecx, eax
sub ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], eax
cmp ecx, esi
cmovg ecx, esi
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x56df79
mov edi, edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
test dword [ebp - 0x38], eax
je 0x56df63
movzx esi, word [ebx*4 + 0x704b78]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
cmp eax, ecx
jae 0x56defe
mov ebx, dword [edi]
cmp ebx, eax
ja 0x56defb
mov edx, dword [edi + 8]
mov esi, eax
sub esi, ebx
sar esi, 1
cmp ecx, edx
jne 0x56ded2
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x56ded2
sub ecx, ebx
sar ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x56dd95
inc ecx
sub edx, ebx
sar edx, 1
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
jae 0x56dec1
xor edx, edx
jmp 0x56dec3
add edx, ecx
cmp edx, dword [ebp - 0x34]
mov ecx, edi
cmovb edx, dword [ebp - 0x34]
push edx
call fcn.00444eb0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 3
test ecx, ecx
je 0x56deef
mov ax, word [eax + esi*2]
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x2c]
jmp 0x56df5f
mov ebx, dword [ebp - 0x2c]
mov edx, dword [edi + 8]
cmp ecx, edx
jne 0x56df55
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x56df55
mov esi, dword [edi]
sub ecx, esi
sar ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x56dd95
inc ecx
sub edx, esi
sar edx, 1
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
jae 0x56df41
xor edx, edx
jmp 0x56df43
add edx, ecx
cmp edx, dword [ebp - 0x34]
mov ecx, edi
cmovb edx, dword [ebp - 0x34]
push edx
call fcn.00444eb0
mov esi, dword [ebp - 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x56df5f
mov word [eax], si
add dword [edi + 4], 2
inc ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xe
jl 0x56de45
dec dword [ebp - 0x30]
jne 0x56de40
mov eax, dword [0x77a6a4]
cmp dword [0x796e6c], eax
je 0x56e0cd
mov dword [0x796e6c], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x44]
mov ecx, str._paddelay
call fcn.004312a0
test al, al
je 0x56dfbb
lea ecx, [ebp - 0x44]
call fcn.00402770
mov dword [0x772e4c], eax
lea edx, [ebp - 0x44]
mov ecx, str._padinterval
call fcn.004312a0
test al, al
je 0x56dfd9
lea ecx, [ebp - 0x44]
call fcn.00402770
mov dword [0x772e68], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
dec eax
je 0x56e0ad
dec eax
je 0x56e02d
dec eax
jne 0x56e0cd
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x56e0cd
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x56e024
push dword [esi + 8]
call fcn.00634397
add esp, 4
push esi
call fcn.00633f98
jmp 0x56e0ca
dec eax
mov dword [esi + 4], eax
jmp 0x56e0cd
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x56e0cd
mov eax, dword [ebx]
test eax, eax
jne 0x56e0a8
mov esi, dword [0x77ae88]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 5
mov eax, dword [ebx + 4]
test eax, eax
je 0x56e068
add eax, 0xfffffffc
push eax
call fcn.00634402
add esp, 4
mov ecx, dword [0x77ae80]
mov eax, dword [0x77ae90]
dec dword [0x77ae94]
mov dword [ebx + 0x38], 0
mov dword [eax + ecx*4], ebx
inc ecx
mov dword [0x77ae80], ecx
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x77ae94], 0
jne 0x56e0cd
call fcn.004df050
jmp 0x56e0cd
dec eax
mov dword [ebx], eax
jmp 0x56e0cd
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x56e0bd
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
add esp, 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x56e0cd
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
add esp, 4
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x24], 0
je 0x56e268
cmp dword [0x772e4c], 0
jl 0x56e268
cmp dword [0x772e68], 0
jle 0x56e268
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x20]
sub eax, dword [0x772e4c]
js 0x56e268
cdq
idiv dword [0x772e68]
mov ecx, 0xa
mov esi, eax
sub esi, dword [ebx + 0x28]
mov dword [ebx + 0x28], eax
cmp esi, 0xa
cmovg esi, ecx
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x56e268
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x30], edx
xor ecx, ecx
mov eax, 1
shl eax, cl
test edx, eax
jne 0x56e14c
inc ecx
cmp ecx, 0xe
jl 0x56e136
jmp 0x56e25b
movzx ebx, word [ecx*4 + 0x704b78]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
cmp eax, ecx
jae 0x56e1f3
mov ebx, dword [edi]
cmp ebx, eax
ja 0x56e1f0
mov edx, dword [edi + 8]
mov esi, eax
sub esi, ebx
sar esi, 1
cmp ecx, edx
jne 0x56e1c7
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x56e1c7
sub ecx, ebx
sar ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x56dd95
inc ecx
sub edx, ebx
sar edx, 1
mov dword [ebp - 0x38], ecx
mov ecx, edx
shr ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
jae 0x56e1b6
xor edx, edx
jmp 0x56e1b8
add edx, ecx
cmp edx, dword [ebp - 0x38]
mov ecx, edi
cmovb edx, dword [ebp - 0x38]
push edx
call fcn.00444eb0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 6
test ecx, ecx
je 0x56e1e4
mov ax, word [eax + esi*2]
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
jmp 0x56e254
mov ebx, dword [ebp - 0x24]
mov edx, dword [edi + 8]
cmp ecx, edx
jne 0x56e24a
mov eax, edx
sub eax, ecx
sar eax, 1
cmp eax, 1
jae 0x56e24a
mov esi, dword [edi]
sub ecx, esi
sar ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x56dd95
inc ecx
sub edx, esi
sar edx, 1
mov dword [ebp - 0x38], ecx
mov ecx, edx
shr ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
jae 0x56e236
xor edx, edx
jmp 0x56e238
add edx, ecx
cmp edx, dword [ebp - 0x38]
mov ecx, edi
cmovb edx, dword [ebp - 0x38]
push edx
call fcn.00444eb0
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi + 4]
test eax, eax
je 0x56e254
mov word [eax], bx
mov edx, dword [ebp - 0x30]
add dword [edi + 4], 2
dec esi
mov dword [ebp - 0x2c], esi
jne 0x56e134
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4