Function at 0x401fb3
Capabilities:
Set socket configuration

Disassembly:
push 0x28
mov eax, 0x4a537b
call fcn.0048bd52
call fcn.0046c34c
push eax
lea ecx, [ebp - 0x10]
call fcn.00401764
and dword [ebp - 4], 0
call fcn.0046c34c
push eax
lea ecx, [ebp - 0x14]
call fcn.00401764
mov ebx, 0x4b377c
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.004589c5
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.0045ee51
mov esi, eax
push ebx
neg esi
lea eax, [ebp - 0x1c]
sbb esi, esi
push str.ProxySkipServers
push eax
inc esi
call fcn.004589c5
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.0045ee51
test eax, eax
jne 0x40209e
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0045f8c4
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.0045f183
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.004588ef
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.0046e695
lea ecx, [ebp - 0x34]
call fcn.0046e8a9
push ebx
push 0x3f
push esi
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0046e420
test eax, eax
jne 0x402110
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0046e8c5
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.00403562
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x34]
call fcn.00403562
lea eax, [ebp - 0x18]
push eax
push 0xffffff7f
lea eax, [ebp - 0x34]
call fcn.00403562
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0045f8c4
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.0046e4a1
push eax
mov ecx, edi
call fcn.0046e46e
push 0x3f
mov ecx, edi
call fcn.0046da44
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.0046e8c5
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.0046de16
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.0048be2a
ret 0xc