Function at 0x45a140
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e6078
push eax
mov dword fs:[0], esp
sub esp, 0x20
push edi
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45a169
mov dword [esp + 0x40], 0xffffffff
push esi
push 2
call fcn.00445f00
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0xc], esi
je 0x45a183
mov word [esi], 0
push ebx
push ebp
test edi, edi
mov dword [esp + 0x38], 0
je 0x45a203
mov eax, dword [esp + 0x44]
movzx ecx, word [0x51e010]
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.00445f60
mov esi, eax
add esp, 4
test esi, esi
je 0x45a1c8
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 0x45a1e1
xor edi, edi
lea eax, [edi + edi + 4]
push esi
mov word [esi + edi*2], 0
call fcn.00445f60
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x45a203
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 0x45a27f
inc eax
push eax
call fcn.00445f00
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x45a27f
mov byte [esi], bl
cmp edi, ebx
mov byte [esp + 0x38], 1
mov dword [esp + 0x18], ebx
jne 0x45a39f
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x45a39f
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 0x45a34a
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x45a2da
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x45a359
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
inc ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x45a34a
push 2
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x45a302
mov word [eax], 0
push str.Name
lea eax, [esp + 0x24]
push eax
push esi
mov byte [esp + 0x44], 2
call fcn.00459f00
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 0x45a369
test edi, edi
mov byte [esp + 0x38], 1
je 0x45a34a
mov edx, dword [0x51927c]
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 0x45a2a0
jmp 0x45a39f
jne 0x45a39f
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push esi
call fcn.00446140
jmp 0x45a39f
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x20]
push eax
call fcn.00457540
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push esi
call fcn.00446140
test edi, edi
mov byte [esp + 0x38], 1
je 0x45a39f
mov ecx, dword [0x51927c]
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 0x45a3b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
cmp byte [eax], 0
je 0x45a3d6
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
cmp word [edx], 0
jne 0x45a3d6
push str.Name
push ecx
push eax
call fcn.00459f00
add esp, 0xc
test esi, esi
mov edi, dword [edi]
je 0x45a3ee
mov eax, dword [0x51927c]
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 0x45a40a
mov ecx, dword [0x51927c]
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