Function at 0x536c20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x62a031
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x6cd768]
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.005fc86b
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 0x536ca0
test cl, cl
je 0x536c9c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x536ca0
add eax, 2
add esi, 2
test cl, cl
jne 0x536c7c
xor eax, eax
jmp 0x536ca5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x536cf9
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x34c]
push eax
push 0x6a10a0
push ecx
call fcn.005fc86b
mov edx, dword [ebp + 0x64]
mov eax, dword [esp + 0x35c]
add esp, 0xc
push edx
push 0x6a10a0
push eax
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00603a3c
mov eax, 1
jmp 0x537039
mov ecx, dword [0x6cd768]
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.005fc86b
mov edx, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x536e1d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push ebx
push 0x6a9dfc
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x536e0d
mov edi, dword [esp + 0x34c]
lea eax, [esp + 0x30]
push eax
push 0x6a10a0
push edi
call fcn.005fc86b
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push str.EncPassword
push 0x104
push edx
call fcn.005b3120
add esp, 0x1c
test eax, eax
je 0x536e0d
mov esi, dword [esp + 0x350]
lea eax, [esp + 0x30]
push eax
push 0x6a10a0
push esi
call fcn.005fc86b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push ecx
push 0x6a10a0
push eax
call fcn.005fc86b
mov edx, dword [edi]
add esp, 0xc
lea eax, [ebp + 0x60]
push edx
push 0x6a10a0
push eax
call fcn.005fc86b
mov ecx, dword [esi]
add esp, 0xc
add ebp, 0x64
push ecx
push 0x6a10a0
push ebp
call fcn.005fc86b
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x537012
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x134]
mov edx, dword [0x6d2354]
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 0x537012
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x537012
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 [0x6d2354]
push str.HttpPort
push eax
mov dword [esp + 0x2c], 0xa
call esi
test eax, eax
jne 0x537012
lea ecx, [esp + 0x24]
push ecx
call fcn.005e7473
add esp, 4
test eax, eax
jle 0x537012
mov edx, dword [0x6cd768]
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.005fc86b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.005e7640
add esp, 0x18
test eax, eax
jne 0x537001
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 [0x6d2354]
push str.HttpUserName
push eax
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x537001
lea edi, [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x537001
mov edx, dword [0x6d2354]
lea ecx, [esp + 0x30]
push ecx
push str.HttpEncPassword
push str.HttpPasword
push 0x100
push edx
call fcn.005b2ef0
add esp, 0x14
test eax, eax
je 0x537001
mov esi, dword [esp + 0x34c]
lea eax, [esp + 0x234]
push eax
push 0x6a10a0
push esi
call fcn.005fc86b
mov edi, dword [esp + 0x35c]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x6a10a0
push edi
call fcn.005fc86b
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push edx
push 0x6a10a0
push eax
call fcn.005fc86b
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp + 0x60]
push eax
push 0x6a10a0
push ecx
call fcn.005fc86b
mov edx, dword [edi]
add esp, 0xc
add ebp, 0x64
push edx
push 0x6a10a0
push ebp
call fcn.005fc86b
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 1
call fcn.00603a3c
lea ecx, [esp + 0x20]
mov byte [esp + 0x33c], 0
call fcn.00603a3c
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00603a3c
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