Function at 0x535cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x629041
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x6cc708]
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.005fb90b
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 0x535d40
test cl, cl
je 0x535d3c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x535d40
add eax, 2
add esi, 2
test cl, cl
jne 0x535d1c
xor eax, eax
jmp 0x535d45
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x535d99
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x34c]
push eax
push 0x6a00a0
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 0x64]
mov eax, dword [esp + 0x35c]
add esp, 0xc
push edx
push 0x6a00a0
push eax
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00602ad6
mov eax, 1
jmp 0x5360d9
mov ecx, dword [0x6cc708]
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.005fb90b
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 0x535ebd
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push ebx
push 0x6a8ddc
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x535ead
mov edi, dword [esp + 0x34c]
lea eax, [esp + 0x30]
push eax
push 0x6a00a0
push edi
call fcn.005fb90b
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push str.EncPassword
push 0x104
push edx
call fcn.005b2340
add esp, 0x1c
test eax, eax
je 0x535ead
mov esi, dword [esp + 0x350]
lea eax, [esp + 0x30]
push eax
push 0x6a00a0
push esi
call fcn.005fb90b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push ecx
push 0x6a00a0
push eax
call fcn.005fb90b
mov edx, dword [edi]
add esp, 0xc
lea eax, [ebp + 0x60]
push edx
push 0x6a00a0
push eax
call fcn.005fb90b
mov ecx, dword [esi]
add esp, 0xc
add ebp, 0x64
push ecx
push 0x6a00a0
push ebp
call fcn.005fb90b
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5360b2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x134]
mov edx, dword [0x6d12f4]
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 0x5360b2
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5360b2
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 [0x6d12f4]
push str.HttpPort
push eax
mov dword [esp + 0x2c], 0xa
call esi
test eax, eax
jne 0x5360b2
lea ecx, [esp + 0x24]
push ecx
call fcn.005e6653
add esp, 4
test eax, eax
jle 0x5360b2
mov edx, dword [0x6cc708]
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.005fb90b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.005e6820
add esp, 0x18
test eax, eax
jne 0x5360a1
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 [0x6d12f4]
push str.HttpUserName
push eax
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x5360a1
lea edi, [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5360a1
mov edx, dword [0x6d12f4]
lea ecx, [esp + 0x30]
push ecx
push str.HttpEncPassword
push str.HttpPasword
push 0x100
push edx
call fcn.005b2110
add esp, 0x14
test eax, eax
je 0x5360a1
mov esi, dword [esp + 0x34c]
lea eax, [esp + 0x234]
push eax
push 0x6a00a0
push esi
call fcn.005fb90b
mov edi, dword [esp + 0x35c]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x6a00a0
push edi
call fcn.005fb90b
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push edx
push 0x6a00a0
push eax
call fcn.005fb90b
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp + 0x60]
push eax
push 0x6a00a0
push ecx
call fcn.005fb90b
mov edx, dword [edi]
add esp, 0xc
add ebp, 0x64
push edx
push 0x6a00a0
push ebp
call fcn.005fb90b
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 1
call fcn.00602ad6
lea ecx, [esp + 0x20]
mov byte [esp + 0x33c], 0
call fcn.00602ad6
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00602ad6
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