Function at 0x459150
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea268
push eax
mov dword fs:[0], esp
sub esp, 0x20
push edi
mov edi, dword [esp + 0x34]
test edi, edi
je 0x459179
mov dword [esp + 0x40], 0xffffffff
push esi
push 2
call fcn.00449130
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0xc], esi
je 0x459193
mov word [esi], 0
push ebx
push ebp
test edi, edi
mov dword [esp + 0x38], 0
je 0x459213
mov eax, dword [esp + 0x44]
movzx ecx, word [0x522010]
mov ebp, dword [eax]
push ebp
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea edi, [ebx + 2]
lea eax, [edi + edi + 4]
push esi
call fcn.00449190
mov esi, eax
add esp, 4
test esi, esi
je 0x4591d8
mov word [esi + edi*2 + 2], 0
mov edx, dword [esp + 0x20]
push edi
push esi
push ebx
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jge 0x4591f1
xor edi, edi
lea eax, [edi + edi + 4]
push esi
mov word [esi + edi*2], 0
call fcn.00449190
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x459213
mov word [eax + edi*2 + 2], 0
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push 0xf003f
push ebx
mov byte [edx], 0
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push SysReAllocStringLen
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebp, dword [esp + 0x24]
shl ebp, 2
mov edi, eax
lea eax, [ebp + 8]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x28], esi
jl 0x45928f
inc eax
push eax
call fcn.00449130
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x45928f
mov byte [esi], bl
cmp edi, ebx
mov byte [esp + 0x38], 1
mov dword [esp + 0x18], ebx
jne 0x4593af
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4593af
lea esp, [esp]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push esi
mov dword [esp + 0x44], ebp
mov byte [esi], 0
mov edx, dword [esp + 0x28]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp byte [esi], 0x7b
jne 0x45935a
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x4592ea
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x459369
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
inc ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x45935a
push 2
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x459312
mov word [eax], 0
push str.Name
lea eax, [esp + 0x24]
push eax
push esi
mov byte [esp + 0x44], 2
call fcn.00458f10
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
add esp, 0xc
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x459379
test edi, edi
mov byte [esp + 0x38], 1
je 0x45935a
mov edx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4592b0
jmp 0x4593af
jne 0x4593af
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push esi
call fcn.00449370
jmp 0x4593af
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x20]
push eax
call fcn.00456690
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push esi
call fcn.00449370
test edi, edi
mov byte [esp + 0x38], 1
je 0x4593af
mov ecx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
pop ebx
je 0x4593c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
cmp byte [eax], 0
je 0x4593e6
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
cmp word [edx], 0
jne 0x4593e6
push str.Name
push ecx
push eax
call fcn.00458f10
add esp, 0xc
test esi, esi
mov edi, dword [edi]
je 0x4593fe
mov eax, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
test eax, eax
pop esi
je 0x45941a
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x2c
ret