Function at 0x4cacf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x645177
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov eax, dword [0x6fca48]
mov dword [esp + 0x82c], ebx
cmp eax, ebx
jne 0x4cad3a
mov eax, 0x6fca4c
mov edx, str._sproxy.pac
test edx, edx
je 0x4cae28
cmp eax, ebx
je 0x4cae28
push ebp
push eax
lea ecx, [esp + 0x4c]
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x830], 1
call fcn.00401070
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
push ebx
push str._sproxy.pac
lea ecx, [esp + 0x3c]
mov byte [esp + 0x838], 2
call fcn.004027e0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4cadfe
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x830], 1
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0x830], bl
call fcn.00401070
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
pop ebp
cmp ecx, ebx
mov eax, ecx
jne 0x4cae32
lea eax, [esp + 0x14]
lea edx, [esp + 0xc]
push eax
push edx
call fcn.00402850
add esp, 8
mov eax, dword [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x834], 3
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.004027e0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x82c], 4
cmp eax, ebx
jne 0x4cae78
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x4cae84
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0060a1a4
add esp, 8
test eax, eax
jne 0x4caea2
mov ecx, dword [esp + 0xc]
lea edx, [edi + 4]
push ecx
push 0x6c910c
push edx
jmp 0x4caeb1
mov eax, dword [0x6fca40]
lea ecx, [edi + 4]
push eax
push str._sproxy.pac
push ecx
call fcn.0061fae1
add esp, 0xc
lea edx, [esp + 0x50]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x6fc418
push ebx
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4caf5d
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push 0x6d2748
push eax
mov dword [esp + 0x38], 0x7d0
call esi
test eax, eax
jne 0x4caf24
lea ecx, [esp + 0x54]
lea edx, [edi + 0xc]
push ecx
push 0x6c910c
push edx
call fcn.0061fae1
add esp, 0xc
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
push ebx
push str.bUse
push edx
mov dword [esp + 0x38], 4
call esi
test eax, eax
jne 0x4caf52
cmp dword [esp + 0x3c], ebx
setne al
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x82c], 3
call fcn.00401070
lea ecx, [esp + 0xc]
mov byte [esp + 0x82c], bl
call fcn.00622d8a
lea ecx, [esp + 0x10]
mov dword [esp + 0x82c], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x824
ret