Function at 0x40f19f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x414050]
push ebx
push esi
push 0x406c00
push 0xa
pop esi
push esi
mov dword [ebp + 0x1a4], eax
call fcn.0040eaa1
xor ebx, ebx
cmp dword [0x414034], ebx
pop ecx
pop ecx
je 0x40f1e4
cmp dword [0x4140c0], ebx
je 0x40f1e4
push 0x406bb0
push esi
jmp 0x40f20d
mov eax, dword [ebp + 0x1b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f1ed
sub eax, edx
add eax, 0x32
push eax
call sub.snmpapi.dll_SnmpUtilMemAlloc
cmp eax, ebx
mov dword [ebp - 0x6c], eax
jne 0x40f227
push 0x406b58
push 0x14
call fcn.0040eaa1
push 0x406b18
push esi
call fcn.0040eaa1
add esp, 0x10
xor eax, eax
jmp 0x40f672
mov eax, dword [ebp + 0x1b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f230
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0x1b4]
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f245
sub eax, edi
lea eax, [eax + esi + 0x33]
push eax
call sub.snmpapi.dll_SnmpUtilMemAlloc
cmp eax, ebx
mov dword [ebp - 0x80], eax
jne 0x40f27a
push 0x406ac0
push 0x14
call fcn.0040eaa1
pop ecx
pop ecx
push dword [ebp - 0x6c]
call sub.snmpapi.dll_SnmpUtilMemFree
jmp 0x40f50c
mov edi, dword [ebp - 0x6c]
push 0xc
pop ecx
mov esi, 0x406a8c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x1b0]
movsb byte es:[edi], byte [esi]
mov esi, ecx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40f290
mov edi, dword [ebp - 0x6c]
sub ecx, esi
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40f29f
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x6c]
mov esi, eax
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x40f2bc
mov edi, eax
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40f2c9
mov ecx, dword [ebp + 0x1b4]
mov esi, 0x406a88
movsw word es:[edi], word [esi]
mov esi, ecx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40f2e0
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40f2ee
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
and ecx, 3
push 0x406a58
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0040eaa1
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 9
push ebx
push dword [ebp - 0x80]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40f34e
push eax
push dword [ebp - 0x80]
push 0x406a08
push ebx
call fcn.0040eaa1
add esp, 0x10
push dword [ebp - 0x6c]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp - 0x80]
jmp 0x40f270
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov esi, 0x4069fc
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov edi, 0x406a08
je 0x40f394
push eax
push esi
push edi
push ebx
call fcn.0040eaa1
mov esi, dword [ebp + 0x1c0]
add esp, 0x10
mov dword [esi + 0x214], ebx
jmp 0x40f3b2
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + 0x1c0]
push eax
push 0x4069d4
push ebx
mov dword [esi + 0x214], eax
call fcn.0040eaa1
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x405388
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f406
push eax
push 0x405388
push edi
push ebx
call fcn.0040eaa1
push dword [0x414030]
push 0x406990
push ebx
call fcn.0040eaa1
mov eax, dword [0x414030]
add esp, 0x1c
mov dword [esi + 0x210], eax
jmp 0x40f424
xor eax, eax
cmp dword [ebp - 0x78], 1
sete al
push eax
push 0x40695c
push ebx
mov dword [esi + 0x210], eax
call fcn.0040eaa1
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x406954
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f462
push eax
push 0x406954
push edi
push ebx
call fcn.0040eaa1
add esp, 0x10
mov dword [esi + 0x218], ebx
jmp 0x40f47a
mov eax, dword [ebp - 0x78]
push eax
push 0x40692c
push ebx
mov dword [esi + 0x218], eax
call fcn.0040eaa1
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x80]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp - 0x6c]
push 0x406a58
push ebx
call fcn.0040eaa1
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 9
push ebx
push dword [ebp - 0x6c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40f4c8
push eax
push dword [ebp - 0x6c]
push edi
push ebx
call fcn.0040eaa1
add esp, 0x10
jmp 0x40f26d
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x40691c
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f51f
push eax
push 0x40691c
push edi
push ebx
call fcn.0040eaa1
add esp, 0x10
push dword [ebp - 0x6c]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x406b18
push 0xa
call fcn.0040eaa1
xor eax, eax
jmp 0x40f66f
push esi
push 0x4068ec
push ebx
call fcn.0040eaa1
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x4068e4
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f570
push eax
push 0x4068e4
push edi
push ebx
call fcn.0040eaa1
add esp, 0x10
mov dword [esi + 0x20c], 1
jmp 0x40f58e
xor eax, eax
cmp dword [ebp - 0x78], 1
sete al
push eax
push 0x4068bc
push ebx
mov dword [esi + 0x20c], eax
call fcn.0040eaa1
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call sub.snmpapi.dll_SnmpUtilMemFree
cmp dword [esi + 0x20c], ebx
je 0x40f630
push 0x208
lea eax, [ebp - 0x68]
push esi
push eax
mov byte [ebp + 0x1a0], bl
call dword [sym.imp.msvcrt.dll_strncpy]
mov edi, 0x4140c8
mov edx, esi
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40f5cf
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f5de
sub eax, edx
mov ecx, esi
mov word [eax + esi], 0x2e
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40f5f2
sub ecx, eax
mov eax, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f600
mov edx, 0x208
sub edx, ecx
push edx
sub eax, edi
lea ecx, [ebp - 0x68]
push ecx
lea eax, [eax + esi + 1]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
push esi
push 0x406888
push 0xa
call fcn.0040eaa1
add esp, 0x18
cmp dword [esi + 0x214], 1
ja 0x40f689
cmp dword [esi + 0x218], ebx
jne 0x40f689
push dword [ebp + 0x1b4]
call dword [sym.imp.msvcrt.dll_atol]
pop ecx
push eax
push dword [ebp + 0x1b0]
push dword [ebp + 0x1b8]
call fcn.0040ed09
push 0x406850
push 0xa
call fcn.0040eaa1
xor eax, eax
inc eax
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp + 0x1a4]
pop esi
pop ebx
call fcn.00412b09
add ebp, 0x1a8
leave
ret 0x14
push 0x406808
push 0xa
call fcn.0040eaa1
cmp dword [esi + 0x214], ebx
pop ecx
pop ecx
jne 0x40f6a9
mov dword [esi + 0x214], 2
push esi
push dword [ebp + 0x1bc]
push dword [ebp + 0x1b4]
call dword [sym.imp.msvcrt.dll_atol]
pop ecx
push eax
push dword [ebp + 0x1b0]
push dword [ebp + 0x1b8]
call fcn.0040ee3b
test eax, eax
jne 0x40f660
push 0x4067c8
push 0xa
call fcn.0040eaa1
push 0x406790
push 0xa
call fcn.0040eaa1
add esp, 0x10
xor eax, eax
jmp 0x40f671