Function at 0x4076d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413d76
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x41d84c]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x22c], ecx
xor edi, edi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], esi
lea edx, [ebp - 0x224]
push edx
push 0x20119
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4078d9
mov eax, 0x104
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x224]
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4078cc
jmp 0x4077a0
lea eax, [ebp - 0x114]
inc edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4077b0
sub eax, edx
lea ecx, [ebp - 0x250]
je 0x4077e3
push eax
call fcn.00405d40
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x114]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4077d7
jmp 0x4077f3
push 1
call fcn.00405d40
mov edx, dword [ebp - 0x250]
mov byte [edx], 0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x240], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407814
sub eax, edx
lea ecx, [ebp - 0x23c]
je 0x40784c
push eax
call fcn.00405d40
mov esi, dword [ebp - 0x23c]
lea eax, [ebp - 0x218]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407840
jmp 0x40785c
push 1
call fcn.00405d40
mov esi, dword [ebp - 0x23c]
mov byte [esi], 0
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x230], edx
call fcn.00407630
mov eax, 0x104
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x224]
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x114]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4077a0
mov ebx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x22c]
mov edi, dword [edx]
mov dword [ebp - 4], 1
test esi, esi
je 0x407901
mov eax, dword [ebp - 0x238]
push eax
call fcn.0040a3c1
push esi
call fcn.0040a3c1
add esp, 8
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x407921
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0040a3c1
push ebx
call fcn.0040a3c1
add esp, 8
mov eax, edi
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.0040a7a3
mov esp, ebp
pop ebp
ret 8