Function at 0x497450
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x1068
call fcn.005d9990
mov eax, dword [esp + 0x107c]
push eax
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x497475
add esp, 0x1068
ret
mov al, byte [0x648c98]
push ebx
push ebp
push esi
xor ebp, ebp
test al, al
push edi
jne 0x4974ab
push 0x5f8bb0
call fcn.005dccfb
add esp, 4
cmp eax, ebp
je 0x4974cb
cmp byte [eax], 0
je 0x4974cb
mov edx, 0x648c98
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4974a1
mov edi, dword [esp + 0x1084]
cmp edi, 0xffffffff
jne 0x49764c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1068
ret
lea ecx, [esp + 0x10]
push 0x1068
push ecx
call fcn.004232e0
lea edx, [esp + 0x18]
push edx
push 0xa8d
call fcn.00424130
mov esi, dword [0x67b0c8]
mov ebx, dword [esp + 0x1098]
add esp, 0x10
cmp esi, ebp
je 0x497544
lea ecx, [ecx]
cmp dword [esi + 8], ebx
jne 0x497512
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x49751e
mov esi, dword [esi + 0x819c]
cmp esi, ebp
jne 0x497500
jmp 0x497544
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x18
push 2
lea ecx, [esp + 0x14]
push 0x5f7d7c
push ecx
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x497580
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497563
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.005daa60
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x20
push ecx
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebp
je 0x4975aa
cmp dword [eax + 0x1414], ebx
je 0x4975e4
mov eax, dword [eax + 0x2104]
cmp eax, ebp
jne 0x497598
mov eax, dword [0x68d418]
cmp eax, ebp
je 0x4975c5
cmp dword [eax + 0xc08], ebx
je 0x4975fa
mov eax, dword [eax + 0xd1c]
cmp eax, ebp
jne 0x4975b3
mov eax, dword [0x6696c8]
cmp eax, ebp
je 0x497623
mov edi, edi
cmp dword [eax + 0x1038], ebx
je 0x49760e
mov eax, dword [eax + 0x1128]
cmp eax, ebp
jne 0x4975d0
jmp 0x497623
lea edx, [esp + 0x10]
push edx
push eax
mov dword [eax + 0x1414], ebp
call fcn.00434cd0
add esp, 8
jmp 0x497623
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0xc08], ebp
call fcn.00546ec0
jmp 0x497620
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0x1038], ebp
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebp
je 0x497636
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x49762c
push ebx
call fcn.00494ff0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1068
ret
mov eax, dword [0x64903c]
test eax, eax
mov ebp, dword [esp + 0x107c]
mov ebx, dword [sym.imp.WSOCK32.dll_inet_addr]
jne 0x49796f
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x4977ef
lea eax, [esp + 0x10]
push 0x1068
push eax
call fcn.004232e0
lea ecx, [esp + 0x18]
push ecx
push 0xa90
call fcn.00424130
mov esi, dword [0x67b0c8]
mov ebx, dword [esp + 0x1098]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x4976ea
cmp dword [esi + 8], ebx
jne 0x4976b8
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x4976c4
mov esi, dword [esi + 0x819c]
cmp esi, ebp
jne 0x4976a6
jmp 0x4976ea
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x18
push 2
lea eax, [esp + 0x14]
push 0x5f7d7c
push eax
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x49772d
lea eax, [esp + 0x12]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497710
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.005daa60
add esp, 0xc
lea eax, [esp + 0x10]
push 0x20
push eax
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebp
je 0x497757
cmp dword [eax + 0x1414], ebx
je 0x497794
mov eax, dword [eax + 0x2104]
cmp eax, ebp
jne 0x497745
mov eax, dword [0x68d418]
cmp eax, ebp
je 0x497772
cmp dword [eax + 0xc08], ebx
je 0x4977aa
mov eax, dword [eax + 0xd1c]
cmp eax, ebp
jne 0x497760
mov eax, dword [0x6696c8]
cmp eax, ebp
je 0x4977d3
jmp 0x497780
cmp dword [eax + 0x1038], ebx
je 0x4977be
mov eax, dword [eax + 0x1128]
cmp eax, ebp
jne 0x497780
jmp 0x4977d3
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x1414], ebp
call fcn.00434cd0
add esp, 8
jmp 0x4977d3
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0xc08], ebp
call fcn.00546ec0
jmp 0x4977d0
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x1038], ebp
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebp
je 0x497636
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x4977e0
jmp 0x497636
cmp edi, 1
jne 0x49796f
lea edx, [esp + 0x10]
push 0x1068
push edx
call fcn.004232e0
lea eax, [esp + 0x18]
push eax
push 0xa96
call fcn.00424130
mov esi, dword [0x67b0c8]
mov ebx, dword [esp + 0x1098]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x497874
lea esp, [esp]
cmp dword [esi + 8], ebx
jne 0x497842
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x49784e
mov esi, dword [esi + 0x819c]
cmp esi, ebp
jne 0x497830
jmp 0x497874
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x18
push 2
lea edx, [esp + 0x14]
push 0x5f7d7c
push edx
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x4978b0
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497893
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005daa60
add esp, 0xc
lea edx, [esp + 0x10]
push 0x20
push edx
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebp
je 0x4978da
cmp dword [eax + 0x1414], ebx
je 0x497914
mov eax, dword [eax + 0x2104]
cmp eax, ebp
jne 0x4978c8
mov eax, dword [0x68d418]
cmp eax, ebp
je 0x4978f5
cmp dword [eax + 0xc08], ebx
je 0x49792a
mov eax, dword [eax + 0xd1c]
cmp eax, ebp
jne 0x4978e3
mov eax, dword [0x6696c8]
cmp eax, ebp
je 0x497953
mov edi, edi
cmp dword [eax + 0x1038], ebx
je 0x49793e
mov eax, dword [eax + 0x1128]
cmp eax, ebp
jne 0x497900
jmp 0x497953
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x1414], ebp
call fcn.00434cd0
add esp, 8
jmp 0x497953
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0xc08], ebp
call fcn.00546ec0
jmp 0x497950
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x1038], ebp
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebp
je 0x497636
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x497960
jmp 0x497636
cmp dword [0x64903c], 2
jne 0x497aff
cmp edi, 1
jne 0x497aff
lea edx, [esp + 0x10]
push 0x1068
push edx
call fcn.004232e0
lea eax, [esp + 0x18]
push eax
push 0xa96
call fcn.00424130
mov esi, dword [0x67b0c8]
mov ebx, dword [esp + 0x1098]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x497a04
lea esp, [esp]
cmp dword [esi + 8], ebx
jne 0x4979d2
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x4979de
mov esi, dword [esi + 0x819c]
cmp esi, ebp
jne 0x4979c0
jmp 0x497a04
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x18
push 2
lea edx, [esp + 0x14]
push 0x5f7d7c
push edx
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x497a40
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497a23
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005daa60
add esp, 0xc
lea edx, [esp + 0x10]
push 0x20
push edx
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebp
je 0x497a6a
cmp dword [eax + 0x1414], ebx
je 0x497aa4
mov eax, dword [eax + 0x2104]
cmp eax, ebp
jne 0x497a58
mov eax, dword [0x68d418]
cmp eax, ebp
je 0x497a85
cmp dword [eax + 0xc08], ebx
je 0x497aba
mov eax, dword [eax + 0xd1c]
cmp eax, ebp
jne 0x497a73
mov eax, dword [0x6696c8]
cmp eax, ebp
je 0x497ae3
mov edi, edi
cmp dword [eax + 0x1038], ebx
je 0x497ace
mov eax, dword [eax + 0x1128]
cmp eax, ebp
jne 0x497a90
jmp 0x497ae3
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x1414], ebp
call fcn.00434cd0
add esp, 8
jmp 0x497ae3
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0xc08], ebp
call fcn.00546ec0
jmp 0x497ae0
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x1038], ebp
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebp
je 0x497636
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x497af0
jmp 0x497636
call fcn.00494ef0
mov esi, eax
test esi, esi
jne 0x497c8f
lea edx, [esp + 0x10]
push 0x1068
push edx
call fcn.004232e0
lea eax, [esp + 0x18]
push eax
push 0xa91
call fcn.00424130
mov esi, dword [0x67b0c8]
mov ebx, dword [esp + 0x1098]
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
je 0x497b86
cmp dword [esi + 8], ebx
jne 0x497b54
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x497b60
mov esi, dword [esi + 0x819c]
cmp esi, ebp
jne 0x497b42
jmp 0x497b86
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x18
push 2
lea edx, [esp + 0x14]
push 0x5f7d7c
push edx
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x497bc2
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497ba5
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005daa60
add esp, 0xc
lea edx, [esp + 0x10]
push 0x20
push edx
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebp
je 0x497bf2
lea ebx, [ebx]
cmp dword [eax + 0x1414], ebx
je 0x497c34
mov eax, dword [eax + 0x2104]
cmp eax, ebp
jne 0x497be0
mov eax, dword [0x68d418]
cmp eax, ebp
je 0x497c12
jmp 0x497c00
cmp dword [eax + 0xc08], ebx
je 0x497c4a
mov eax, dword [eax + 0xd1c]
cmp eax, ebp
jne 0x497c00
mov eax, dword [0x6696c8]
cmp eax, ebp
je 0x497c73
jmp 0x497c20
cmp dword [eax + 0x1038], ebx
je 0x497c5e
mov eax, dword [eax + 0x1128]
cmp eax, ebp
jne 0x497c20
jmp 0x497c73
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x1414], ebp
call fcn.00434cd0
add esp, 8
jmp 0x497c73
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [eax + 0xc08], ebp
call fcn.00546ec0
jmp 0x497c70
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
mov dword [eax + 0x1038], ebp
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebp
je 0x497636
mov eax, dword [eax + 0x14c]
cmp eax, ebp
jne 0x497c80
jmp 0x497636
push ebp
push 0x132
push esi
call fcn.00425550
mov dx, word [esp + 0x108c]
mov ebp, dword [esp + 0x1094]
add esp, 0xc
mov word [esi + 0x132], dx
mov dword [esi + 0x134], edi
mov dword [esi + 0x13c], ebp
mov dword [esi + 0x138], 0
mov dword [esi + 0x140], 0xb4
mov eax, dword [0x64903c]
push 0x648c98
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], 0xffffffff
call ebx
cmp eax, 0xffffffff
jne 0x497e9c
mov ecx, dword [esp + 0x108c]
mov edx, dword [ecx]
push 6
xor ebx, ebx
push ebx
push 0x648c98
push str.firewall
push edx
call fcn.0047fc10
add esp, 0x14
test eax, eax
jne 0x4974bb
lea eax, [esp + 0x10]
push 0x1068
push eax
call fcn.004232e0
lea ecx, [esp + 0x18]
push ecx
push 0xa92
call fcn.00424130
mov esi, dword [0x67b0c8]
add esp, 0x10
cmp esi, ebx
je 0x497d94
lea ecx, [ecx]
cmp dword [esi + 8], ebp
jne 0x497d62
push esi
call fcn.00508d40
add esp, 4
test eax, eax
je 0x497d6e
mov esi, dword [esi + 0x819c]
cmp esi, ebx
jne 0x497d50
jmp 0x497d94
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x440]
push 0x1068
push edi
call fcn.00425550
push esi
call fcn.00598080
push esi
push edi
call fcn.00597e60
add esp, 0x18
push 2
lea eax, [esp + 0x14]
push 0x5f7d7c
push eax
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x497dd0
lea eax, [esp + 0x12]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497db3
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.005daa60
add esp, 0xc
lea eax, [esp + 0x10]
push 0x20
push eax
call fcn.0055ac10
mov eax, dword [0x634560]
add esp, 8
cmp eax, ebx
je 0x497dfa
cmp dword [eax + 0x1414], ebp
je 0x497e34
mov eax, dword [eax + 0x2104]
cmp eax, ebx
jne 0x497de8
mov eax, dword [0x68d418]
cmp eax, ebx
je 0x497e15
cmp dword [eax + 0xc08], ebp
je 0x497e4a
mov eax, dword [eax + 0xd1c]
cmp eax, ebx
jne 0x497e03
mov eax, dword [0x6696c8]
cmp eax, ebx
je 0x497e73
mov edi, edi
cmp dword [eax + 0x1038], ebp
je 0x497e5e
mov eax, dword [eax + 0x1128]
cmp eax, ebx
jne 0x497e20
jmp 0x497e73
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [eax + 0x1414], ebx
call fcn.00434cd0
add esp, 8
jmp 0x497e73
lea edx, [esp + 0x10]
push edx
push ebx
push eax
mov dword [eax + 0xc08], ebx
call fcn.00546ec0
jmp 0x497e70
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
mov dword [eax + 0x1038], ebx
call fcn.0049fd30
add esp, 0xc
mov eax, dword [0x648c90]
cmp eax, ebx
je 0x497e86
mov eax, dword [eax + 0x14c]
cmp eax, ebx
jne 0x497e7c
push ebp
call fcn.00494ff0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1068
ret
push esi
push 0x648c98
call fcn.004954a0
add esp, 8
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x1068
ret