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

Disassembly:
sub esp, 0x90
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x41e06c
xor eax, eax
pop esi
add esp, 0x90
ret 0x10
mov eax, dword [0x81e348]
mov ecx, dword [0x81e34c]
add eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
lea eax, [esp + 0xc]
push edi
mov edi, dword [esi]
add ecx, ecx
push eax
mov dword [esp + 0x18], ecx
push 0x81e360
push 2
mov edx, 0x81e370
lea ecx, [esp + 0x5c]
call fcn.0041c4e0
mov edx, dword [edi]
push eax
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call dword [edx + 0xc0]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.00416400
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.00416400
mov edx, eax
lea ecx, [esp + 0x6c]
call fcn.00416400
mov ecx, dword [0x81e374]
mov eax, dword [0x81e370]
mov edi, dword [esi]
add ecx, ecx
add eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov edx, dword [edi]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x60]
push ecx
push eax
mov ecx, edi
call dword [edx + 0xc0]
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00416400
mov edx, dword [edi]
push eax
push 0x81e370
lea eax, [esp + 0x60]
push 2
push eax
mov ecx, edi
call dword [edx + 0xc0]
mov edx, eax
lea ecx, [esp + 0x5c]
call fcn.0041b6c0
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00416400
mov edx, eax
lea ecx, [esp + 0x7c]
call fcn.0041e030
push eax
lea ecx, [esp + 0x40]
call fcn.0041b6f0
lea edi, [esi + 0x24]
lea ecx, [esp + 0x38]
push edi
call fcn.00406fe0
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0041d790
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x2c]
call fcn.00407060
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x80]
push edx
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi]
lea ecx, [esp + 0x80]
push 0
push ecx
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
mov ebx, dword [esi]
mov dword [edi], eax
mov dword [edi + 4], ebp
mov ecx, dword [0x81e374]
mov eax, dword [0x81e370]
add ecx, ecx
add eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov edx, dword [ebx]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x78]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0xc0]
mov edx, eax
lea ecx, [esp + 0x74]
call fcn.00416400
mov edx, dword [ebx]
push eax
push 0x81e370
lea eax, [esp + 0x68]
push 2
push eax
mov ecx, ebx
call dword [edx + 0xc0]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.0041b6c0
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.00416400
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.0041e030
push eax
lea ecx, [esp + 0x40]
call fcn.0041b6f0
push edi
lea ecx, [esp + 0x3c]
call fcn.00406fe0
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.0041d790
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00407060
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edi
lea edx, [esp + 0x28]
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi]
lea ecx, [esp + 0x80]
push 0
push ecx
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x6c]
xor edi, edi
cdq
sub eax, edx
sar eax, 1
cmp ebp, eax
jg 0x41e2df
mov edi, 1
jmp 0x41e32b
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.00406fc0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
sub ecx, eax
sub ecx, edx
cmp ebp, ecx
jl 0x41e32b
mov edi, 2
mov eax, dword [esi + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, eax
je 0x41e344
test edi, edi
je 0x41e341
call ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41e394
mov edi, dword [esi + 0x40]
call ebx
mov ecx, eax
mov eax, 0x899c0f61
sub ecx, edi
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
je 0x41e394
lea edx, [ecx + ecx*8]
lea eax, [ecx + edx*4]
lea edx, [edi + eax*8]
add eax, edx
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x40], eax
xor eax, eax
cmp edx, 1
setne al
test ecx, ecx
mov edi, eax
jle 0x41e394
mov ebx, ecx
push 0
push edi
mov ecx, esi
call fcn.0041e730
dec ebx
jne 0x41e387
mov al, byte [esi + 0x36]
pop edi
pop ebp
pop ebx
test al, al
jne 0x41e3bf
mov al, byte [esi + 0x34]
test al, al
jne 0x41e3bf
mov eax, dword [esp + 0x9c]
pop esi
and al, 4
neg al
sbb eax, eax
neg eax
inc eax
add esp, 0x90
ret 0x10
mov eax, dword [esp + 0x9c]
pop esi
and al, 8
neg al
sbb eax, eax
add eax, 2
add esp, 0x90
ret 0x10