Function at 0x100450870
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13d, edx
mov r14, rcx
xor esi, esi
mov dword [rbp - 0x35], esi
mov ecx, edx
lea r12d, [rsi + 1]
test edx, edx
je 0x100450992
sub ecx, r12d
je 0x10045091b
cmp ecx, r12d
jne 0x100450e0a
lea ecx, [rsi + 0x68]
call fcn.100469314
mov rbx, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x1004508f9
mov rcx, rax
call fcn.100455800
nop
lea rax, vtable.SQLAgentSettings::IniSettingsContainer.0
mov qword [rbx], rax
jmp 0x1004508fc
mov rbx, rsi
mov rcx, qword [r14 + 0xb0]
mov qword [r14 + 0xb0], rbx
test rcx, rcx
je 0x1004509db
mov rax, qword [rcx]
jmp 0x1004509ce
mov ecx, 0x50
call fcn.100469314
mov rdi, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x100450977
lea rax, vtable.SQLAgentSettings::SettingsContainer.0
mov qword [rdi], rax
lea rbx, [rdi + 0x30]
mov qword [rbp - 0x29], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
call fcn.100456970
mov qword [rbx], rax
mov byte [rdi + 0x40], 0
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rax, vtable.SQLAgentSettings::IniFileSettingsContainer.0
mov qword [rdi], rax
lea rax, vtable.SQLAgentSettings::AzureSettingsContainer.0
mov qword [rdi], rax
jmp 0x10045097a
mov rdi, rsi
mov rcx, qword [r14 + 0xb0]
mov qword [r14 + 0xb0], rdi
test rcx, rcx
je 0x1004509db
mov rax, qword [rcx]
jmp 0x1004509ce
mov ecx, 0x68
call fcn.100469314
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1004509b2
mov rcx, rax
call fcn.100455800
mov rcx, rax
jmp 0x1004509b5
mov rcx, rsi
mov r8, qword [r14 + 0xb0]
mov qword [r14 + 0xb0], rcx
test r8, r8
je 0x1004509e2
mov rax, qword [r8]
mov rcx, r8
mov edx, r12d
mov rax, qword [rax + 0x28]
call qword [case.0x10044bd0b.0]
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x100450e0a
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x10044bd0b.0]
test al, al
je 0x100450e0a
mov edx, 0x104
lea rcx, [r14 + 0x28]
call fcn.100409b40
mov edx, 0x104
lea rcx, [r14 + 8]
call fcn.100409b40
mov rax, qword [r14 + 0x38]
mov dword [rbp - 0x39], eax
lea r8, [r14 + 0x28]
cmp qword [r14 + 0x40], 8
jb 0x100450a32
mov r8, qword [r14 + 0x28]
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 8
jb 0x100450a41
mov rcx, qword [r14 + 0x48]
lea r9, [rbp - 0x39]
mov edx, r12d
call qword [sym.imp.instapi150.dll_GetInstRegPathByName]
test eax, eax
je 0x100450e0a
lea rax, [r14 + 0x28]
cmp qword [r14 + 0x40], 8
jb 0x100450a65
mov rax, qword [r14 + 0x28]
mov rbx, 0xffffffffffffffff
mov rdx, rbx
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x100450a70
lea rcx, [r14 + 0x28]
call fcn.100409b40
mov rax, qword [r14 + 0x18]
mov dword [rbp - 0x39], eax
cmp r13d, 1
jne 0x100450aa6
lea r8d, [r13 + 0x23]
lea rdx, str.SOFTWAREMicrosoftMSSQLServerSetup
lea rcx, [r14 + 8]
call fcn.10040da90
jmp 0x100450adb
lea r8, [r14 + 8]
cmp qword [r14 + 0x20], 8
jb 0x100450ab5
mov r8, qword [r14 + 8]
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 8
jb 0x100450ac4
mov rcx, qword [r14 + 0x48]
lea r9, [rbp - 0x39]
mov edx, 6
call qword [sym.imp.instapi150.dll_GetInstRegPathByName]
test eax, eax
je 0x100450e0a
lea rax, [r14 + 8]
cmp qword [r14 + 0x20], 8
jb 0x100450aea
mov rax, qword [r14 + 8]
mov rdx, rbx
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x100450af0
lea rcx, [r14 + 8]
call fcn.100409b40
mov ecx, 0x30
call fcn.100469314
mov qword [rbp - 0x29], rax
test rax, rax
je 0x100450b27
lea r8, [r14 + 0x28]
mov rcx, rax
call fcn.10044d740
xor r13d, r13d
jmp 0x100450b2d
xor r13d, r13d
mov eax, r13d
mov rcx, qword [r14 + 0xb8]
mov qword [r14 + 0xb8], rax
test rcx, rcx
je 0x100450b4f
mov rax, qword [rcx]
mov edx, r12d
mov rax, qword [rax]
call qword [case.0x10044bd0b.0]
mov ecx, 0x30
call fcn.100469314
mov qword [rbp - 0x29], rax
test rax, rax
je 0x100450b70
lea r8, [r14 + 8]
mov rcx, rax
call fcn.10044d740
jmp 0x100450b73
mov rax, r13
mov rcx, qword [r14 + 0xc0]
mov qword [r14 + 0xc0], rax
test rcx, rcx
je 0x100450b95
mov rax, qword [rcx]
mov edx, r12d
mov rax, qword [rax]
call qword [case.0x10044bd0b.0]
lea rsi, [r14 + 0x68]
mov edx, reloc.ODBC32.dll_SQLFreeStmt
mov rcx, rsi
call fcn.100409b40
mov rax, qword [r14 + 0x78]
mov dword [rbp - 0x31], eax
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x100450bba
mov rcx, qword [rsi]
lea rdx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100450e0a
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x100450be0
mov rax, qword [rsi]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x100450be0
mov rdx, rbx
mov rcx, rsi
call fcn.100409b40
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 8
jb 0x100450c04
mov rcx, qword [r14 + 0x48]
call qword [sym.imp.instapi150.dll_IsDefaultInstanceName]
cmp eax, 1
sete cl
mov byte [r14 + 0xc8], cl
jne 0x100450c46
lea rcx, [r14 + 0x88]
cmp rcx, rsi
je 0x100450e06
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x100450c36
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.10040da90
mov al, 1
jmp 0x100450e0c
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
movdqa xmm1, xmmword [0x100482320]
movdqu xmmword [rbp - 1], xmm1
mov word [rbp - 0x11], r13w
mov dword [rbp - 0x35], r12d
lea rbx, [rsi + 0x10]
mov rdx, qword [rbx]
inc rdx
lea rcx, [rbp - 0x11]
call fcn.10040abf0
cmp qword [rsi + 0x18], 8
jb 0x100450c81
mov rsi, qword [rsi]
mov rdx, qword [rbx]
mov rcx, qword [rbp - 1]
mov r8, qword [rbp + 7]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x100450cc3
lea rdi, [rcx + rdx]
mov qword [rbp - 1], rdi
lea rbx, [rbp - 0x11]
cmp r8, 8
cmovae rbx, qword [rbp - 0x11]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x100450cd4
mov qword [rsp + 0x20], rdx
mov r9, rsi
lea rcx, [rbp - 0x11]
call fcn.10040c250
mov rcx, qword [rbp - 1]
mov rdx, qword [rbp + 7]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x100450d1a
lea rdi, [rcx + 1]
mov qword [rbp - 1], rdi
lea rbx, [rbp - 0x11]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x11]
lea rcx, [rbx + rcx*2]
mov r8d, 2
lea rdx, [0x100471a58]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
jmp 0x100450d32
mov qword [rsp + 0x20], r12
lea r9, [0x100471a58]
mov rdx, r12
lea rcx, [rbp - 0x11]
call fcn.10040c250
lea r8, [r14 + 0x48]
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.10042d6a0
nop
lea rcx, [r14 + 0x88]
mov rdx, rax
call fcn.10040b4c0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x100450d97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100450d92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100450d92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], r13w
and r12d, 0xfffffffe
mov dword [rbp - 0x35], r12d
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x100450df4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100450def
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100450def
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], r13w
mov al, 1
jmp 0x100450e0c
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret