Function at 0x405580
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
xor eax, eax
mov byte [esp + 0x30], bl
mov ecx, 0x1f
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x1b0], bl
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x1b1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, pe_nt_image_headers32
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
stosb byte es:[edi], al
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34c], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4058c4
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.UseProxy
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x405922
lea eax, [esp + 0xb0]
push 0x42413c
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x405905
push str._LoadProxySetting__Use_Proxy
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ProxyAddr
push edi
mov byte [ebp + 0x804], 1
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x405728
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
or ecx, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x808], eax
xor eax, eax
lea edi, [esp + 0xb0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x230]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb0]
push ecx
push str._LoadProxySetting__ProxyAddr___s
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov edi, dword [esp + 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.ProxyPort
push edi
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x40578d
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x24], eax
mov dword [ebp + 0x80c], eax
lea eax, [esp + 0xb0]
push eax
push str._LoadProxySetting__ProxyPort___s
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.UseProxyAuth
push edi
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x405922
lea ecx, [esp + 0xb0]
push 0x42413c
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4058fd
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.ProxyUser
push edi
mov byte [ebp + 0x810], 1
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x40585c
or ecx, 0xffffffff
lea edi, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea edx, [esp + 0x30]
shr ecx, 2
mov dword [esp + 0x20], edx
lea edx, [ebp + 0x811]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push str._LoadProxySetting__ProxyUser___s
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov edi, dword [esp + 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.ProxyPass
push edi
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x405922
or ecx, 0xffffffff
lea edi, [esp + 0x1b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1b0]
mov eax, ecx
mov esi, edi
mov dword [esp + 0x28], edx
shr ecx, 2
lea edx, [ebp + 0x891]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
jmp 0x405922
cmp byte [0x423760], bl
je 0x4058f5
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x429ee8
call fcn.00405970
mov edx, dword [eax]
push 0x10
push edx
push 0x425808
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp + 0x804], bl
jmp 0x40594a
mov byte [ebp + 0x810], bl
jmp 0x405922
push str._LoadProxySetting__Not_Use_Proxy
push 1
push 1
mov byte [ebp + 0x804], bl
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
call dword [sym.imp.sslsm.dll_public:_int___thiscall_RSSslStateMachine::UseHttpProxy_unsigned_long_int__unsigned_short_int__char___char__]
cmp edi, ebx
je 0x40594a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32c
ret