Function at 0x4da670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 0x84], 0x80
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x1c], 0x1e
push 0x20
push 0
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0x7c]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
push 0
lea edx, [ebp - 0xd4]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0x18]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0xf4]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 8
push 0
lea edx, [ebp - 0x100]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0x6a59c0
call fcn.004dab75
add esp, 8
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0xec]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x54bb8c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x104], 1
jne 0x4da76c
call fcn.004dac26
call fcn.004dad58
test eax, eax
jge 0x4da77d
or eax, 0xffffffff
jmp 0x4da97d
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x94]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xec], 0
je 0x4da7cf
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xe8], 0
je 0x4da7e4
call fcn.004dac26
xor eax, eax
jmp 0x4da97d
push 0x40
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.004def09
test eax, eax
jge 0x4da806
call fcn.004dac26
xor eax, eax
jmp 0x4da97d
push 2
mov edx, dword [ebp - 0xdc]
lea eax, [ebp + edx - 0x7c]
push eax
lea ecx, [ebp - 0x18]
push ecx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0xdc]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xdc], edx
push 2
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp + eax - 0x7c]
push ecx
lea edx, [ebp - 0xf4]
push edx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
lea eax, [ebp - 0xf4]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0xdc]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xdc], edx
push 4
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp + eax - 0x7c]
push ecx
lea edx, [ebp - 0x100]
push edx
call sub.MSVCR80.dll_strncpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x54bbc4
lea ecx, [ebp - 0x18]
push ecx
call sub.MSVCR80.dll_sscanf
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
push 0x54bbc8
lea eax, [ebp - 0xf4]
push eax
call sub.MSVCR80.dll_sscanf
add esp, 0xc
lea ecx, [ebp - 0x90]
push ecx
push 0x54bbcc
lea edx, [ebp - 0x100]
push edx
call sub.MSVCR80.dll_sscanf
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.004e212a
push 0
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.004e1fce
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
call fcn.004da981
add esp, 0x1c
test eax, eax
jne 0x4da97b
cmp dword [ebp - 8], 0
jl 0x4da96d
xor eax, eax
jmp 0x4da97d
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR80.dll_abs
add esp, 4
jmp 0x4da97d
xor eax, eax
mov esp, ebp
pop ebp
ret