Function at 0x4044c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push ebx
mov ebx, dword [esp + 0x330]
push ebp
push esi
push edi
lea eax, [esp + 0x20]
xor edi, edi
push ebx
push eax
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
push str.HKEY
push ecx
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40450d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x328
ret
lea edx, [esp + 0x20]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x20]
test al, al
je 0x404540
cmp al, 0x5c
jne 0x40452f
test esi, esi
mov ebp, edi
jne 0x404537
mov esi, edi
jmp 0x404537
cmp al, 0x3b
jne 0x404537
mov dword [esp + 0x18], edi
mov al, byte [esp + edi + 0x21]
inc edi
test al, al
jne 0x404521
mov eax, dword [esp + 0x18]
lea edi, [esp + ebp + 0x21]
lea edx, [esp + 0x128]
push edi
lea ecx, [esp + eax + 0x25]
mov byte [esp + eax + 0x24], 0
mov byte [esp + esi + 0x24], 0
push edx
lea ebx, [esp + esi + 0x29]
mov dword [esp + 0x20], ecx
mov byte [esp + ebp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp ebp, esi
jne 0x40457e
mov byte [esp + 0x128], 0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
push ebx
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x230]
push 0x4447ec
push ecx
call esi
lea edx, [esp + 0x230]
push edi
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x20]
push str.HKEY_USERS
push eax
mov edi, 0x80000002
call esi
test eax, eax
jne 0x4045cf
mov edi, 0x80000003
lea ecx, [esp + 0x20]
push str.HKEY_CLASSES_ROOT
push ecx
call esi
test eax, eax
jne 0x4045e4
mov edi, 0x80000000
lea edx, [esp + 0x20]
push str.HKEY_CURRENT_USER
push edx
call esi
test eax, eax
jne 0x4045f9
mov edi, 0x80000001
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40462d
mov ecx, dword [esp + 0x33c]
push 0x444824
push ecx
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x328
ret
mov edx, dword [esp + 0x18]
push str.string
push edx
call esi
test eax, eax
jne 0x40466c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x134]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0x105
call ebx
mov esi, eax
jmp 0x4046b9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x134]
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x34], 0
call ebx
mov edx, dword [esp + 0x1c]
mov esi, eax
push edx
lea eax, [esp + 0x24]
push 0x444838
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test esi, esi
je 0x4046d2
mov ebp, dword [esp + 0x33c]
push 0x44483c
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4046e8
mov edx, dword [esp + 0x33c]
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
mov ebp, dword [esp + 0x33c]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404764
lea ecx, [esp + 0x10]
lea edx, [esp + 0x230]
push ecx
push 0x20019
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404723
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x328
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x2c], 0x105
call ebx
test eax, eax
je 0x40474d
push str.Not_Found
jmp 0x404752
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x328
ret