Function at 0x4fac90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagermaxID
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.maxID
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4facf1
xor eax, eax
jmp 0x4facf5
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
inc eax
test ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esi + 0x408], eax
je 0x4fad15
push 0
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.004fdf80
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push str.maxID
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fad53
mov eax, dword [esi + 0x410]
mov ecx, dword [esi + 0x414]
jmp 0x4fad57
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x10]
lea edi, [esi + 0x20]
push ecx
push eax
push edx
mov ecx, edi
call fcn.004fe9f0
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.004fdcf0
mov eax, dword [esi + 0x1bc]
test eax, eax
jne 0x4fad88
mov ecx, dword [esi + 0x768]
test ecx, ecx
je 0x4fada0
mov ecx, dword [esi + 0x408]
mov edx, dword [esi + 0x768]
push 0
push ecx
push eax
push edx
mov ecx, edi
call fcn.004fdd80
test ebx, ebx
jne 0x4faea3
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4faea3
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4faea3
lea ebx, [esi + 0x430]
test ebx, ebx
je 0x4faea3
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x4fadeb
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x20]
push eax
call fcn.004ffed0
test al, al
je 0x4faef2
mov edx, dword [esi + 0x50]
test edx, edx
je 0x4fae1c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4fae1c
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x3c8]
push edx
push 1
push eax
push str.LocalFileName
push ecx
call ebp
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x4fae4d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4fae4d
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esi + 0x3c8]
push 1
push eax
push str.LocalPath
push edx
call ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4fae77
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esi + 0x3c8]
push str.LogFileName
push eax
call ebp
mov ecx, dword [esi + 0x41c]
lea eax, [esi + 0x418]
test ecx, ecx
jl 0x4faea3
jg 0x4fae8e
cmp dword [eax], 0
jbe 0x4faea3
mov ecx, dword [esi + 0x3c8]
push 8
push eax
push 0
push 0
push 0x5a5e78
push ecx
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4faef2
mov eax, dword [esi + 0x41c]
lea edi, [esi + 0x418]
test eax, eax
jl 0x4faef2
jg 0x4faec2
cmp dword [edi], 0
jbe 0x4faef2
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x4faedd
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x20]
push edx
call fcn.004ffed0
test al, al
je 0x4faef2
mov eax, dword [esi + 0x3c8]
push 8
push edi
push 0
push 0
push 0x5a5e78
push eax
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8