Function at 0x4aa140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fe386
push eax
mov dword fs:[0], esp
sub esp, 0x320
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x340]
mov ebp, ecx
mov esi, edi
mov eax, dword [ebp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4aa195
test cl, cl
je 0x4aa191
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4aa195
add eax, 2
add esi, 2
test cl, cl
jne 0x4aa16d
xor eax, eax
jmp 0x4aa19a
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
jne 0x4aa1dc
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x344]
push eax
push 0x69ffbc
push ecx
call fcn.005d9fbb
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x354]
add esp, 0xc
push edx
push 0x69ffbc
push eax
call fcn.005d9fbb
add esp, 0xc
mov eax, 1
jmp 0x4aa50d
mov ecx, dword [0x6ca27c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
push edi
lea edx, [esp + 0x20]
push str.SoftwareDownloadManagerProxyPac_s
push edx
mov dword [esp + 0x344], ebx
call fcn.005d9fbb
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebx
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aa2fa
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push ebx
push 0x6a8588
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa2ea
mov edi, dword [esp + 0x344]
lea edx, [esp + 0x2c]
push edx
push 0x69ffbc
push edi
call fcn.005d9fbb
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
push str.EncPassword
push 0x104
push ecx
call fcn.00592560
add esp, 0x1c
test eax, eax
je 0x4aa2ea
mov esi, dword [esp + 0x348]
lea edx, [esp + 0x2c]
push edx
push 0x69ffbc
push esi
call fcn.005d9fbb
mov eax, dword [esp + 0x34c]
add esp, 0xc
mov ebx, 1
push eax
lea eax, [ebp + 0x1c]
push 0x69ffbc
push eax
call fcn.005d9fbb
mov ecx, dword [edi]
add esp, 0xc
lea edx, [ebp + 0x20]
push ecx
push 0x69ffbc
push edx
call fcn.005d9fbb
mov eax, dword [esi]
add esp, 0xc
add ebp, 0x24
push eax
push 0x69ffbc
push ebp
call fcn.005d9fbb
add esp, 0xc
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4aa4f7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x130]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
mov ecx, dword [0x6cee7c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x130]
push edx
push eax
push ebx
push ebx
push str.HttpProxy
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x4aa4f7
lea edi, [esp + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4aa4f7
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
push eax
push ecx
mov word [esp + 0x30], dx
mov edx, dword [0x6cee7c]
push ebx
push ebx
push str.HttpPort
push edx
mov dword [esp + 0x2c], 0xa
call esi
test eax, eax
jne 0x4aa4f7
lea eax, [esp + 0x20]
push eax
call fcn.005c4ec3
add esp, 4
cmp eax, ebx
jle 0x4aa4f7
mov ecx, dword [0x6ca27c]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x130]
push eax
push edx
lea eax, [esp + 0x18]
push str._s:_ld
push eax
mov byte [esp + 0x348], 1
call fcn.005d9fbb
mov ecx, dword [esp + 0x350]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.005c6000
add esp, 0x18
test eax, eax
jne 0x4aa4e6
mov ecx, 0x40
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x2c]
mov edx, dword [0x6cee7c]
mov dword [esp + 0x14], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x230]
push eax
push ecx
push ebx
push ebx
push str.HttpUserName
push edx
call esi
test eax, eax
jne 0x4aa4e6
lea edi, [esp + 0x230]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4aa4e6
mov ecx, dword [0x6cee7c]
lea eax, [esp + 0x2c]
push eax
push str.HttpEncPassword
push str.HttpPasword
push pe_nt_image_headers32
push ecx
call fcn.00592330
add esp, 0x14
test eax, eax
je 0x4aa4e6
mov esi, dword [esp + 0x344]
lea edx, [esp + 0x230]
push edx
push 0x69ffbc
push esi
call fcn.005d9fbb
mov edi, dword [esp + 0x354]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0x69ffbc
push edi
call fcn.005d9fbb
mov ecx, dword [esp + 0x34c]
add esp, 0xc
lea eax, [ebp + 0x1c]
mov ebx, 1
push ecx
push 0x69ffbc
push eax
call fcn.005d9fbb
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp + 0x20]
push edx
push 0x69ffbc
push eax
call fcn.005d9fbb
mov ecx, dword [edi]
add esp, 0xc
add ebp, 0x24
push ecx
push 0x69ffbc
push ebp
call fcn.005d9fbb
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x338], 0
call fcn.005e118c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x338], 0xffffffff
call fcn.005e118c
mov eax, ebx
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32c
ret 0xc