Function at 0x491300
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de3d3
mov eax, dword fs:[0]
push eax
sub esp, 0xe78
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe84], ecx
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x28]
call fcn.004924b0
mov dword [ebp - 4], 0
push reloc.WSOCK32.dll_closesocket
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00490910
add esp, 0xc
test eax, eax
je 0x4915ce
mov dword [ebp - 0x30], 0x20019
call fcn.0047aef0
movzx ecx, al
test ecx, ecx
je 0x49137e
mov edx, dword [ebp - 0x30]
or edx, 0x100
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x28]
call fcn.00492810
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0
jmp 0x49139b
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x2c]
jae 0x4915ce
push 0x5f99a8
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x28]
call fcn.00455380
mov ecx, eax
call fcn.00409d20
push eax
push 0x5f99e4
push 0x400
lea eax, [ebp - 0x43c]
push eax
call fcn.005a0885
add esp, 0x14
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x43c]
push eax
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4915c9
mov dword [ebp - 0x444], 4
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x448]
push eax
push 0
push str.ProxyEnable
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4915bf
cmp dword [ebp - 0x440], 1
jne 0x4915bf
mov dword [ebp - 0x444], 0x400
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0x448]
push ecx
push 0
push str.ProxyServer
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4915bf
push 0x104
push 0
lea eax, [ebp - 0xe54]
push eax
call fcn.0059e3c0
add esp, 0xc
lea ecx, [ebp - 0xc4c]
push ecx
call fcn.005a194f
add esp, 4
test eax, eax
jbe 0x491557
push 0x3b
lea edx, [ebp - 0xc4c]
push edx
call fcn.004923c0
add esp, 8
test eax, eax
jne 0x4914e3
lea eax, [ebp - 0xc4c]
push eax
push 0x104
lea ecx, [ebp - 0xe54]
push ecx
call fcn.005a7458
add esp, 0xc
jmp 0x491557
push 0x5f9a1c
call fcn.005a194f
add esp, 4
mov dword [ebp - 0xe5c], eax
push 0x5f9a2c
lea edx, [ebp - 0xc4c]
push edx
call fcn.004923e0
add esp, 8
mov dword [ebp - 0xe58], eax
cmp dword [ebp - 0xe58], 0
je 0x491557
push 0x5f9a3c
mov eax, dword [ebp - 0xe5c]
mov ecx, dword [ebp - 0xe58]
lea edx, [ecx + eax*2]
push edx
call fcn.005a74fe
add esp, 8
mov dword [ebp - 0xe60], eax
mov eax, dword [ebp - 0xe60]
push eax
push 0x104
lea ecx, [ebp - 0xe54]
push ecx
call fcn.005a7458
add esp, 0xc
lea edx, [ebp - 0xe54]
push edx
call fcn.005a194f
add esp, 4
test eax, eax
jbe 0x4915bf
lea eax, [ebp - 0xe54]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xe84]
call fcn.00491290
movzx edx, al
test edx, edx
jne 0x4915bb
lea eax, [ebp - 0xe54]
push eax
lea ecx, [ebp - 0xe7c]
call fcn.00492400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe7c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00492830
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe7c]
call fcn.00490dc0
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x491392
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe7d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00455190
mov al, byte [ebp - 0xe7d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4