Function at 0x4192c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f43a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x451084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00419ce0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
call fcn.00430570
mov edx, dword [ebp + 0x10]
xor ecx, ecx
cmp word [edx], 2
push 6
setne cl
push 1
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
add esi, 4
add eax, 0x14
lea ebx, [ebp - 0x20]
lea edi, [ecx - 1]
and edi, 0xffffffeb
add edi, 0x17
push edi
push esi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp + 0xc], esi
call fcn.004174f0
cmp dword [eax], 0
jne 0x419374
xor eax, eax
mov dword [esi + 0x1c], edi
mov byte [esi + 0x20], 0
lea edi, [esi + 0x24]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, 7
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
cmp dword [ebp - 0x18], 0
je 0x419388
lea edx, [ebp - 0x18]
push edx
mov ecx, str.open
call fcn.0040ee20
mov edi, dword [esi]
mov dword [ebp + 0xc], 1
cmp edi, 0xffffffff
jne 0x41939d
mov edi, 0x2719
jmp 0x4193d4
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00430570
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
test edi, edi
jne 0x4193e1
call fcn.00430570
mov ecx, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4193f3
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.set_option
call fcn.0040ee20
mov edx, dword [ebp + 0x10]
mov edi, dword [esi]
xor ebx, ebx
cmp word [edx], 2
setne bl
dec ebx
and ebx, 0xfffffff4
add ebx, 0x1c
cmp edi, 0xffffffff
jne 0x419414
mov edi, 0x2719
jmp 0x419443
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x10]
push ebx
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov edi, eax
call fcn.00430570
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
test edi, edi
jne 0x419450
call fcn.00430570
mov ecx, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x419462
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.bind
call fcn.0040ee20
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x419470
mov esi, 0x2719
jmp 0x41949f
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push closesocket
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
call fcn.00430570
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x4194ac
call fcn.00430570
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4194be
lea edx, [ebp - 0x18]
push edx
mov ecx, str.listen
call fcn.0040ee20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc