Function at 0x421190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
call fcn.004051c0
test eax, eax
mov edi, dword [esp + 0x18]
je 0x421201
push 0x3a9
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x3a9
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405040
push edi
push str.netsnmp_getenv_called_with_name:__s_n
push str.read_config
call fcn.00405190
push edi
push str.netsnmp_getenv_called_with_name:__s_n
push str.read_config
call fcn.00405040
add esp, 0x38
cmp edi, ebp
jne 0x42120d
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
push esi
push edi
call fcn.0044d5a9
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x421284
call fcn.004051c0
test eax, eax
je 0x42145c
push 0x3b2
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x3b2
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405040
push esi
push str.netsnmp_getenv_will_return_from_ENV:__s_n
push str.read_config
call fcn.00405190
push esi
push str.netsnmp_getenv_will_return_from_ENV:__s_n
push str.read_config
call fcn.00405040
add esp, 0x38
jmp 0x42145c
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push ebp
push str.SOFTWARENet_SNMP
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x421364
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push edi
push eax
call ebx
test eax, eax
jne 0x4212ee
mov ecx, dword [esp + 0x14]
add ecx, 1
push ecx
call fcn.0044c354
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x14]
push edx
mov ebp, eax
push ebp
lea eax, [esp + 0x20]
push eax
push 0
push edi
push ecx
call ebx
mov esi, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x421364
call fcn.004051c0
test eax, eax
je 0x421442
push 0x3db
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x3db
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405040
push esi
push str.netsnmp_getenv_will_return_from_HKCU:__s_n
push str.read_config
call fcn.00405190
push esi
push str.netsnmp_getenv_will_return_from_HKCU:__s_n
push str.read_config
call fcn.00405040
add esp, 0x38
jmp 0x421442
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SOFTWARENet_SNMP
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42143e
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
call ebx
test eax, eax
jne 0x4213d1
test ebp, ebp
je 0x4213aa
push ebp
call fcn.0044a992
add esp, 4
mov ecx, dword [esp + 0x14]
add ecx, 1
push ecx
call fcn.0044c354
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x14]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x20]
push eax
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42145b
call fcn.004051c0
test eax, eax
je 0x42143e
push 0x406
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x406
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405040
push esi
push str.netsnmp_getenv_will_return_from_HKLM:__s_n
push str.read_config
call fcn.00405190
push esi
push str.netsnmp_getenv_will_return_from_HKLM:__s_n
push str.read_config
call fcn.00405040
add esp, 0x38
test esi, esi
je 0x42145b
push 1
push esi
push edi
call fcn.004053f0
add esp, 0xc
test esi, esi
je 0x42145b
push esi
call fcn.0044a992
add esp, 4
pop ebx
call fcn.004051c0
test eax, eax
pop esi
je 0x4214c7
push 0x40f
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x40f
push str....._snmplib_tools.c
push 0x473320
push 0x473318
call fcn.00405040
push edi
call fcn.0044d5a9
push eax
push str.netsnmp_getenv_returning:__s_n
push str.read_config
call fcn.00405190
push edi
call fcn.0044d5a9
push eax
push str.netsnmp_getenv_returning:__s_n
push str.read_config
call fcn.00405040
add esp, 0x40
push edi
call fcn.0044d5a9
add esp, 4
pop edi
pop ebp
add esp, 0xc
ret