Function at 0x534c70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x629661
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x6f175c]
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.005fa6fb
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 0x534cf0
test cl, cl
je 0x534cec
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x534cf0
add eax, 2
add esi, 2
test cl, cl
jne 0x534ccc
xor eax, eax
jmp 0x534cf5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x534d49
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x34c]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
mov edx, dword [ebp + 0x64]
mov eax, dword [esp + 0x35c]
add esp, 0xc
push edx
push 0x6c5098
push eax
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.006018cc
mov eax, 1
jmp 0x535089
mov ecx, dword [0x6f175c]
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.005fa6fb
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 0x534e6d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push ebx
push 0x6cde04
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x534e5d
mov edi, dword [esp + 0x34c]
lea eax, [esp + 0x30]
push eax
push 0x6c5098
push edi
call fcn.005fa6fb
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push str.EncPassword
push 0x104
push edx
call fcn.005b1090
add esp, 0x1c
test eax, eax
je 0x534e5d
mov esi, dword [esp + 0x350]
lea eax, [esp + 0x30]
push eax
push 0x6c5098
push esi
call fcn.005fa6fb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push ecx
push 0x6c5098
push eax
call fcn.005fa6fb
mov edx, dword [edi]
add esp, 0xc
lea eax, [ebp + 0x60]
push edx
push 0x6c5098
push eax
call fcn.005fa6fb
mov ecx, dword [esi]
add esp, 0xc
add ebp, 0x64
push ecx
push 0x6c5098
push ebp
call fcn.005fa6fb
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x535062
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x134]
mov edx, dword [0x6f6360]
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 0x535062
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x535062
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 [0x6f6360]
push str.HttpPort
push eax
mov dword [esp + 0x2c], 0xa
call esi
test eax, eax
jne 0x535062
lea ecx, [esp + 0x24]
push ecx
call fcn.005e5453
add esp, 4
test eax, eax
jle 0x535062
mov edx, dword [0x6f175c]
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.005fa6fb
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.005e5520
add esp, 0x18
test eax, eax
jne 0x535051
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 [0x6f6360]
push str.HttpUserName
push eax
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x535051
lea edi, [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x535051
mov edx, dword [0x6f6360]
lea ecx, [esp + 0x30]
push ecx
push str.HttpEncPassword
push str.HttpPasword
push 0x100
push edx
call fcn.005b0e60
add esp, 0x14
test eax, eax
je 0x535051
mov esi, dword [esp + 0x34c]
lea eax, [esp + 0x234]
push eax
push 0x6c5098
push esi
call fcn.005fa6fb
mov edi, dword [esp + 0x35c]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x6c5098
push edi
call fcn.005fa6fb
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [ebp + 0x5c]
mov ebx, 1
push edx
push 0x6c5098
push eax
call fcn.005fa6fb
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp + 0x60]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
mov edx, dword [edi]
add esp, 0xc
add ebp, 0x64
push edx
push 0x6c5098
push ebp
call fcn.005fa6fb
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 1
call fcn.006018cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x33c], 0
call fcn.006018cc
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.006018cc
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