Function at 0x486eec
Capabilities:
Access peb ldr_data
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.00404b04
xor eax, eax
push ebp
push 0x487327
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [0x4d1988]
call fcn.00404914
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00402fc4
mov eax, ebx
call fcn.0041efc8
mov esi, eax
mov eax, dword [0x4d1988]
call fcn.00404914
mov ecx, eax
lea edx, [ebp - 0x17]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x18]
call fcn.004048b8
mov eax, dword [ebp - 0x40]
mov edx, dword [0x4d1988]
call fcn.00404a60
jne 0x4872d6
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
or eax, 3
cmp eax, 3
je 0x486fab
mov ecx, 0x487348
mov dl, 1
mov eax, dword [0x407c10]
call fcn.0040c4ec
call fcn.00403fe4
mov byte [ebp - 0x21], 0
test byte [ebp - 0x1c], 2
je 0x48701e
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
xor edx, edx
push ebp
push 0x486fe2
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x21], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48701e
mov byte [ebp - 0x39], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.0041efc8
cmp edx, dword [esp + 4]
jne 0x487044
cmp eax, dword [esp]
pop edx
pop eax
je 0x487301
xor eax, eax
mov dword [0x4d3c30], eax
mov dword [0x4d3c34], eax
xor eax, eax
mov dword [0x4d3c38], eax
mov dword [0x4d3c3c], eax
test byte [ebp - 0x1c], 1
setne byte [ebp - 0x11]
xor eax, eax
push ebp
push 0x4872cf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x21], 0
je 0x4871af
cmp byte [ebp - 0x11], 0
je 0x4870b3
mov dl, 1
mov eax, dword [0x41a688]
call fcn.00403814
mov dword [ebp - 0x2c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x2c]
call fcn.0041f04c
mov byte [ebp - 0x39], 1
jmp 0x4870b9
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov al, byte [ebp - 0x21]
cmp al, 7
ja 0x4870ca
and eax, 0x7f
bt dword [0x4d3c2c], eax
jae 0x48710b
cmp dword [ebp + 8], 0
jne 0x4870e1
lea eax, [ebp - 0x38]
mov edx, 0x4873d0
call fcn.004046ec
jmp 0x4870ec
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 8]
call fcn.004046ec
mov eax, dword [ebp - 0x38]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov ecx, dword [eax*4 + 0x4d1974]
mov dl, 1
mov eax, dword [0x47e974]
call fcn.0047e9d8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x487127
mov ecx, 0x48741c
mov dl, 1
mov eax, dword [0x407c10]
call fcn.0040c4ec
call fcn.00403fe4
xor eax, eax
push ebp
push 0x48719a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x28]
sbb edx, dword [ecx + 0x2c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fild qword [0x4d3c40]
fdivp st(1)
fstp qword [0x4d3c38]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4871a1
mov eax, dword [ebp - 0x34]
call fcn.00403844
ret
cmp byte [ebp - 0x11], 0
je 0x4871ba
mov dword [ebp - 0x2c], ebx
jmp 0x4871de
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.0041efc8
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041f264
cmp byte [ebp - 0x11], 0
je 0x4872b3
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x47ec84]
call fcn.0047f548
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x48728d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0041f264
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x28]
sbb edx, dword [ecx + 0x2c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fild qword [ebp - 0x48]
fild qword [0x4d3c40]
fdivp st(1)
fstp qword [0x4d3c30]
wait
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487294
mov eax, dword [ebp - 0x30]
call fcn.00403844
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487301
cmp byte [ebp - 0x39], 0
je 0x4872ce
mov eax, dword [ebp - 0x2c]
call fcn.00403844
ret
xor ecx, ecx
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041f264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48732e
lea eax, [ebp - 0x40]
call fcn.00404654
lea eax, [ebp - 0x38]
call fcn.00404654
lea eax, [ebp + 8]
call fcn.00404654
ret