Function at 0x4239e7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
xor eax, eax
call dword [0x46fab5]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x423a3f
push 0x35
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4246e8
push 0x14
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x423e6c
push 0x18
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x423aa2
push 0x3e3
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x423d04
push 0x28
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 0xc]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004246ee
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 4
push dword [ebp - 0x24]
push 0x700b
push 0xffff
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x423b36
push 0x283
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x423ca3
push 0x2c
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x423c9e
push 0x30
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
call fcn.00422a84
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.004229fc
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0xc]
call fcn.00422a84
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.WS2_32.dll_getpeername]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x423bcb
push 0x3d8
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x423c42
push 0x30
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push 0
push dword [ebp - 0x18]
call fcn.00422a70
push 0x2c
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
xor eax, eax
call dword [0x46fab9]
add esp, 0xc
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x423c3d
push 0x45c
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
jmp 0x423c9e
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x423c6b
push 0x4bc
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
push eax
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x28
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042470a
push 0
push 0x28
push dword [ebp + 8]
call fcn.00422a70
jmp 0x423cff
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x423ccc
push 0x573
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
push eax
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x28
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042470a
push 0
push 0x28
push dword [ebp + 8]
call fcn.00422a70
jmp 0x423d29
push 0x28
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042470a
push 0
push 0x28
push dword [ebp + 8]
call fcn.00422a70
push 0x60
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
push 0x28
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
push 0x64
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0042362f
push 0x18
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042482e
push dword [ebp + 8]
call fcn.00422aa3
jmp 0x4246e8
cmp dword [ebp - 4], 2
jne 0x42409a
push 0x18
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x423eb2
push 0x3e3
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x423f60
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push 0
push 0x7010
push 0xffff
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x423f1c
push 0x8d0
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x423f60
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x423f52
push 0x92c
push 0x402e627
push 6
call fcn.0043e37c
add esp, 0xc
push eax
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x28
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
push 0x2c
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0042362f
push 0x18
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042482e
push dword [ebp + 8]
call fcn.00422aa3
jmp 0x4246e8
cmp dword [ebp - 4], 3
jne 0x424223
push 0x18
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4240e0
push 0x3e3
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x34
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
push 0x20
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
push 0x38
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0042362f
push 0x18
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042482e
push dword [ebp + 8]
call fcn.00422aa3
jmp 0x4246e8
cmp dword [ebp - 4], 4
jne 0x4243db
push 0x18
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 8], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xea
jne 0x42426c
push 0x2738
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x424298
push 0x3e3
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x34
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
push 0x20
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
push 0x38
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0042362f
push 0x18
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042482e
push dword [ebp + 8]
call fcn.00422aa3
jmp 0x4246e8
cmp dword [ebp - 4], 5
jne 0x424564
push 0x18
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x424421
push 0x3e3
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x30
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
push 0x20
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
push 0x34
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0042362f
push 0x18
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042482e
push dword [ebp + 8]
call fcn.00422aa3
jmp 0x4246e8
cmp dword [ebp - 4], 6
jne 0x4246e8
push 0x18
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4245aa
push 0x3e3
push 0x24
push dword [ebp + 8]
call fcn.00422a70
push 0x30
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x18], eax
push 0x24
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x1c], eax
push 0x20
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x20], eax
push 0x34
push dword [ebp + 8]
call fcn.00422a84
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0042362f
push 0x18
push dword [ebp + 8]
call fcn.00422a84
push eax
call fcn.0042482e
push dword [ebp + 8]
call fcn.00422aa3
mov esp, ebp
pop ebp
ret 4