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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov edi, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0xb8], eax
mov eax, dword [edi]
xor edx, edx
mov esi, eax
neg esi
mov esi, dword [edi + 4]
sbb edx, esi
jge 0x4ed55f
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
mov dword [esp + 0x50], 0xffffffff
mov byte [esp + 0x40], 0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0xa0], xmm0
mov byte [esp + 0x60], 0
lea edi, [esp + 0x68]
pxor xmm0, xmm0
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x78], xmm0
movdqu xmmword [esp + 0x88], xmm0
movdqu xmmword [esp + 0x98], xmm0
mov dword [esp + 0x1c], ecx
cmp byte [ecx + 4], 0
jne 0x4ed573
not eax
xor esi, 0x7fffffff
or esi, eax
je 0x4ed52e
mov ecx, dword [0x5f5104]
cmp ecx, 0x50efc0
jne 0x4ed4f7
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp eax, 0x7bd05af7
mov ecx, esi
sbb ecx, 0x863
jl 0x4ed626
mov edi, dword [0x6c02b0]
mov ecx, dword [0x6c02b4]
mov dword [esp + 8], ecx
push ecx
push edi
push esi
push eax
mov dword [esp + 0x1c], eax
call fcn.00517110
mov ebx, eax
mov dword [esp + 0x18], esi
mov esi, edx
mul edi
mov ecx, edi
mov dword [esp + 0x10], edi
mov edi, ebx
imul edi, dword [esp + 8]
add edx, edi
imul edi, esi, 0xf4240
mov dword [esp + 0x14], edi
imul esi, ecx
add esi, edx
mov ecx, dword [esp + 0xc]
sub ecx, eax
mov edi, dword [esp + 0x18]
sbb edi, esi
mov edx, 0xf4240
mov eax, ebx
mul edx
mov ebx, 0xf4240
mov dword [esp + 0xc], eax
mov esi, edx
add esi, dword [esp + 0x14]
mov eax, ecx
mul ebx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esp + 8]
push dword [esp + 0x14]
push edx
push eax
call fcn.00517110
add eax, dword [esp + 0xc]
adc edx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov ecx, dword [ebp + 8]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, 0xffffffff
add ecx, edi
mov esi, 0x7fffffff
mov dword [esp + 8], ebx
adc esi, ebx
add ecx, 2
adc esi, 0
cmp ecx, 2
sbb esi, 0
jb 0x4ed5d4
add eax, edi
adc edx, dword [esp + 8]
seto cl
mov esi, edx
sar esi, 0x1f
lea ebx, [esi - 0x80000000]
test cl, cl
cmove esi, eax
mov dword [esp + 0x10], esi
test cl, cl
cmove ebx, edx
mov dword [esp + 0xc], ebx
mov ecx, edi
cmp edi, 1
mov eax, dword [esp + 8]
mov esi, eax
sbb eax, 0
jl 0x4ed4bc
mov edi, ecx
mov eax, ecx
mov ecx, 0xffffffff
xor eax, ecx
mov ecx, esi
mov edx, 0x7fffffff
xor ecx, edx
or ecx, eax
je 0x4ed54d
push 0
push 0x3e8
push esi
push edi
call fcn.00539110
mov ecx, eax
mov dword [esp + 8], esi
mov esi, edx
mov edx, 0x3e8
mul edx
imul ebx, esi, 0x3e8
add ebx, edx
cmp eax, edi
sbb ebx, dword [esp + 8]
adc ecx, 0
adc esi, 0
jne 0x4ed557
push ecx
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
sete cl
shl ecx, 2
test eax, eax
mov eax, 1
cmove ecx, eax
test cl, 1
jne 0x4ed4c1
mov ecx, dword [0x5f5104]
cmp ecx, 0x50efc0
jne 0x4ed511
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp eax, 0x7bd05af7
mov ecx, esi
sbb ecx, 0x863
jl 0x4ed64d
mov edx, dword [0x6c02b0]
mov dword [esp + 8], edx
mov ecx, dword [0x6c02b4]
push ecx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
push edx
push esi
push eax
mov dword [esp + 0x24], eax
call fcn.00517110
mov edi, eax
mov dword [esp + 0x24], esi
mov esi, edx
mov ecx, eax
imul ecx, ebx
mov ebx, dword [esp + 8]
mul ebx
add edx, ecx
imul ecx, esi, 0xf4240
mov dword [esp + 0x20], ecx
imul esi, ebx
add esi, edx
mov ebx, dword [esp + 0x14]
sub ebx, eax
mov ecx, dword [esp + 0x24]
sbb ecx, esi
mov eax, edi
mov edi, 0xf4240
mul edi
mov dword [esp + 0x14], eax
mov esi, edx
add esi, dword [esp + 0x20]
mov eax, ebx
mul edi
imul ecx, ecx, 0xf4240
add edx, ecx
push dword [esp + 0x18]
push dword [esp + 0xc]
push edx
push eax
call fcn.00517110
add eax, dword [esp + 0x14]
adc edx, esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov eax, dword [esp + 0xc]
sbb eax, edx
seto cl
mov edx, eax
sar edx, 0x1f
test cl, cl
cmovne esi, edx
add edx, 0x80000000
test cl, cl
cmove edx, eax
mov ecx, esi
mov eax, esi
neg eax
mov eax, 0
mov esi, edx
sbb eax, edx
jl 0x4ed33a
mov ecx, 2
cmp ecx, 2
setne bl
cmp byte [esp + 0x60], 0
jne 0x4ed5b8
cmp byte [esp + 0x40], 0
jne 0x4ed5c6
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call dword [section..00cfg]
lea esi, [esp + 0x28]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4ed2d4
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
jmp 0x4ed483
mov ecx, 0xffffffff
mov esi, 0x7fffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0x7fffffff
jmp 0x4ed33a
mov ecx, 0xffffffff
jmp 0x4ed38d
xor ecx, ecx
dec ecx
jmp 0x4ed38d
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
jmp 0x4ed4dd
lea esi, [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
lea ecx, [esp + 0x40]
push esi
call fcn.005984a0
push 0x58
push str....._base_synchronizationwaitable_event_win.cc
push str.TimedWait
push esi
call fcn.004fdcd0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004fa770
mov byte [esp + 0x60], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
jmp 0x4ed1ea
lea ecx, [esp + 0x68]
call fcn.00508f70
jmp 0x4ed4d2
lea ecx, [esp + 0x44]
call fcn.00508eb0
jmp 0x4ed4dd
mov ebx, 0xffffffff
add ebx, eax
mov esi, 0x7fffffff
adc esi, edx
add ebx, 2
adc esi, 0
mov dword [esp + 0x10], 0
xor ecx, ecx
inc ecx
cmp ecx, ebx
sbb dword [esp + 0x10], esi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
jb 0x4ed326
xor eax, edi
mov ecx, dword [esp + 8]
xor edx, ecx
or edx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
je 0x4ed326
int3
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6c02b4]
push dword [0x6c02b0]
push ecx
push eax
call fcn.00517110
jmp 0x4ed2cc
mov ecx, 0xf4240
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6c02b4]
push dword [0x6c02b0]
push ecx
push eax
call fcn.00517110
jmp 0x4ed483