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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 0x3e8
push ecx
push edx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov ebp, dword [0x7460c4]
sub eax, dword [ebp + 8]
cmp eax, 0x21
jae 0x544a02
mov edi, dword [0x7460c0]
or edx, 0xffffffff
call fcn.004d0670
mov esi, eax
cmp esi, 0xffffffff
je 0x544c2f
lea ebx, [ebx]
call fcn.00544610
lea ecx, [esi + 1]
or ebp, 0xffffffff
test cx, cx
jl 0x5449f3
mov si, word [edi + 0x2e]
cmp cx, si
jge 0x5449f3
movsx edx, word [edi + 0x22]
mov ebx, dword [edi + 0x34]
movsx eax, cx
imul eax, edx
add eax, ebx
cmp word [eax], 0
jne 0x5449e8
inc ecx
add eax, edx
cmp cx, si
jl 0x5449d8
jmp 0x5449f3
movsx ebp, word [eax]
movsx edx, cx
shl ebp, 0x10
or ebp, edx
cmp ebp, 0xffffffff
mov esi, ebp
jne 0x5449b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0053f250
mov esi, dword [esp + 0x20]
mov ecx, 0x12
mov edi, 0x72517c
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
call fcn.00544d00
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
mov eax, dword [ebp + 4]
jne 0x544a64
cmp eax, edx
mov ebx, dword [0x7460c0]
je 0x544abc
mov edx, dword [ebx + 0x34]
and eax, 0xffff
imul eax, eax, 0x34
mov ecx, dword [eax + edx + 4]
add eax, edx
or ecx, 2
mov dword [eax + 4], ecx
mov dword [ebp + 4], 0xffffffff
jmp 0x544abc
cmp eax, 0xffffffff
je 0x544a9d
mov ebx, dword [0x7460c0]
mov ecx, dword [ebx + 0x34]
and eax, 0xffff
imul eax, eax, 0x34
add eax, ecx
cmp dword [eax + 0xc], edx
je 0x544abc
or dword [eax + 4], 2
push 0x3f800000
or eax, 0xffffffff
call fcn.005445d0
mov edx, dword [0x7460c4]
mov dword [edx + 4], eax
jmp 0x544ab3
push 0x3f800000
or eax, 0xffffffff
call fcn.005445d0
mov ecx, dword [0x7460c4]
mov dword [ecx + 4], eax
mov ebx, dword [0x7460c0]
add esp, 4
or edx, 0xffffffff
mov edi, ebx
call fcn.004d0670
mov ebp, eax
cmp ebp, 0xffffffff
je 0x544be6
mov ecx, dword [ebx + 0x34]
mov esi, ebp
and esi, 0xffff
imul esi, esi, 0x34
mov edi, dword [esi + ecx + 0x10]
add esi, ecx
cmp edi, 0xffffffff
jne 0x544af1
push 0
jmp 0x544b87
test byte [esi + 4], 1
je 0x544b33
push 0xffffffffffffffff
mov ecx, edi
call fcn.004f7060
add esp, 4
test eax, eax
jne 0x544b33
mov edx, dword [esi + 0xc]
mov eax, dword [0x87b7b4]
and edx, 0xffff
shl edx, 5
mov eax, dword [edx + eax + 0x14]
cmp dword [eax + 0x1c], ebp
jne 0x544b28
mov dword [eax + 0x1c], 0xffffffff
mov edx, ebp
mov eax, ebx
call fcn.004d0550
jmp 0x544b96
mov edx, dword [0x85ff50]
mov eax, edi
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ecx*4 + 8]
mov eax, dword [ecx + 0x10]
test ah, 8
je 0x544b96
lea eax, [esp + 0x18]
mov ecx, edi
call fcn.004f6cb0
mov eax, dword [esp + 0x1c]
cmp ax, 0xffff
je 0x544b96
movsx eax, ax
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
sar eax, 5
test dword [eax*4 + 0x746080], edx
je 0x544b96
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.005446b0
mov ebx, dword [0x7460c0]
add esp, 8
lea ecx, [ebp + 1]
or esi, 0xffffffff
test cx, cx
jl 0x544bdb
mov di, word [ebx + 0x2e]
cmp cx, di
jge 0x544bdb
movsx edx, word [ebx + 0x22]
mov ebp, dword [ebx + 0x34]
movsx eax, cx
imul eax, edx
add eax, ebp
lea esp, [esp]
cmp word [eax], 0
jne 0x544bd0
inc ecx
add eax, edx
cmp cx, di
jl 0x544bc0
jmp 0x544bdb
movsx esi, word [eax]
movsx ecx, cx
shl esi, 0x10
or esi, ecx
cmp esi, 0xffffffff
mov ebp, esi
jne 0x544ad1
mov eax, dword [0x7460c4]
mov ebx, dword [eax]
lea edx, [esp + 0x18]
inc ebx
push edx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push 0x3e8
push eax
push ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov edx, dword [0x7460c4]
mov dword [edx + 8], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret