Function at 0x45221d
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 0x4111a8
mov dword [ebp - 0x10], ecx
push SysReAllocStringLen
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x452461
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 [0x536190]
call esi
lea eax, [ebp - 0x34c]
push edi
push eax
push 0xce
push dword [0x536190]
call esi
lea eax, [ebp - 0x248]
push eax
call fcn.00423e06
lea eax, [ebp - 0x34c]
push eax
call fcn.00423e06
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 0x4523c4
lea edi, [ebp - 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x452384
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 0x452384
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x144]
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x452384
cmp dword [0x474d78], 0
je 0x452352
lea eax, [ebp - 0x144]
push eax
call fcn.0044a24b
test eax, eax
pop ecx
jne 0x452384
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.00452a65
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 0x4522f4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4768f8], 0
je 0x452461
lea edi, [ebp - 0x248]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45241e
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.00452a65
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 0x452461
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.00452a65
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