Function at 0x401f8e
Capabilities:
Set socket configuration

Disassembly:
push 0x28
mov eax, 0x4a7177
call fcn.0048d8b2
call fcn.0046df20
push eax
lea ecx, [ebp - 0x10]
call fcn.0046e14b
and dword [ebp - 4], 0
call fcn.0046df20
push eax
lea ecx, [ebp - 0x14]
call fcn.0046e14b
mov ebx, 0x4b578c
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.0045a255
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040189c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040174a
lea ecx, [ebp - 0x14]
call fcn.004609f5
mov esi, eax
push ebx
neg esi
lea eax, [ebp - 0x1c]
sbb esi, esi
push str.ProxySkipServers
push eax
inc esi
call fcn.0045a255
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040189c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040174a
lea ecx, [ebp - 0x10]
call fcn.004609f5
test eax, eax
jne 0x402079
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00461468
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.00460d27
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 0x402079
xor esi, esi
push 0
push str.UseProxy
call fcn.0045a17f
test eax, eax
pop ecx
pop ecx
je 0x4021b2
xor ebx, ebx
cmp esi, ebx
je 0x4021b2
xor esi, esi
inc esi
push ebx
mov dword [edi + 0x3c], esi
call fcn.00470202
lea ecx, [ebp - 0x34]
call fcn.00470416
push ebx
push 0x3f
push esi
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0046ff8d
test eax, eax
jne 0x4020eb
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00470432
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 0x4021d9
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x34]
call fcn.0040353d
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x34]
call fcn.0040353d
lea eax, [ebp - 0x18]
push eax
push 0xffffff7f
lea eax, [ebp - 0x34]
call fcn.0040353d
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00461468
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401a86
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 0x4020c5
push 0x3f
call fcn.0047000e
push eax
mov ecx, edi
call fcn.0046ffdb
push 0x3f
mov ecx, edi
call fcn.0046f5d0
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.00470432
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 0x4021d9
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0046f99f
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.0048d98a
ret 0xc