Function at 0x10018950
Capabilities:
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100423be
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100590e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x444], 0
je 0x10018b87
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [eax]
push 0
push 0
push dword [esi + 0x448]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x10018b05
push 0x10059014
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x10018aca
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x100189f5
push 0x1ca
call ebx
push eax
push str._CSockAcceptor::Accept__setsockopt_nodelay_failed_with__d__line:_d
call fcn.1000e120
add esp, 0xc
mov dword [ebp - 0x14], 0
push dword [esi + 0x44c]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push edi
push ecx
mov ecx, esi
mov dword [ebp - 4], 9
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x10018a7e
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10018a34
mov ecx, dword [eax + 8]
add eax, 8
push eax
call dword [ecx + 4]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0xd], al
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
test ecx, ecx
je 0x10018a5b
mov edx, dword [ecx + 8]
add ecx, 8
push ecx
call dword [edx + 8]
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10018990
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1d1
call ebx
push eax
push dword [esi + 0x24]
push dword [esi + 0x448]
push str._CSockAcceptor::Accept__m_sListen:_d_port:_d_CreateStream_failed_with_WSAGetLastError__:__d_at_line__d
push 4
call fcn.1001dae0
add esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xa
test eax, eax
je 0x10018a6a
mov ecx, dword [eax + 8]
add eax, 8
push eax
call dword [ecx + 8]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c1
call ebx
push eax
push dword [esi + 0x24]
push dword [esi + 0x448]
push str._CSockAcceptor::Accept__m_sListen:_d_port:_d_ioctlsocket_failed_with_WSAGetLastError__:__d_at_line__d
push 4
call fcn.1001dae0
add esp, 0x18
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0x2733
jne 0x10018b9b
cmp dword [esi + 0x44c], 0
je 0x10018b87
push 0x24
call fcn.1001fec7
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10018b47
push 0xffffffffffffffff
push esi
push dword [esi + 0x448]
mov ecx, eax
call fcn.10018740
mov ecx, eax
jmp 0x10018b49
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10018b5d
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x44c]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10018b87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0x2728
jne 0x10018c33
push str.accept_failed_with_WSAEMFILE_n
call fcn.1000e120
add esp, 4
push 0x1388
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x44c], 0
je 0x10018b87
push 0x24
call fcn.1001fec7
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x10018bfb
push 0x1388
push esi
push dword [esi + 0x448]
mov ecx, eax
call fcn.10018740
mov ecx, eax
jmp 0x10018bfd
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10018c11
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x44c]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
jmp 0x10018b7a
call ebx
cmp eax, 0x2726
jne 0x10018c63
push 0x1aa
call ebx
push eax
push dword [esi + 0x24]
push dword [esi + 0x448]
push str._CSockAcceptor::Accept__Listen:_d_port:_d_accept_failed_with_WSAGetLastError__:__d_at_line__d
push 4
call fcn.1001dae0
add esp, 0x18
push 0
call fcn.10030b5b
call fcn.1002eb0f
push dword [eax]
push str.accept_failed_with__d_n
call fcn.1000e120
add esp, 8
push 0x1b6
call ebx
push eax
push dword [esi + 0x24]
push dword [esi + 0x448]
push str.m_sListen:_d_port:_d_accept_failed_with_WSAGetLastError__:__d_at_line__d
push 4
call fcn.1001dae0
add esp, 0x18
call ebx
cmp eax, 0x2726
jne 0x10018a6a
push 0
call fcn.10030b5b
int3