Function at 0x4dc7e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
mov dword [esp + 0xc], eax
mov byte [eax], 0
test ebp, ebp
je 0x4dc814
mov byte [ebp], 0
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.systemcurrentcontrolsetcontrolcomputernamecomputername
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call edi
test esi, esi
jne 0x4dc8d1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push esi
push str.computername
push eax
mov dword [esp + 0x2c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4dc8bf
push eax
call edi
test ebp, ebp
je 0x4dc8b0
push 0x103
lea ecx, [esp + 0x21]
push esi
push ecx
mov byte [esp + 0x28], 0
call fcn.005dfd60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.004d8b50
lea eax, [esp + 0x28]
push eax
push str.Unable_to_read_ComputerName_key__Error:__s
push ebp
call fcn.005dfb23
add esp, 0x18
mov ecx, dword [esp + 0x10]
push ecx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4dc91c
mov ecx, dword [esp + 0x10]
push ecx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4dc91c
push esi
call edi
test ebp, ebp
je 0x4dc91a
push 0x103
lea edx, [esp + 0x21]
push 0
push edx
mov byte [esp + 0x28], 0
call fcn.005dfd60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004d8b50
lea ecx, [esp + 0x28]
push ecx
push str.Unable_to_read_ComputerName_key__Error:__s
push ebp
call fcn.005dfb23
add esp, 0x18
xor edi, edi
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc923
sub eax, edx
mov esi, eax
test edi, edi
je 0x4dc943
mov edx, dword [esp + 0xc]
cmp byte [edx], cl
je 0x4dc943
cmp esi, 0xf
jl 0x4dc9f0
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.005dfd60
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push str.Hostname
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0x104
call fcn.004d5770
cmp byte [esp + 0x1c], 0
je 0x4dc9f0
mov edi, 1
lea eax, [esp + 0x1c]
cmp esi, 0xf
jne 0x4dc9cc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc9a0
sub eax, edx
cmp eax, 0xf
jbe 0x4dc9e0
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4dc9c0
jmp 0x4dc9e0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4dc9d6
test ebp, ebp
je 0x4dc9e8
mov byte [ebp], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005dfbbe
add esp, 0x118
ret 8