Function at 0x14005d390
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push r14
push r15
mov eax, 0x1130
call fcn.1400bb2b0
sub rsp, rax
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x1158], rbx
mov qword [rsp + Ordinal_4449], rsi
mov qword [rsp + 0x1168], rdi
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rsp + reloc.mfc110u.dll_Ordinal_4384], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x38], r15
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWARESiemensSWSCommonDataHistory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005d44c
mov dword [rsp + 0x64], 0xa
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0x64]
call fcn.1400bb178
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.History
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14005d492
mov dword [rsp + 0x60], reloc.OLEAUT32.dll_SafeArrayLock
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0x60]
call fcn.1400bb178
cmp dword [rsp + 0x50], 3
je 0x14005d4b2
mov dword [rsp + 0x68], reloc.WS2_32.dll_setsockopt
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0x68]
call fcn.1400bb178
mov ebx, dword [rsp + 0x44]
mov ecx, ebx
call qword [sym.imp.MSVCR110.dll_malloc]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14005d4cd
call sub.mfc110u.dll_Ordinal_2292
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.History
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14005d515
mov dword [rsp + 0x70], reloc.WS2_32.dll_shutdown
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0x70]
call fcn.1400bb178
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x78]
call fcn.1400abf20
nop
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1400acc00
lea rcx, [rdi + 0x38]
call fcn.1400467a0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x78]
call fcn.1400ac160
mov qword [rsp + 0xe8], 7
mov qword [rsp + 0xe0], r15
mov word [rsp + 0xd0], r15w
mov r14d, r15d
movabs r12, 0x1f81f81f81f81e
cmp r14d, dword [rsp + 0x6c]
jae 0x14005d6b9
mov word [rsp + 0xf0], r15w
lea r8, [0x1400d4f98]
mov edx, 6
lea rcx, [rsp + reloc.mfc110u.dll_Ordinal_2290]
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
mov qword [rsp + 0x900], r15
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.1400ac2d0
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x910]
call fcn.1400019a0
lea rcx, [rsp + 0x910]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14005d600
cmp rax, 0x401
jae 0x14005d648
lea r8, [rsp + 0x910]
mov edx, Ordinal_1027
lea rcx, [rsp + 0xf0]
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea r8, [rsp + 0x1112]
mov edx, 6
lea rcx, [rsp + reloc.mfc110u.dll_Ordinal_2290]
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x78]
call fcn.1400ac220
mov eax, dword [rsp + 0x54]
mov qword [rsp + 0x900], rax
mov rbx, qword [rdi + 0x38]
lea r9, [rsp + 0xf0]
mov r8, qword [rbx + 8]
mov rdx, rbx
lea rcx, [rdi + 0x38]
call fcn.14005cf40
mov rdx, rax
mov rax, qword [rdi + 0x40]
mov rcx, r12
sub rcx, rax
cmp rcx, 1
jae 0x14005d69f
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
inc rax
mov qword [rdi + 0x40], rax
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
inc r14d
jmp 0x14005d582
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x78]
call fcn.1400ac220
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x78]
call fcn.1400ac220
lea rcx, [rsp + 0x78]
call fcn.1400acc60
mov rcx, rax
call qword [sym.imp.MSVCR110.dll_free]
mov dword [rsp + 0x30], r15d
cmp qword [rsp + 0xe8], 8
jb 0x14005d707
mov rcx, qword [rsp + 0xd0]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0xe8], 7
mov qword [rsp + 0xe0], r15
mov word [rsp + 0xd0], r15w
lea rcx, [rsp + 0x78]
call fcn.1400abfb0
nop
jmp 0x14005d736
jmp 0x14005d73d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + gethostname]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + reloc.mfc110u.dll_Ordinal_4384]
xor rcx, rsp
call fcn.1400bb310
lea r11, [rsp + 0x1130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret