Function at 0x41d760
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, 0x68c124
mov edx, 0x4fb760
mov dword [edx], eax
mov cl, byte [eax]
test cl, cl
je 0x41d78c
lea esp, [esp]
movzx ecx, cl
lea eax, [eax + ecx*4]
mov cl, byte [eax]
test cl, cl
jne 0x41d780
movzx ecx, byte [eax + 2]
movzx esi, byte [eax + 1]
sub ecx, esi
add edx, 4
lea eax, [eax + ecx*4 + 8]
cmp edx, 0x5fb760
jl 0x41d771
sub eax, 0x68c120
sar eax, 2
mov dword [0x4714b4], eax
sar eax, 5
mov dword [esp + 0x1c], eax
push edi
mov edi, 0x5ffac0
mov ecx, dword [esp + 0x20]
mov eax, 0xffffffff
rep stosd dword es:[edi], eax
pop edi
mov eax, dword [0x4714b4]
sar eax, 5
mov edx, 0x20000
sub edx, eax
lea eax, [eax*4 + 0x5ffac0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
push edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, 0
rep stosd dword es:[edi], eax
pop edi
mov ecx, dword [0x4714b4]
mov edx, 1
shl edx, cl
sar ecx, 5
mov dword [0x4fb730], 0x41b070
dec edx
xor ebx, ebx
mov dword [ecx*4 + 0x5ffac0], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
xor edi, edi
mov dword [esp + 0x18], edi
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax*4 + 0x4fb760]
jmp 0x41d840
movzx ebp, byte [esi + 1]
movzx ecx, byte [esi + 2]
cmp ebp, ecx
jg 0x41d872
lea esp, [esp]
push edi
mov eax, ebp
mov ecx, ebx
call fcn.0041c2a0
movzx edx, byte [esi + 1]
mov ecx, ebp
sub ecx, edx
mov byte [esi + ecx*4 + 7], al
movzx edx, byte [esi + 2]
inc ebp
add esp, 4
cmp ebp, edx
jle 0x41d850
mov al, byte [esi]
test al, al
je 0x41d92a
movzx ebx, byte [esi + 2]
movzx ecx, byte [esi + 1]
movzx eax, al
movzx edx, byte [esi + eax*4 + 3]
lea edi, [esi + eax*4]
sub ebx, ecx
add ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x18]
add ebx, 2
mov dword [esp + 0x20], edi
test eax, eax
je 0x41d8bb
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41d8bb
cmp eax, 0x1ff
je 0x41d8bb
cmp ecx, 0x1ff
jne 0x41d8ed
cmp ebx, 0x3f
jg 0x41d8ed
cmp ebx, ebp
jle 0x41d8ed
mov ecx, dword [esp + 0x14]
push ebx
push ecx
mov edi, eax
call fcn.0041d490
mov esi, eax
add esp, 4
mov eax, ebp
call fcn.0041a510
add esp, 4
call fcn.0041d3e0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
movzx esi, byte [edi + 3]
cmp ebx, esi
jge 0x41d91b
jmp 0x41d8fb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
mov eax, ebx
call fcn.0041c2a0
mov edx, ebx
sub edx, esi
mov byte [edi + edx*4 + 3], al
movzx esi, byte [edi + 3]
inc ebx
add esp, 4
cmp ebx, esi
jl 0x41d8f7
mov ebx, dword [esp + 0x14]
mov esi, edi
mov edi, dword [esp + 0x18]
jmp 0x41d840
test edi, edi
je 0x41d942
test ebx, ebx
je 0x41d942
cmp edi, 0x1ff
je 0x41d942
cmp ebx, 0x1ff
jne 0x41d967
cmp ebp, 0x3f
jge 0x41d967
push 0x3f
push ebx
call fcn.0041d490
mov esi, eax
add esp, 4
mov eax, ebp
call fcn.0041a510
add esp, 4
call fcn.0041d3e0
mov ebx, dword [esp + 0x14]
inc dword [esp + 0x1c]
inc edi
mov dword [esp + 0x18], edi
cmp edi, 0x200
jl 0x41d830
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, 0x200
jl 0x41d826
lea eax, [esp + 0x20]
push eax
mov dword [0x68bae0], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 0x20]
fld1
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fdivrp st(1)
push 0x4714b8
fstp dword [0x4712a0]
call esi
lea ecx, [esp + 0x20]
push ecx
call esi
mov edx, dword [esp + 0x20]
sub edx, dword [0x4714b8]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x4714bc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
fild qword [esp + 0x20]
pop edi
pop esi
fmul dword [0x4712a0]
pop ebp
pop ebx
fstp dword [0x67fac8]
fldz
fstp dword [0x4fb72c]
add esp, 0x1c
ret