Function at 0x4c5610
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x647476
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x354]
mov edi, dword [esp + 0x358]
mov ebp, dword [esp + 0x35c]
mov esi, ecx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x28], edi
mov ecx, ebx
jmp 0x4c5670
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c5690
test dl, dl
je 0x4c568c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c5690
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c5670
xor eax, eax
jmp 0x4c5695
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ecx
jne 0x4c56c6
mov eax, dword [esi + 0x24]
push eax
push 0x66dea8
push edi
call fcn.00402f70
mov ecx, dword [esi + 0x28]
push ecx
push 0x66dea8
push ebp
call fcn.00402f70
add esp, 0x18
mov eax, 1
jmp 0x4c59f2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x20]
call fcn.00402500
mov dword [esp + 0x34c], 0
push ebx
lea edx, [esp + 0x24]
push str.SoftwareDownloadManagerProxyPac_s
push edx
call fcn.00402f70
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c57d0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0x681654
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c57c0
lea edx, [esp + 0x3c]
push edx
push 0x66dea8
push edi
call fcn.00402f70
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x48]
push eax
push str.EncPassword
push 0x104
push ecx
call fcn.005acac0
add esp, 0x1c
test eax, eax
je 0x4c57c0
lea edx, [esp + 0x3c]
push edx
push 0x66dea8
push ebp
call fcn.00402f70
push ebx
lea eax, [esi + 0x20]
push 0x66dea8
push eax
mov dword [esp + 0x3c], 1
call fcn.00402f70
mov eax, dword [edi]
push eax
lea ecx, [esi + 0x24]
push 0x66dea8
push ecx
call fcn.00402f70
mov edx, dword [ebp]
push edx
push 0x66dea8
add esi, 0x28
push esi
call fcn.00402f70
add esp, 0x30
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c59da
push pe_nt_image_headers32
lea ecx, [esp + 0x144]
push 0
push ecx
call fcn.00615eb0
mov ecx, dword [0x752bcc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x144]
push eax
push 0
push 0
push str.HttpProxy
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call edi
test eax, eax
jne 0x4c59da
lea eax, [esp + 0x140]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5826
sub eax, edx
je 0x4c59da
mov ecx, dword [0x752bcc]
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push str.HttpPort
push ecx
mov dword [esp + 0x30], 0xa
call edi
test eax, eax
jne 0x4c59da
lea edx, [esp + 0x30]
push edx
call fcn.00617001
mov edi, eax
add esp, 4
test edi, edi
jle 0x4c59da
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x34c], 1
push edi
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x1c]
push str._s:_ld
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x24]
push ebx
push edx
call fcn.006172ee
add esp, 0x18
test eax, eax
jne 0x4c59c9
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x248]
push eax
call fcn.00615eb0
push pe_nt_image_headers32
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.00615eb0
mov ecx, dword [0x752bcc]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x244]
push eax
push 0
push 0
push str.HttpUserName
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c59c9
lea eax, [esp + 0x240]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5930
sub eax, edx
je 0x4c59c9
mov eax, dword [0x752bcc]
lea edx, [esp + 0x3c]
push edx
push str.HttpEncPassword
push str.HttpPasword
push pe_nt_image_headers32
push eax
call fcn.005af970
add esp, 0x14
test eax, eax
je 0x4c59c9
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x240]
push ecx
push 0x66dea8
push edi
call fcn.00402f70
lea edx, [esp + 0x48]
push edx
push 0x66dea8
push ebp
call fcn.00402f70
push ebx
lea eax, [esi + 0x20]
push 0x66dea8
push eax
mov dword [esp + 0x48], 1
call fcn.00402f70
mov eax, dword [edi]
push eax
lea ecx, [esi + 0x24]
push 0x66dea8
push ecx
call fcn.00402f70
mov edx, dword [ebp]
push edx
push 0x66dea8
add esi, 0x28
push esi
call fcn.00402f70
add esp, 0x3c
mov byte [esp + 0x34c], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402570
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.006157d3
add esp, 0x33c
ret 0xc