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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x4df49d
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x4df49d
call fcn.00488c5d
test eax, eax
je 0x4df268
mov ecx, dword [esi + 0xf8]
call fcn.00496ee8
test al, al
jne 0x4df268
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4df49d
mov ecx, dword [esi + 0xf8]
call fcn.00497692
test al, al
jne 0x4df49d
mov ecx, dword [esi + 0xf8]
push ebx
xor ebx, ebx
push ebx
call fcn.0048702d
mov ecx, dword [0x5a23ec]
push eax
call fcn.0045e98e
cmp dword [esi + 0x15a8], ebx
mov ecx, dword [esi + 0xfc]
push ebx
mov dword [esi + 0x14d8], eax
setne al
push 1
push ebx
mov byte [esi + 0x18e], al
call fcn.0041ef08
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004e19c7
test byte [esi + 0x108], 1
mov byte [ebp - 3], al
jne 0x4df2e7
mov byte [ebp - 4], bl
test al, al
je 0x4df2e2
mov ecx, esi
call fcn.004e1992
test eax, eax
jne 0x4df2eb
mov byte [ebp - 2], bl
jmp 0x4df2ef
mov byte [ebp - 4], 1
mov byte [ebp - 2], 1
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x4df319
call fcn.00496e87
test al, al
jne 0x4df313
mov ecx, dword [esi + 0xf8]
push 1
call fcn.0049715d
test al, al
jne 0x4df319
mov byte [ebp - 1], 1
jmp 0x4df31c
mov byte [ebp - 1], bl
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x15a8], ebx
jne 0x4df340
push ebx
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004dbdb5
test dword [eax], 0x1000000
je 0x4df426
cmp byte [esi + 0x15b8], bl
je 0x4df426
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [esi + 0x15a8], ebx
movzx eax, al
cmove eax, ecx
mov dword [ebp - 8], eax
cmp byte [ebp - 2], cl
je 0x4df36b
test al, al
mov al, 1
jne 0x4df36d
mov al, bl
push eax
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004dbdb5
test byte [eax], 0x40
jne 0x4df39c
mov eax, dword [ebp - 8]
mov byte [esi + 0x18c], 1
cmp byte [esi + 0x18f], al
jne 0x4df42c
mov byte [edi], 1
jmp 0x4df42c
mov ax, word [esi + 0x190]
cmp ax, word [esi + 0x158c]
jne 0x4df411
mov ax, word [esi + 0x192]
cmp ax, word [esi + 0x158e]
jne 0x4df411
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x1a4]
cmp eax, dword [esi + 0x1a0]
jbe 0x4df42c
mov ecx, dword [esi + 0xfc]
call fcn.0041f0e5
test al, al
jne 0x4df409
cmp byte [ebp - 8], bl
je 0x4df3f5
cmp byte [esi + 0x18f], bl
je 0x4df3f5
mov byte [esi + 0x18c], 1
jmp 0x4df41e
cmp byte [ebp - 3], bl
je 0x4df409
cmp byte [esi + 0x18c], bl
je 0x4df407
cmp byte [ebp - 1], bl
jne 0x4df409
mov bl, 1
mov byte [esi + 0x18c], bl
jmp 0x4df421
mov al, byte [ebp - 3]
mov byte [esi + 0x18c], al
test al, al
je 0x4df421
mov byte [edi], 1
xor ebx, ebx
inc ebx
jmp 0x4df42c
mov byte [esi + 0x18c], bl
mov al, byte [esi + 0x18c]
cmp al, byte [esi + 0x18d]
je 0x4df44f
mov ecx, dword [esi + 0xfc]
call fcn.0041f0e5
test al, al
jne 0x4df44f
xor ebx, ebx
mov byte [edi], 1
inc ebx
mov cl, byte [esi + 0x18c]
pop edi
test cl, cl
je 0x4df465
mov eax, dword [ebp - 8]
xor al, 1
mov byte [esi + 0x18f], al
test ebx, ebx
mov byte [esi + 0x18d], cl
pop ebx
je 0x4df47c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1a4], eax
cmp byte [ebp - 4], 0
je 0x4df49d
mov ecx, esi
call fcn.004e1992
test eax, eax
je 0x4df49d
push esi
push 0x4df939
push 2
call fcn.004d37e8
add esp, 0xc
pop esi
leave
ret 4