Function at 0x435830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5795a1
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43587a
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x214]
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push edx
call fcn.00409220
mov esi, dword [ebp - 0x214]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x4358d2
push 0
lea ecx, [ebp - 0x214]
call fcn.004077a0
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4358f8
or edi, 0xffffffff
jmp 0x435a43
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00550f40
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x228]
push edx
push 0
push str.PnpInstanceID
push eax
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x21c]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x43597c
or edi, 0xffffffff
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x435a51
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x218]
call fcn.004079b0
push 3
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00437490
push 0x5af278
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00437430
push eax
call fcn.004136b0
mov bl, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
or edi, 0xffffffff
add esp, 8
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4359e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test bl, bl
je 0x435a35
test edx, edx
jg 0x435a12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x435a2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x435a61
test edx, edx
jg 0x435a43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edi
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x435a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret