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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov r13, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x78], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x60]
mov rcx, r13
call rdi
xor r15d, r15d
test al, al
je 0x140002757
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x50], rdi
nop word [rax + rax]
call fcn.140017a80
test al, al
je 0x1400023a0
mov dword [rsp + 0x74], ebx
xor ebp, ebp
jmp 0x1400023d1
mov ecx, ebx
lea rdx, [rsp + 0x74]
call fcn.140017ba0
mov ebp, 0xffffffff
test al, al
je 0x1400023d1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [rsp + 0x74]
mov ecx, ebp
sub ebp, eax
sub eax, ebx
sub ecx, ebx
cmp eax, ecx
mov eax, 0
cmova ebp, eax
call fcn.140017f30
mov r14, rax
movsxd rdi, dword [rax + 0x200]
mov rax, qword [0x1400c5018]
cmp rax, 0xffffffffffffffff
je 0x140002420
cmp edi, 0x40
jb 0x140002412
lea rcx, str.extra_base___MAXIMUM_WAIT_OBJECTS
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_windows_cliloop.c
mov r8d, 0x27
call fcn.14007b7e4
mov rax, qword [0x1400c5018]
mov qword [r14 + rdi*8], rax
mov rsi, rdi
add rdi, 1
jmp 0x140002427
mov rsi, 0xffffffffffffffff
mov rax, qword [rsp + 0x60]
lea rbx, [rax + rdi]
cmp rbx, 0x40
jb 0x140002454
lea rcx, str.total_handles___MAXIMUM_WAIT_OBJECTS
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_windows_cliloop.c
mov r8d, 0x2c
call fcn.14007b7e4
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140002478
lea rax, [r14 + rdi*8]
xor ecx, ecx
nop
mov rdx, qword [rsp + 0x68]
mov rdx, qword [rdx + rcx*8]
mov qword [rax + rcx*8], rdx
add rcx, 1
cmp rcx, qword [rsp + 0x60]
jb 0x140002460
mov ecx, ebx
mov rdx, r14
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12d, eax
mov rbp, qword [rsp + 0x60]
cmp eax, dword [r14 + 0x200]
jae 0x1400024b0
mov rcx, r14
mov edx, r12d
call fcn.140018010
mov rdi, qword [rsp + 0x38]
jmp 0x1400025b9
cmp qword [0x1400c5018], 0xffffffffffffffff
mov eax, r12d
je 0x140002510
cmp rsi, rax
jne 0x140002510
lea rbx, [rsp + 0x5c]
mov rcx, rbx
call fcn.140013fc0
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x48], rbp
je 0x14000252b
xor esi, esi
mov rdi, qword [rsp + 0x38]
nop word cs:[rax + rax]
nop dword [rax + rax]
add esi, 1
mov rcx, rbx
call fcn.140013ff0
cmp rax, 0xffffffffffffffff
jne 0x1400024f0
jmp 0x140002532
cmp rdi, rax
ja 0x1400024a5
lea rcx, [rdi + rbp]
mov rdx, rax
sub rdx, rdi
cmp rcx, rax
cmova rbp, rdx
jmp 0x1400024a5
xor esi, esi
mov rdi, qword [rsp + 0x38]
mov r9d, esi
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 8
mov rcx, r15
lea rdx, [rsp + 0x78]
call fcn.140016220
mov r15, rax
mov rcx, rbx
call fcn.140013fc0
cmp rax, 0xffffffffffffffff
je 0x1400025af
mov rsi, 0xffffffffffffffff
mov ecx, 1
lea rbx, [rsp + 0x5c]
nop dword [rax + rax]
mov rbp, rcx
mov qword [r15 + rsi*8 + 8], rax
mov rcx, rbx
call fcn.140013ff0
add rsi, 1
lea rcx, [rbp + 1]
cmp rax, 0xffffffffffffffff
jne 0x140002580
mov r13, r15
cmp rsi, 0xffffffffffffffff
lea rsi, [rsp + 0x80]
jne 0x1400025ea
mov r13, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
call fcn.140017a20
cmp r12d, 0x102
jne 0x140002710
mov ebx, dword [rsp + 0x74]
jmp 0x140002718
add r13, 8
add rbp, 0xffffffffffffffff
je 0x1400025af
mov rbx, qword [r13]
mov rcx, rbx
xor edx, edx
mov r8, rsi
call qword [0x1400c6010]
test eax, eax
jne 0x1400025e0
mov ecx, 1
mov edx, ebx
call fcn.140006a90
mov eax, dword [rsp + 0x80]
test al, 0x10
jne 0x140002634
test al, 1
jne 0x140002657
test al, 0x20
jne 0x14000267a
test al, 4
jne 0x14000269d
test al, 2
jne 0x1400026c4
test al, 8
je 0x1400025e0
jmp 0x1400026eb
mov eax, dword [rsp + 0x94]
shl eax, 0x10
or eax, 0x10
movsxd rdx, eax
mov rcx, rbx
call fcn.140013960
mov eax, dword [rsp + 0x80]
test al, 1
je 0x14000261b
mov eax, dword [rsp + 0x84]
shl eax, 0x10
or eax, 1
movsxd rdx, eax
mov rcx, rbx
call fcn.140013960
mov eax, dword [rsp + 0x80]
test al, 0x20
je 0x14000261f
mov eax, dword [rsp + 0x98]
shl eax, 0x10
or eax, 0x20
movsxd rdx, eax
mov rcx, rbx
call fcn.140013960
mov eax, dword [rsp + 0x80]
test al, 4
je 0x140002623
mov eax, dword [rsp + 0x8c]
shl eax, 0x10
or eax, 4
movsxd rdx, eax
mov rcx, rbx
call fcn.140013960
mov eax, dword [rsp + 0x80]
test al, 2
je 0x14000262b
mov eax, dword [rsp + 0x88]
shl eax, 0x10
or eax, 2
movsxd rdx, eax
mov rcx, rbx
call fcn.140013960
mov eax, dword [rsp + 0x80]
test al, 8
je 0x1400025e0
mov eax, dword [rsp + 0x90]
shl eax, 0x10
or eax, 8
movsxd rdx, eax
mov rcx, rbx
call fcn.140013960
jmp 0x1400025e0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rcx, r14
call fcn.140018080
mov rcx, r13
mov rdx, rbp
call rdi
test al, al
je 0x140002757
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov rcx, r13
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x60]
call qword [rsp + 0x50]
test al, al
jne 0x140002380
mov rcx, r15
call fcn.140016210
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14006cf60
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret