Function at 0x10042bdb0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x390
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x380], rax
xor ebx, ebx
mov dword [rsp + 0x28], 0x80
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov rdx, qword [0x1004a1cf0]
mov ecx, dword [0x1004a1be0]
mov qword [rsp + 0x68], rdx
lea rdi, [rdx + 0x568]
mov qword [rsp + 0x40], rdi
test rdx, rdx
je 0x10042be26
test ecx, ecx
je 0x10042be2b
mov qword [rsp + 0x68], rbx
mov rax, rdx
test rdx, rdx
je 0x10042be3b
test ecx, ecx
lea rcx, [rdx + 0x10]
je 0x10042be3e
mov rcx, rbx
lea r15, [rsp + 0x170]
mov dword [rcx + 4], ebx
sub r15, rcx
mov dword [rsp + 0x24], ebx
mov r13d, ebx
mov qword [rsp + 0x38], rcx
sub r15, 8
lea rbx, [0x100477840]
lea rax, str.SQLAgent:Jobs
mov qword [rsp + 0x60], r15
lea r12, [rcx + 0x10c]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r12
nop word [rax + rax]
mov rcx, qword [rax]
lea rdx, [rsp + 0x170]
call fcn.10042bcf0
test eax, eax
je 0x10042c0d4
lea ecx, [r13*2]
mov dword [rdi + 0xc], r13d
lea r10, [0x100400000]
mov dword [rdi + 0x14], r13d
lea eax, [rcx + 1]
xor r8d, r8d
mov ebp, dword [r10 + rax*4 + 0x77890]
lea r14, [rdi + 0x40]
sub ebp, dword [r10 + rcx*4 + 0x77890]
mov esi, 0x40
add ebp, 1
mov dword [rsp + 0x30], ebp
je 0x10042bfd0
mov r15, qword [rsp + 0x38]
xor edi, edi
mov r12d, dword [rsp + 0x20]
mov r13d, ebp
mov ebp, r8d
nop dword [rax]
mov r9d, 0x7f
mov ebx, r12d
shl rbx, 5
lea rcx, [r14 + 0x28]
lea edx, [r9 + 1]
mov r8, qword [rbx + r10 + 0x99040]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov dword [r14 + 4], r12d
lea r10, [0x100400000]
mov dword [r14 + 0xc], r12d
add ebp, 8
mov dword [r14], 0x28
mov dword [r14 + 8], edi
mov dword [r14 + 0x10], edi
mov eax, dword [rbx + r10 + 0x9904c]
mov dword [r14 + 0x18], eax
mov eax, dword [rbx + r10 + 0x99048]
mov dword [r14 + 0x1c], eax
mov eax, dword [rbx + r10 + 0x99054]
mov dword [r14 + 0x20], eax
mov eax, dword [rbx + r10 + 0x99050]
mov dword [r14 + 0x14], eax
lea eax, [rsi + 0x28]
mov dword [r14 + 0x24], ebp
mov edx, dword [rbx + r10 + 0x99058]
mov ecx, edx
mov dword [r14 + 0x128], edx
and ecx, dword [r15 + 4]
cmp ecx, edx
cmovne eax, esi
inc r12d
add r14, 0x130
mov esi, eax
sub r13, 1
jne 0x10042bf00
mov rdi, qword [rsp + 0x40]
xor r8d, r8d
mov ebp, dword [rsp + 0x30]
mov r15, qword [rsp + 0x60]
mov r13d, dword [rsp + 0x24]
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x20], r12d
mov r12, qword [rsp + 0x58]
mov eax, dword [rbx]
mov dword [rdi], esi
mov dword [rdi + 4], esi
mov dword [rdi + 8], 0x40
mov dword [rdi + 0x10], r8d
mov qword [rdi + 0x18], 0
mov dword [rdi + 0x20], ebp
mov dword [rdi + 0x28], eax
mov dword [rdi + 0x2c], r8d
cmp eax, 0xffffffff
jne 0x10042c007
lea eax, [rbp*8 + 0xf]
add eax, esi
and eax, 0xfffffff8
mov dword [rdi], eax
mov edx, 0x80
lea rax, [r12 - 0x104]
lea rcx, [rdx + 0x7fffff7e]
test rcx, rcx
je 0x10042c037
movzx ecx, word [r15 + rax]
test cx, cx
je 0x10042c037
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x10042c014
lea rcx, [rax - 2]
mov qword [rsp + 0x40], r14
test rdx, rdx
cmovne rcx, rax
mov eax, edi
inc r13d
add rbx, 4
sub r15, 0x110
mov dword [rsp + 0x24], r13d
mov qword [rsp + 0x50], rbx
mov word [rcx], r8w
sub eax, dword [0x1004a1cf0]
mov dword [r12 - 4], eax
sub edi, dword [0x1004a1cf0]
mov rax, qword [rsp + 0x48]
add edi, 0x40
mov dword [r12], edi
add rax, 8
mov qword [r12 + 4], 0xffffffffffffffff
mov rdi, r14
add r12, 0x110
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r15
cmp r13d, 5
jb 0x10042be90
mov rax, qword [rsp + 0x38]
mov dword [rax], 5
mov rax, qword [rsp + 0x68]
sub r14d, dword [0x1004a1cf0]
mov dword [rax + 0xc], r14d
mov eax, 1
jmp 0x10042c0d6
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret