Function at 0x401fa9
Capabilities:
Set socket configuration

Disassembly:
push 0x28
mov eax, 0x4a6756
call fcn.0048cfe2
call fcn.0046d63c
push eax
lea ecx, [ebp - 0x10]
call fcn.00401764
and dword [ebp - 4], 0
call fcn.0046d63c
push eax
lea ecx, [ebp - 0x14]
call fcn.00401764
mov ebx, 0x4b478c
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
and dword [edi + 0x20], 0
push str.ProxySOCKS
push eax
mov dword [ebp - 0x18], 1
call fcn.00459b42
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004018c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040174a
lea ecx, [ebp - 0x14]
call fcn.004600f3
mov esi, eax
push ebx
neg esi
lea eax, [ebp - 0x1c]
sbb esi, esi
push str.ProxySkipServers
push eax
inc esi
call fcn.00459b42
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004018c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040174a
lea ecx, [ebp - 0x10]
call fcn.004600f3
test eax, eax
jne 0x402094
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00460b66
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.00460425
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0040174a
test ebx, ebx
je 0x402094
xor esi, esi
push 0
push str.UseProxy
call fcn.00459a6c
test eax, eax
pop ecx
pop ecx
je 0x4021cd
xor ebx, ebx
cmp esi, ebx
je 0x4021cd
xor esi, esi
inc esi
push ebx
mov dword [edi + 0x3c], esi
call fcn.0046f90f
lea ecx, [ebp - 0x34]
call fcn.0046fb23
push ebx
push 0x3f
push esi
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0046f69a
test eax, eax
jne 0x402106
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0046fb3f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040174a
xor eax, eax
jmp 0x4021f4
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x34]
call fcn.00403558
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x34]
call fcn.00403558
lea eax, [ebp - 0x18]
push eax
push 0xffffff7f
lea eax, [ebp - 0x34]
call fcn.00403558
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00460b66
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401aa1
add esp, 0x10
mov ebx, eax
neg ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040174a
test bl, bl
lea ecx, [ebp - 0x34]
jne 0x4020e0
push 0x3f
call fcn.0046f71b
push eax
mov ecx, edi
call fcn.0046f6e8
push 0x3f
mov ecx, edi
call fcn.0046ecda
lea eax, [ebp - 0x20]
push eax
push 0x8004667e
push dword [edi + 4]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0046fb3f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, ebx
jmp 0x4021f4
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0046f0ac
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040174a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, esi
call fcn.0048d0ba
ret 0xc