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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1ffc0]
mov eax, 0x200c0
call fcn.1400decd0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x200f0], rbx
mov qword [rsp + 0x200f8], rsi
mov qword [rsp + 0x20100], rdi
mov rdi, r8
mov rbx, rdx
mov r15, rcx
mov r12, qword [0x1401386c0]
mov rcx, r8
call fcn.14000f010
mov rcx, rdi
test al, al
je 0x140057d5b
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400cc568
jmp 0x140057d60
call fcn.1400cc174
mov rsi, rax
cmp rax, 1
jge 0x140057d86
mov rax, qword [0x14012fa58]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, r15
call fcn.140040b90
jmp 0x140058093
lea rax, vtable.TextStream.0
mov qword [rsp + 0x30], rax
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov ecx, dword [0x14013a440]
cmp ecx, 0xffffffff
je 0x140057dd9
mov dword [rsp + 0x44], ecx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rsp + 0x4e]
test eax, eax
cmove ecx, r13d
mov byte [rsp + 0x4e], cl
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x14012fa58]
mov r9d, dword [rax + 0x13c]
btr r9d, 0x1f
mov r8d, 0x30c
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400a3f80
test al, al
jne 0x140057e2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14012fa58]
mov dword [rcx + 0x40], eax
mov dl, 1
jmp 0x140057ffa
mov r14d, dword gs:[0x48]
mov rdi, r13
test rsi, rsi
jle 0x140057f6c
nop dword [rax]
nop dword [rax + rax]
mov r9d, 1
mov r8d, 0xffff
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400a4130
mov ebx, eax
test eax, eax
je 0x140057ed5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14013a19c]
mov rcx, qword [0x14012fa58]
cmp eax, dword [rcx + 0x118]
jbe 0x140057ec8
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140057ebc
cmp dword [0x140139538], r14d
jne 0x140057ebc
mov edx, 1
or ecx, 0xffffffff
call fcn.1400018b0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14013a19c], eax
inc rdi
cmp rdi, rsi
jl 0x140057e50
jmp 0x140057f72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14012fa58]
mov dword [rcx + 0x40], eax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x140057f0e
cmp qword [rsp + 0x60], 0
jne 0x140057f0e
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r13d
mov word [rsp + 0x5c], r13w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [0x14012fa58]
lea rdx, [0x14010c7dc]
cmp byte [rax + 0x150], 0
jne 0x140057f55
mov byte [rsp + 0x20], 1
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rcx, qword [0x140134400]
call fcn.1400ab090
jmp 0x140058002
lea r9, [0x140117ad8]
xor r8d, r8d
mov rcx, r15
call fcn.140040a70
jmp 0x140058002
mov ebx, dword [rbp + 0x20008]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x140057f9b
cmp qword [rsp + 0x60], 0
jne 0x140057f9b
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x3c], r13d
mov word [rsp + 0x5c], r13w
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test ebx, ebx
je 0x140057fce
lea edx, [rbx - 1]
cmp word [rbp + rdx*2 - 0x40], 0xa
cmove ebx, edx
test ebx, ebx
je 0x140057fce
mov r8d, ebx
xor r9d, r9d
lea rdx, [rbp - 0x40]
jmp 0x140057fd7
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov byte [rsp + 0x20], 1
mov rcx, r12
call fcn.1400ab090
test eax, eax
jne 0x140057fed
mov ebx, r13d
jmp 0x140058004
mov rax, qword [0x14012fa58]
mov dword [rax + 0x40], r13d
xor edx, edx
mov rcx, r15
call fcn.140040b90
mov ebx, eax
lea rax, vtable.TextFile.0
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x140058037
cmp qword [rsp + 0x60], 0
jne 0x140058037
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [str._K_n_]
mov dword [rsp + 0x3c], r13d
mov word [rsp + 0x5c], r13w
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140058067
mov eax, dword [rsp + 0x38]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14005805e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0xffffffffffffffff
lea rax, vtable.TextStream.0
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140058091
xor eax, eax
mov ecx, 0x2000
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x68]
call fcn.1400cc1a0
nop
mov eax, ebx
lea r11, [rsp + 0x200c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret