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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x41a527
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x41a529
xor esi, esi
mov dword [edi], esi
push 0x18
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41a548
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x41a54a
xor esi, esi
mov eax, 0x7270e00
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
lea esi, [edi + 0x70]
call fcn.0042af70
lea esi, [edi + 0x498]
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x41a593
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea esi, [edi + 0x4a0]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x41a5a9
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41a5c3
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x41a5c5
xor esi, esi
mov dword [edi + 0x4b0], esi
mov byte [ebp - 4], 3
push 0x14
mov dword [edi + 0x4bc], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x41a719
mov dword [edi + 0x4b8], eax
mov dword [eax], eax
mov eax, dword [edi + 0x4b8]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x4b8]
mov dword [eax + 8], eax
mov ecx, dword [edi + 0x4b8]
mov al, 1
mov byte [ecx + 0x10], al
mov edx, dword [edi + 0x4b8]
mov byte [edx + 0x11], al
mov dword [edi + 0x4e8], ebx
mov dword [edi + 0x4f0], ebx
mov dword [edi + 0x4ec], ebx
mov byte [ebp - 4], 5
mov eax, 0x10000
mov dword [edi + 0x4a8], ebx
mov dword [edi + 0x4ac], ebx
mov dword [edi + 0x4c8], ebx
mov dword [edi + 0x4cc], ebx
mov word [edi + 0x4d0], bx
mov byte [edi + 0x4d2], bl
mov dword [edi + 0x4d4], ebx
mov dword [edi + 0x4d8], ebx
mov dword [edi + 0x4dc], ebx
mov dword [edi + 0x4e0], ebx
mov dword [edi + 0x4e4], ebx
mov dword [edi + 0x4f4], ebx
mov dword [edi + 0x4f8], ebx
cmp dword [edi + 0x4ec], eax
je 0x41a703
call fcn.00505960
mov ecx, eax
mov eax, dword [edi + 0x4f0]
mov dword [ebp + 8], ecx
cmp eax, ebx
jle 0x41a6ad
push eax
mov eax, dword [edi + 0x4e8]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov esi, dword [edi + 0x4e8]
mov eax, dword [edi + 0x4ec]
cmp esi, ebx
je 0x41a6f0
cmp eax, ebx
jle 0x41a6f0
cmp dword [0x60dc44], ebx
je 0x41a6e6
mov ecx, dword [0x60dc48]
lea eax, [ecx + eax + 7]
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
push esi
call fcn.00505a20
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edi + 0x4e8], edx
mov dword [edi + 0x4ec], 0x10000
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5f190c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3