Function at 0x401fb3
Capabilities:
Set socket configuration

Disassembly:
push 0x28
mov eax, 0x4a750d
call fcn.0048e1d2
call fcn.0046e7df
push eax
lea ecx, [ebp - 0x10]
call fcn.00401764
and dword [ebp - 4], 0
call fcn.0046e7df
push eax
lea ecx, [ebp - 0x14]
call fcn.00401764
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.0045a6a6
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.00461052
mov esi, eax
push ebx
neg esi
lea eax, [ebp - 0x1c]
sbb esi, esi
push str.ProxySkipServers
push eax
inc esi
call fcn.0045a6a6
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.00461052
test eax, eax
jne 0x40209e
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00461ac5
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.00461384
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 0x40209e
xor esi, esi
push 0
push str.UseProxy
call fcn.0045a5d0
test eax, eax
pop ecx
pop ecx
je 0x4021d7
xor ebx, ebx
cmp esi, ebx
je 0x4021d7
xor esi, esi
inc esi
push ebx
mov dword [edi + 0x3c], esi
call fcn.00470b03
lea ecx, [ebp - 0x34]
call fcn.00470d17
push ebx
push 0x3f
push esi
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0047088e
test eax, eax
jne 0x402110
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00470d33
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 0x4021fe
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x34]
call fcn.00403567
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x34]
call fcn.00403567
lea eax, [ebp - 0x18]
push eax
push 0xffffff7f
lea eax, [ebp - 0x34]
call fcn.00403567
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00461ac5
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401aab
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 0x4020ea
push 0x3f
call fcn.0047090f
push eax
mov ecx, edi
call fcn.004708dc
push 0x3f
mov ecx, edi
call fcn.0046feb2
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.00470d33
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 0x4021fe
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.00470284
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.0048e2aa
ret 0xc