Function at 0x40be85
Capabilities:
Get hostname
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcbc
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea edx, [ebp - 0x230]
push ecx
mov dword [ebp - 0xc48], eax
call fcn.0040da2a
test eax, eax
js 0x40c195
xor ecx, ecx
inc ecx
call fcn.00407d9b
push 0x5c
pop eax
cmp word [ebp - 0x230], ax
jne 0x40bedc
lea esi, [ebp - 0x22c]
cmp word [ebp - 0x22e], ax
je 0x40bee2
lea esi, [ebp - 0x230]
push esi
call dword [sym.imp.USER32.dll_CharLowerW]
push 1
push esi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xc40], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40bf2a
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40bf2a
mov ebx, 0x99
jmp 0x40c16f
mov edi, dword [0x41b080]
push 0
push 0
push 0x110a
push edi
mov dword [ebp - 0xcb8], 0x15
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov dword [ebp - 0xca4], 0x104
lea eax, [ebp - 0x438]
mov dword [ebp - 0xc3c], ebx
mov dword [ebp - 0xcb4], ebx
push ebx
mov dword [ebp - 0xca8], eax
mov ebx, 0x110a
jmp 0x40bfac
lea eax, [ebp - 0xcb8]
push eax
push 0
push 0x113e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40bff1
js 0x40bfc0
mov eax, dword [ebp - 0xcb4]
mov dword [ebp - 0xc3c], eax
push eax
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xcb4], eax
test eax, eax
jne 0x40bf76
lea eax, [ebp - 0xc44]
push eax
push reloc.COMCTL32.dll_MenuHelp
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
xor ebx, ebx
test eax, eax
je 0x40c00a
cmp eax, 5
sete bl
lea ebx, [ebx*2 + 0x9a]
jmp 0x40c16f
push dword [ebp - 0xcb4]
push 9
push 0x110b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c195
mov eax, dword [ebp - 0xc3c]
mov edi, dword [0x41b080]
and dword [ebp - 0xc64], ebx
mov dword [ebp - 0xc8c], eax
xor eax, eax
inc eax
mov dword [ebp - 0xc90], 0xffff0000
mov dword [ebp - 0xc70], eax
mov dword [ebp - 0xc6c], eax
mov dword [ebp - 0xc68], eax
lea eax, [ebp - 0xc90]
push eax
push 0
push 0x1132
push edi
mov dword [ebp - 0xc88], 0x67
mov dword [ebp - 0xc78], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xc90], eax
xor esi, esi
mov dword [ebp - 0xc70], 2
mov dword [ebp - 0xc6c], 3
imul ecx, esi, 0xc
mov eax, dword [ecx + 0x401260]
mov dword [ebp - 0xc78], eax
cmp esi, 2
jne 0x40c0a4
mov eax, dword [ebp - 0xc44]
mov dword [ebp - 0xc64], eax
jmp 0x40c0e2
cmp esi, 1
je 0x40c117
cmp esi, 5
je 0x40c117
cmp esi, 4
je 0x40c117
test esi, esi
je 0x40c117
lea eax, [ebp - 0xc64]
push eax
push dword [ecx + 0x401264]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x40c0dc
mov ebx, 0x9b
jmp 0x40c117
mov eax, dword [ebp - 0xc64]
push 0x400
lea ecx, [ebp - 0xc38]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc68], eax
lea eax, [ebp - 0xc90]
push eax
push 0
push 0x1132
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, 5
jb 0x40c082
push dword [ebp - 0xc90]
push 2
push 0x1102
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0xc90]
push 0
push 0x1114
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
call fcn.00407d9b
push dword [ebp - 0xc90]
push 9
push 0x110b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
test ebx, ebx
je 0x40c195
lea eax, [ebp - 0x230]
push eax
push 0x10
push 0x98
movzx eax, bx
push eax
push dword [ebp - 0xc48]
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret