Function at 0x45143a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x40afdc]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 0x18]
push 1
stosd dword es:[edi], eax
stosb byte es:[edi], al
pop esi
lea eax, [ebp - 8]
push eax
push 0x410db4
mov dword [ebp - 0x10], ecx
push SysReAllocStringLen
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x451664
lea eax, [ebp - 0x19]
push 0xa
push eax
push esi
mov dword [ebp - 4], 0x103
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov edi, 0x104
lea eax, [ebp - 0x248]
push edi
push eax
push 0xcd
mov dword [ebp - 0x40], 7
push dword [0x534a50]
call esi
lea eax, [ebp - 0x34c]
push edi
push eax
push 0xce
push dword [0x534a50]
call esi
lea eax, [ebp - 0x248]
push eax
call fcn.00423a59
lea eax, [ebp - 0x34c]
push eax
call fcn.00423a59
pop ecx
lea eax, [ebp - 4]
pop ecx
xor esi, esi
push eax
lea eax, [ebp - 0x144]
push eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4515c7
lea edi, [ebp - 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x451587
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x144]
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x451587
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x144]
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x451587
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x144]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x3c], esi
push eax
inc esi
call fcn.00451b16
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push 0x401
push dword [ebp + 8]
call ebx
inc dword [ebp - 0xc]
lea eax, [ebp - 0x19]
push 0xa
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x103
push eax
lea eax, [ebp - 0x144]
push eax
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x451511
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4755c4], 0
je 0x451664
lea edi, [ebp - 0x248]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x451621
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], esi
push eax
inc esi
call fcn.00451b16
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push 0x401
push dword [ebp + 8]
call ebx
lea edi, [ebp - 0x34c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x451664
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34c]
push eax
mov dword [ebp - 0x3c], esi
call fcn.00451b16
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push 0x401
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4