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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4504a8
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4655f0]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push esi
mov eax, dword [0x4655f0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov ecx, edi
call fcn.004101f0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
lea esi, [esp + 0x14]
mov eax, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004173c0
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.004173c0
lea esi, [esp + 0x2c]
mov eax, edi
call fcn.004173c0
cmp byte [edi + 0x18], bl
mov byte [esp + 0xf], 1
je 0x4116c8
cmp byte [esp + 0xf], bl
je 0x411486
xor eax, eax
cmp byte [edi + 0x454], bl
setne al
movzx ecx, word [edi + eax*4 + 0x5a]
mov dword [esp + 0x28], ecx
jmp 0x41149a
xor edx, edx
cmp byte [edi + 0x454], bl
setne dl
movzx eax, word [edi + edx*4 + 0x5c]
mov dword [esp + 0x28], eax
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00417430
movzx eax, word [edi + 0x56]
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x411539
cmp byte [edi + 0x10], bl
je 0x4114f5
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4114f5
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.004101f0
jmp 0x4116b4
lea edx, [esp + 0x44]
push edx
call fcn.004390e3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add esp, 4
push ebx
push 0x3e8
push eax
push ecx
call fcn.0043baf0
mov ecx, eax
movzx eax, word [esp + 0x4c]
mov esi, edx
cdq
add ecx, eax
adc esi, edx
mov dword [esp + 0x14], ecx
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.004101f0
jmp 0x4116b4
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.00417430
movzx eax, word [esp + 0x28]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x411681
cmp byte [edi + 0x10], bl
je 0x41158b
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x41158b
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
jmp 0x4115bf
lea eax, [esp + 0x54]
push eax
call fcn.004390e3
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
add esp, 4
push ebx
push 0x3e8
push ecx
push edx
call fcn.0043baf0
mov ecx, eax
movzx eax, word [esp + 0x5c]
mov esi, edx
cdq
add ecx, eax
adc esi, edx
mov dword [esp + 0x20], esi
mov eax, 0xf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0xd8], eax
push 0xffffffffffffffff
push ebx
lea edx, [edi + 0x84]
mov dword [esp + 0xf8], 3
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], 1
call fcn.00406fe0
movzx eax, word [edi + 0x64]
mov edx, dword [edi + 0x450]
lea ecx, [esp + 0x64]
push ecx
push ebx
push 0x784
push edx
mov dword [esp + 0xe8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x13], bl
mov dword [esp + 0xf4], 0xffffffff
call fcn.0040bd50
jmp 0x4116b4
lea esi, [esp + 0x2c]
mov eax, edi
call fcn.00417430
fmul qword [0x4596a8]
movzx ecx, word [edi + 0x58]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x4116b4
mov eax, edi
call fcn.004173c0
push edi
call fcn.004116f0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 0x18], bl
jne 0x41146a
mov al, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.00437030
mov esp, ebp
pop ebp
ret