Function at 0x495580
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x3e8
push eax
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x49559e
add esp, 0x3e8
ret
mov al, byte [0x616ef8]
push ebx
push ebp
push esi
xor ebp, ebp
test al, al
push edi
jne 0x4955da
push 0x5eaae0
call fcn.005cf0ca
add esp, 4
cmp eax, ebp
je 0x4955fa
cmp byte [eax], 0
je 0x4955fa
mov edx, 0x616ef8
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4955d0
mov ebp, dword [esp + 0x404]
cmp ebp, 0xffffffff
jne 0x49577c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3e8
ret
lea ecx, [esp + 0x10]
push 0x3e7
push ecx
call fcn.00423a00
lea edx, [esp + 0x18]
push edx
push 0xa8d
call fcn.00421db0
mov esi, dword [0x63c814]
mov ebx, dword [esp + 0x418]
add esp, 0x10
cmp esi, ebp
je 0x495674
lea esp, [esp]
cmp dword [esi + 8], ebx
jne 0x495642
push esi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x49564e
mov esi, dword [esi + 0x26a0]
cmp esi, ebp
jne 0x495630
jmp 0x495674
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0x440]
push 0x3e7
push edi
call fcn.00423900
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x18
push 2
lea ecx, [esp + 0x14]
push 0x5e9cc4
push ecx
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x4956b0
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495693
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.005cceb0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x20
push ecx
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, ebp
je 0x4956da
cmp dword [eax + 0x52c], ebx
je 0x495714
mov eax, dword [eax + 0x890]
cmp eax, ebp
jne 0x4956c8
mov eax, dword [0x641548]
cmp eax, ebp
je 0x4956f5
cmp dword [eax + 0x340], ebx
je 0x49572a
mov eax, dword [eax + 0x3d4]
cmp eax, ebp
jne 0x4956e3
mov eax, dword [0x63709c]
cmp eax, ebp
je 0x495753
mov edi, edi
cmp dword [eax + 0x444], ebx
je 0x49573e
mov eax, dword [eax + 0x4bc]
cmp eax, ebp
jne 0x495700
jmp 0x495753
lea edx, [esp + 0x10]
push edx
push eax
mov dword [eax + 0x52c], ebp
call fcn.00434890
add esp, 8
jmp 0x495753
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x340], ebp
call fcn.0053e670
jmp 0x495750
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0x444], ebp
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, ebp
je 0x495766
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x49575c
push ebx
call fcn.00493360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e8
ret
mov eax, dword [0x61702c]
test eax, eax
mov edi, dword [esp + 0x3fc]
mov ebx, dword [sym.imp.WSOCK32.dll_inet_addr]
jne 0x495a9f
push edi
call ebx
cmp eax, 0xffffffff
jne 0x49591f
lea eax, [esp + 0x10]
push 0x3e7
push eax
call fcn.00423a00
lea ecx, [esp + 0x18]
push ecx
push 0xa90
call fcn.00421db0
mov esi, dword [0x63c814]
mov ebx, dword [esp + 0x418]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x49581a
cmp dword [esi + 8], ebx
jne 0x4957e8
push esi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x4957f4
mov esi, dword [esi + 0x26a0]
cmp esi, ebp
jne 0x4957d6
jmp 0x49581a
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x440]
push 0x3e7
push edi
call fcn.00423900
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x18
push 2
lea eax, [esp + 0x14]
push 0x5e9cc4
push eax
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x49585d
lea eax, [esp + 0x12]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495840
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.005cceb0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x20
push eax
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, ebp
je 0x495887
cmp dword [eax + 0x52c], ebx
je 0x4958c4
mov eax, dword [eax + 0x890]
cmp eax, ebp
jne 0x495875
mov eax, dword [0x641548]
cmp eax, ebp
je 0x4958a2
cmp dword [eax + 0x340], ebx
je 0x4958da
mov eax, dword [eax + 0x3d4]
cmp eax, ebp
jne 0x495890
mov eax, dword [0x63709c]
cmp eax, ebp
je 0x495903
jmp 0x4958b0
cmp dword [eax + 0x444], ebx
je 0x4958ee
mov eax, dword [eax + 0x4bc]
cmp eax, ebp
jne 0x4958b0
jmp 0x495903
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x52c], ebp
call fcn.00434890
add esp, 8
jmp 0x495903
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0x340], ebp
call fcn.0053e670
jmp 0x495900
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x444], ebp
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, ebp
je 0x495766
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x495910
jmp 0x495766
cmp ebp, 1
jne 0x495a9f
lea edx, [esp + 0x10]
push 0x3e7
push edx
call fcn.00423a00
lea eax, [esp + 0x18]
push eax
push 0xa96
call fcn.00421db0
mov esi, dword [0x63c814]
mov ebx, dword [esp + 0x418]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x4959a4
lea esp, [esp]
cmp dword [esi + 8], ebx
jne 0x495972
push esi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x49597e
mov esi, dword [esi + 0x26a0]
cmp esi, ebp
jne 0x495960
jmp 0x4959a4
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x440]
push 0x3e7
push edi
call fcn.00423900
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x18
push 2
lea edx, [esp + 0x14]
push 0x5e9cc4
push edx
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x4959e0
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4959c3
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005cceb0
add esp, 0xc
lea edx, [esp + 0x10]
push 0x20
push edx
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, ebp
je 0x495a0a
cmp dword [eax + 0x52c], ebx
je 0x495a44
mov eax, dword [eax + 0x890]
cmp eax, ebp
jne 0x4959f8
mov eax, dword [0x641548]
cmp eax, ebp
je 0x495a25
cmp dword [eax + 0x340], ebx
je 0x495a5a
mov eax, dword [eax + 0x3d4]
cmp eax, ebp
jne 0x495a13
mov eax, dword [0x63709c]
cmp eax, ebp
je 0x495a83
mov edi, edi
cmp dword [eax + 0x444], ebx
je 0x495a6e
mov eax, dword [eax + 0x4bc]
cmp eax, ebp
jne 0x495a30
jmp 0x495a83
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x52c], ebp
call fcn.00434890
add esp, 8
jmp 0x495a83
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0x340], ebp
call fcn.0053e670
jmp 0x495a80
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x444], ebp
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, ebp
je 0x495766
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x495a90
jmp 0x495766
cmp dword [0x61702c], 2
jne 0x495c2f
cmp ebp, 1
jne 0x495c2f
lea edx, [esp + 0x10]
push 0x3e7
push edx
call fcn.00423a00
lea eax, [esp + 0x18]
push eax
push 0xa96
call fcn.00421db0
mov esi, dword [0x63c814]
mov ebx, dword [esp + 0x418]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x495b34
lea esp, [esp]
cmp dword [esi + 8], ebx
jne 0x495b02
push esi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x495b0e
mov esi, dword [esi + 0x26a0]
cmp esi, ebp
jne 0x495af0
jmp 0x495b34
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x440]
push 0x3e7
push edi
call fcn.00423900
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x18
push 2
lea edx, [esp + 0x14]
push 0x5e9cc4
push edx
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x495b70
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495b53
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005cceb0
add esp, 0xc
lea edx, [esp + 0x10]
push 0x20
push edx
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, ebp
je 0x495b9a
cmp dword [eax + 0x52c], ebx
je 0x495bd4
mov eax, dword [eax + 0x890]
cmp eax, ebp
jne 0x495b88
mov eax, dword [0x641548]
cmp eax, ebp
je 0x495bb5
cmp dword [eax + 0x340], ebx
je 0x495bea
mov eax, dword [eax + 0x3d4]
cmp eax, ebp
jne 0x495ba3
mov eax, dword [0x63709c]
cmp eax, ebp
je 0x495c13
mov edi, edi
cmp dword [eax + 0x444], ebx
je 0x495bfe
mov eax, dword [eax + 0x4bc]
cmp eax, ebp
jne 0x495bc0
jmp 0x495c13
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x52c], ebp
call fcn.00434890
add esp, 8
jmp 0x495c13
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0x340], ebp
call fcn.0053e670
jmp 0x495c10
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x444], ebp
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, ebp
je 0x495766
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x495c20
jmp 0x495766
call fcn.00493270
mov esi, eax
test esi, esi
jne 0x495dbf
lea edx, [esp + 0x10]
push 0x3e7
push edx
call fcn.00423a00
lea eax, [esp + 0x18]
push eax
push 0xa91
call fcn.00421db0
mov esi, dword [0x63c814]
mov ebx, dword [esp + 0x418]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x495cb6
cmp dword [esi + 8], ebx
jne 0x495c84
push esi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x495c90
mov esi, dword [esi + 0x26a0]
cmp esi, ebp
jne 0x495c72
jmp 0x495cb6
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x440]
push 0x3e7
push edi
call fcn.00423900
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x18
push 2
lea edx, [esp + 0x14]
push 0x5e9cc4
push edx
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x495cf2
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495cd5
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005cceb0
add esp, 0xc
lea edx, [esp + 0x10]
push 0x20
push edx
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, ebp
je 0x495d22
lea ebx, [ebx]
cmp dword [eax + 0x52c], ebx
je 0x495d64
mov eax, dword [eax + 0x890]
cmp eax, ebp
jne 0x495d10
mov eax, dword [0x641548]
cmp eax, ebp
je 0x495d42
jmp 0x495d30
cmp dword [eax + 0x340], ebx
je 0x495d7a
mov eax, dword [eax + 0x3d4]
cmp eax, ebp
jne 0x495d30
mov eax, dword [0x63709c]
cmp eax, ebp
je 0x495da3
jmp 0x495d50
cmp dword [eax + 0x444], ebx
je 0x495d8e
mov eax, dword [eax + 0x4bc]
cmp eax, ebp
jne 0x495d50
jmp 0x495da3
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x52c], ebp
call fcn.00434890
add esp, 8
jmp 0x495da3
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0x340], ebp
call fcn.0053e670
jmp 0x495da0
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x444], ebp
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, ebp
je 0x495766
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x495db0
jmp 0x495766
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x495dc5
mov dx, word [esp + 0x400]
mov dword [esi + 0x68], ebp
mov ebp, dword [esp + 0x408]
xor edi, edi
mov word [esi + 0x64], dx
mov dword [esi + 0x70], ebp
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], 0xb4
mov eax, dword [0x61702c]
push 0x616ef8
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], 0xffffffff
call ebx
cmp eax, 0xffffffff
jne 0x495fbc
mov ecx, dword [esp + 0x40c]
mov edx, dword [ecx]
push 6
push edi
push 0x616ef8
push str.firewall
push edx
call fcn.0047e8b0
add esp, 0x14
test eax, eax
jne 0x4955ea
lea eax, [esp + 0x10]
push 0x3e7
push eax
call fcn.00423a00
lea ecx, [esp + 0x18]
push ecx
push 0xa92
call fcn.00421db0
mov esi, dword [0x63c814]
add esp, 0x10
cmp esi, edi
je 0x495eab
cmp dword [esi + 8], ebp
jne 0x495e77
push esi
call fcn.00502d00
add esp, 4
test eax, eax
je 0x495e83
mov esi, dword [esi + 0x26a0]
cmp esi, edi
jne 0x495e65
jmp 0x495eab
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x440]
push 0x3e7
push edi
call fcn.00423900
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x18
xor edi, edi
push 2
lea eax, [esp + 0x14]
push 0x5e9cc4
push eax
call fcn.005e325e
add esp, 0xc
test eax, eax
jne 0x495eed
lea eax, [esp + 0x12]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495ed0
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.005cceb0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x20
push eax
call fcn.00552010
mov eax, dword [0x611900]
add esp, 8
cmp eax, edi
je 0x495f17
cmp dword [eax + 0x52c], ebp
je 0x495f54
mov eax, dword [eax + 0x890]
cmp eax, edi
jne 0x495f05
mov eax, dword [0x641548]
cmp eax, edi
je 0x495f32
cmp dword [eax + 0x340], ebp
je 0x495f6a
mov eax, dword [eax + 0x3d4]
cmp eax, edi
jne 0x495f20
mov eax, dword [0x63709c]
cmp eax, edi
je 0x495f93
jmp 0x495f40
cmp dword [eax + 0x444], ebp
je 0x495f7e
mov eax, dword [eax + 0x4bc]
cmp eax, edi
jne 0x495f40
jmp 0x495f93
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x52c], edi
call fcn.00434890
add esp, 8
jmp 0x495f93
lea edx, [esp + 0x10]
push edx
push edi
push eax
mov dword [eax + 0x340], edi
call fcn.0053e670
jmp 0x495f90
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
mov dword [eax + 0x444], edi
call fcn.0049d510
add esp, 0xc
mov eax, dword [0x616ef0]
cmp eax, edi
je 0x495fa6
mov eax, dword [eax + 0x80]
cmp eax, edi
jne 0x495f9c
push ebp
call fcn.00493360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3e8
ret
push esi
push 0x616ef8
call fcn.00493810
add esp, 8
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x3e8
ret