Function at 0x54f340
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64e651
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x6f7b78]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x348]
mov ecx, dword [esp + 0x344]
push edi
push ecx
lea edx, [esp + 0x18]
xor ebx, ebx
push str._s:_s
push edx
mov dword [esp + 0x34c], ebx
call fcn.0061fae1
mov eax, dword [ebp + 0x5c]
mov esi, dword [esp + 0x20]
add esp, 0x10
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x54f3c0
test cl, cl
je 0x54f3bc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x54f3c0
add eax, 2
add esi, 2
test cl, cl
jne 0x54f39c
xor eax, eax
jmp 0x54f3c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x54f419
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x34c]
push eax
push 0x6c910c
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0x64]
mov eax, dword [esp + 0x35c]
add esp, 0xc
push edx
push 0x6c910c
push eax
call fcn.0061fae1
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00622d8a
mov eax, 1
jmp 0x54f759
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x344]
push edi
push edx
lea eax, [esp + 0x28]
push str.SoftwareDownloadManagerProxyServers_s:_s
push eax
mov byte [esp + 0x34c], 1
call fcn.0061fae1
mov edx, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x54f53d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push ebx
push 0x6d278c
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54f52d
mov edi, dword [esp + 0x34c]
lea eax, [esp + 0x30]
push eax
push 0x6c910c
push edi
call fcn.0061fae1
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push str.EncPassword
push 0x104
push edx
call fcn.005d0d60
add esp, 0x1c
test eax, eax
je 0x54f52d
mov esi, dword [esp + 0x350]
lea eax, [esp + 0x30]
push eax
push 0x6c910c
push esi
call fcn.0061fae1
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push ecx
push 0x6c910c
push eax
call fcn.0061fae1
mov edx, dword [edi]
add esp, 0xc
lea eax, [ebp + 0x60]
push edx
push 0x6c910c
push eax
call fcn.0061fae1
mov ecx, dword [esi]
add esp, 0xc
add ebp, 0x64
push ecx
push 0x6c910c
push ebp
call fcn.0061fae1
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x54f732
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x134]
mov edx, dword [0x6fcafc]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x134]
push eax
push ecx
push 0
push 0
push str.HttpProxy
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x54f732
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x54f732
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ecx
push edx
push eax
mov word [esp + 0x38], ax
push eax
mov eax, dword [0x6fcafc]
push str.HttpPort
push eax
mov dword [esp + 0x2c], 0xa
call esi
test eax, eax
jne 0x54f732
lea ecx, [esp + 0x24]
push ecx
call fcn.00609e33
add esp, 4
test eax, eax
jle 0x54f732
mov edx, dword [0x6f7b78]
mov dword [esp + 0x18], edx
push eax
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x20]
push str._s:_ld
push ecx
mov byte [esp + 0x34c], 2
call fcn.0061fae1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0060a000
add esp, 0x18
test eax, eax
jne 0x54f721
mov ecx, 0x40
lea edi, [esp + 0x234]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x234]
push ecx
push edx
push eax
push eax
mov eax, dword [0x6fcafc]
push str.HttpUserName
push eax
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x54f721
lea edi, [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x54f721
mov edx, dword [0x6fcafc]
lea ecx, [esp + 0x30]
push ecx
push str.HttpEncPassword
push str.HttpPasword
push 0x100
push edx
call fcn.005d0b30
add esp, 0x14
test eax, eax
je 0x54f721
mov esi, dword [esp + 0x34c]
lea eax, [esp + 0x234]
push eax
push 0x6c910c
push esi
call fcn.0061fae1
mov edi, dword [esp + 0x35c]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x6c910c
push edi
call fcn.0061fae1
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push edx
push 0x6c910c
push eax
call fcn.0061fae1
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp + 0x60]
push eax
push 0x6c910c
push ecx
call fcn.0061fae1
mov edx, dword [edi]
add esp, 0xc
add ebp, 0x64
push edx
push 0x6c910c
push ebp
call fcn.0061fae1
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 1
call fcn.00622d8a
lea ecx, [esp + 0x20]
mov byte [esp + 0x33c], 0
call fcn.00622d8a
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00622d8a
mov eax, ebx
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret 0x10