Function at 0x4dad58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov dword [ebp - 0x60], 0x80
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x18], 0x1e
push 0x40
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0xac]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 8
push 0
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0xc8]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0xd4]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0xc0], 0
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0xc0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x54bc60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 8], 0x104
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x54bc98
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
je 0x4dae9b
call fcn.004daffc
mov dword [ebp - 0x6c], 0
mov dword [ebp - 8], 0x104
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0x54bca0
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xc0], 0
je 0x4daeb1
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.004def09
test eax, eax
jge 0x4daed3
call fcn.004dac26
xor eax, eax
jmp 0x4daff8
push 2
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp + eax - 0x58]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0xb4]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xb4], edx
push 2
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp + eax - 0x58]
push ecx
lea edx, [ebp - 0xc8]
push edx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0xb4]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xb4], edx
push 4
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp + eax - 0x58]
push ecx
lea edx, [ebp - 0xd4]
push edx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x54bca8
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR80.dll_sscanf
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
push 0x54bcac
lea eax, [ebp - 0xc8]
push eax
call sub.MSVCR80.dll_sscanf
add esp, 0xc
lea ecx, [ebp - 0x68]
push ecx
push 0x54bcb0
lea edx, [ebp - 0xd4]
push edx
call sub.MSVCR80.dll_sscanf
add esp, 0xc
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.004e1fce
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004da981
add esp, 0x1c
test eax, eax
jne 0x4daff6
cmp dword [ebp - 4], 0
jge 0x4daff6
or eax, 0xffffffff
jmp 0x4daff8
xor eax, eax
mov esp, ebp
pop ebp
ret