Function at 0x4121b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x10
mov eax, dword [0x42f5cc]
and eax, 1
je 0x4121f9
push str.tcp_connect
push 0x426a64
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414be4
add esp, 0xc
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
mov eax, dword [0x42f5cc]
and eax, 1
je 0x41224b
mov ecx, dword [0x42f5c8]
push ecx
push 0x20
call fcn.00415811
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.inso___lx
mov eax, dword [0x42f5c8]
push eax
call fcn.00414be4
add esp, 0xc
mov ecx, dword [0x42f5c8]
push ecx
push 0xa
call fcn.00415811
add esp, 8
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x27]
and ecx, 0x200
je 0x412261
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
jmp 0x4122cb
call fcn.0040cb50
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x412290
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_accept]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41247e
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00412490
add esp, 4
test eax, eax
jge 0x4122b1
mov edx, dword [ebp - 0x28]
push edx
call fcn.00415b3d
add esp, 4
jmp 0x41247e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x22]
mov word [eax + 0x22], dx
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x2b]
push ecx
call fcn.00410820
add esp, 8
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x41230e
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x2b]
push ecx
call fcn.00411d20
add esp, 4
jmp 0x41247e
mov edx, dword [ebp - 4]
push edx
call fcn.004073d0
add esp, 4
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], 1
push 4
lea edx, [ebp - 8]
push edx
push 0x100
push 0xffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], 1
push 4
lea ecx, [ebp - 8]
push ecx
push 1
push 6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x28]
mov cx, word [ebp - 0x1e]
mov word [eax + 0x20], cx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x18], 0
je 0x41239f
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
cmp eax, dword [0x42f3e0]
jne 0x4123ab
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x42f3a4]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x27]
and ecx, 0x200
je 0x4123d0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x27], 1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004124d0
add esp, 4
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x24], al
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x2b]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004115d0
add esp, 4
mov eax, dword [0x42f470]
add eax, 1
mov dword [0x42f470], eax
mov ecx, 2
mov edx, dword [ebp - 0x24]
mov word [edx + 8], cx
mov eax, 0x96
mov ecx, dword [ebp - 0x24]
mov word [ecx + 0xe], ax
mov edx, dword [ebp - 0x24]
mov eax, dword [0x42f3f8]
mov dword [edx + 0x60], eax
mov ecx, dword [0x42f3f8]
add ecx, 0xfa00
mov dword [0x42f3f8], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x60]
mov dword [edx + 0x54], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x7c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x7c]
mov dword [edx + 0x50], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x50]
mov dword [edx + 0x4c], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00410a50
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret