Function at 0x414fa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3601
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x645154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0
call fcn.005a17c3
lea eax, [ebp - 0x28]
push 0xb
push eax
call fcn.005a0a89
add esp, 8
cmp word [ebp - 0x28], 0
jne 0x414ffb
xor ecx, ecx
jmp 0x415010
lea ecx, [ebp - 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415001
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00407228
mov dword [ebp - 0xf8], 0x5db094
mov dword [ebp - 0xe8], 0x5db09c
push 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 1
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x94], 0x50
movlpd qword [ebp - 0xf0], xmm0
call fcn.004122b0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xec], eax
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xfc], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea eax, [ebp - 0xe0]
mov ecx, eax
mov dword [ebp - 0x48], eax
call fcn.0040e870
mov dword [ebp - 0xe0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 4], 7
jne 0x415149
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0xe8]
mov dword [edi + 0x10], eax
call fcn.0042dfc0
jmp 0x415181
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x10]
lea ecx, [ebp - 0xe8]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5db4c0]
divsd xmm0, qword [0x5db4b8]
movsd qword [esp], xmm0
call fcn.004145e0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00412f80
mov edi, eax
cmp esi, edi
je 0x4151d0
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4151a9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040745d
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4151c1
mov eax, dword [esi]
jmp 0x4151c3
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00407b5a
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4151e5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040745d
lea ecx, [ebp - 0x90]
call fcn.0040ee80
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 9
push eax
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.00598183
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00595c5d
mov esp, ebp
pop ebp
ret 8