Function at 0x100005a58
Capabilities:
Check for time delay via gettickcount
Get domain controller name

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov r14b, cl
lea r15, [0x100002350]
lea rdx, [0x100002ad0]
xor ecx, ecx
mov r8, r15
mov esi, r13d
mov rbp, r13
mov r12, r13
mov dword [rsp + 0x80], r13d
call fcn.1000074e8
lea rdx, [rsp + 0x88]
lea edi, [r13 + 1]
cmp rdx, r13
jne 0x100005ab7
mov eax, 0x80070057
jmp 0x100005b18
lea r8, [0x100004118]
xor edx, edx
mov ecx, 0x100000
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
cmp rax, r13
je 0x100005af5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
cmp eax, r13d
mov eax, 1
cmove edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
cmp edi, r13d
jne 0x100005b13
lea rdx, [0x100002b40]
mov r8, r15
xor ecx, ecx
call fcn.1000074e8
call fcn.100008a38
mov edi, 1
cmp eax, r13d
mov ebx, 0x42c
cmovge ebx, r13d
cmp ebx, r13d
je 0x100005b66
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100002bc0]
lea r9, [0x100001dcc]
mov dword [rsp + 0x28], eax
cmp r14b, r13b
lea rdx, [0x100002c30]
cmovne r9, rcx
mov r8, r15
mov ecx, edi
mov dword [rsp + 0x20], ebx
call fcn.1000074e8
cmp r14b, r13b
je 0x100005ed8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, qword [0x10000b670]
mov r15d, eax
cmp r9, r13
je 0x100005d40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r9
repne scasw ax, word [rdi]
mov eax, 1
not rcx
cmp rcx, rax
je 0x100005d40
mov al, byte [0x100013f41]
neg al
sbb esi, esi
and esi, 0x3e
add esi, 0x23
cmp qword [0x10000b650], r13
je 0x100005bb9
bts esi, 7
lea r8, [0x100002350]
lea rdx, [0x100002cc0]
xor ecx, ecx
call fcn.1000074e8
mov r9, qword [0x10000b670]
lea r8, [0x100002350]
lea rdx, [0x100002d00]
xor ecx, ecx
call fcn.1000074e8
mov rdx, qword [0x10000b670]
lea rax, [0x100013f90]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 0x1001
call qword [sym.imp.logoncli.dll_DsGetDcNameW]
mov ebx, eax
cmp eax, r13d
je 0x100005c62
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100002350]
lea rdx, [0x100002d50]
mov r9d, ebx
mov ecx, 2
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], eax
call fcn.1000074e8
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x668a0
jb 0x100005bea
cmp ebx, r13d
jne 0x100005edd
mov rax, qword [0x100013f90]
lea r8, [0x100002350]
lea rdx, [0x100002df0]
mov r9, qword [rax]
xor ecx, ecx
add r9, 4
call fcn.1000074e8
mov rdi, qword [0x100013f90]
xor eax, eax
mov rdi, qword [rdi]
or r9, 0xffffffffffffffff
lea r8d, [rax + 1]
mov rcx, r9
repne scasw ax, word [rdi]
mov rdi, qword [0x10000b670]
not rcx
sub rcx, r8
mov rdx, rcx
mov rcx, r9
repne scasw ax, word [rdi]
not rcx
sub rcx, r8
add edx, ecx
add edx, edx
mov ecx, edx
mov edi, edx
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
cmp rax, r13
jne 0x100005ce4
mov ebx, 8
jmp 0x100005edd
mov rax, qword [0x100013f90]
mov r9, qword [0x10000b670]
lea r8, [0x100002e30]
mov rcx, qword [rax]
mov rdx, rdi
add rcx, 4
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.100004714
cmp eax, r13d
jge 0x100005d23
mov ecx, eax
call fcn.1000097ec
mov ebx, eax
jmp 0x100005ed8
lea r8, [0x100002350]
lea rdx, [0x100002e40]
mov r9, r12
xor ecx, ecx
call fcn.1000074e8
mov r13, r12
jmp 0x100005d5f
mov r13, qword [0x10000b690]
lea r8, [0x100002350]
lea rdx, [0x100002e90]
mov r9, r13
xor ecx, ecx
call fcn.1000074e8
mov rdi, qword [0x10000b6b0]
xor edx, edx
cmp rdi, rdx
je 0x100005e0a
or r9, 0xffffffffffffffff
xor eax, eax
lea r8d, [rdx + 1]
mov rcx, r9
repne scasw ax, word [rdi]
not rcx
sub rcx, r8
mov rdx, rcx
je 0x100005e08
mov rdi, qword [0x10000b6d0]
mov rcx, r9
repne scasw ax, word [rdi]
not rcx
sub rcx, r8
add ecx, edx
lea eax, [rcx + rcx + 4]
mov ecx, eax
mov edi, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov dword [rsp + 0x80], 1
mov rbp, rax
xor eax, eax
cmp rbp, rax
jne 0x100005dcf
lea ebx, [rax + 8]
xor r13d, r13d
jmp 0x100005edd
mov rax, qword [0x10000b6d0]
mov r9, qword [0x10000b6b0]
lea r8, [0x100002e30]
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.100004714
xor edx, edx
cmp eax, edx
jge 0x100005e11
mov ecx, eax
call fcn.1000097ec
mov ebx, eax
jmp 0x100005ed5
xor edx, edx
mov rbp, qword [0x10000b6d0]
cmp r14b, dl
je 0x100005e2d
xor r13d, r13d
cmp byte [rsp + 0x78], r13b
je 0x100005ed8
lea ebx, [r13 + 0x1f]
jmp 0x100005ed8
mov edi, 0x8b0
mov al, byte [0x100013f41]
mov rcx, qword [0x10000b6f0]
mov r8, qword [0x10000b710]
cmp al, dl
mov r9, rbp
mov dword [rsp + 0x28], esi
cmovne rcx, qword [0x10000b650]
cmp al, dl
cmovne r9, rdx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov rdx, r13
call sub.wkscli.dll_NetJoinDomain
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x100005efa
lea r8, [0x100002350]
lea ecx, [rax + 2]
cmp ebx, edi
jne 0x100005e9a
lea rdx, [0x100002ed0]
mov r9d, edi
and esi, 0xfffffffd
call fcn.1000074e8
jmp 0x100005ebc
lea rdx, [0x100002fa0]
mov r9d, ebx
mov dword [rsp + 0x20], 5
call fcn.1000074e8
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 0
sub eax, r15d
cmp eax, 0x668a0
jb 0x100005e32
xor r13d, r13d
cmp ebx, r13d
je 0x100005efd
lea r8, [0x100002350]
lea rdx, [0x100003070]
mov r9d, ebx
mov ecx, 1
call fcn.1000074e8
jmp 0x100005f12
xor r13d, r13d
lea r8, [0x100002350]
lea rdx, [0x100003028]
xor ecx, ecx
call fcn.1000074e8
cmp dword [rsp + 0x80], r13d
je 0x100005f2a
cmp rbp, r13
je 0x100005f2a
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
cmp r12, r13
je 0x100005f38
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret