Function at 0x100297f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1024ed04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x10029816
cmp word [eax], 0
je 0x10029816
xor ecx, ecx
jmp 0x1002981b
mov ecx, 1
test ecx, ecx
mov esi, str.0.0.0.0
cmove esi, eax
mov ecx, esi
call fcn.10024370
mov edx, dword [ebp + 0xc]
mov ecx, esi
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x38]
push eax
call fcn.10024420
add esp, 4
test eax, eax
je 0x10029a49
mov ax, word [ebp - 0x38]
push 6
mov word [edi + 0x54], ax
push 1
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [edi + 0x5c], ecx
cmp ecx, 0xffffffff
je 0x10029a49
mov edx, dword [edi + 0x38]
test edx, edx
je 0x10029882
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x10029882
mov esi, 1
jmp 0x10029887
mov eax, dword [edi + 0x3c]
xor esi, esi
mov ebx, dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x98000004
push ecx
mov dword [ebp - 0xc], edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100298cc
call esi
cmp eax, 0x2733
je 0x100298cc
test eax, eax
jne 0x10029a72
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x5c]
call fcn.10024cd0
test eax, eax
jne 0x10029a72
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push dword [edi + 0x5c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x10029a72
cmp word [ebp - 0x38], 2
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
push eax
lea eax, [ebp - 0x38]
push eax
push dword [edi + 0x5c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10029a36
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x5c]
call dword [eax + 0x124]
cmp eax, 2
je 0x10029a20
push dword [edi + 0x18]
push dword [edi + 0x5c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10029a0d
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0xb5367df1
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0x11cfcbac
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0x8000ca95
push eax
push 0xc8000006
push dword [edi + 0x5c]
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 0
call ebx
mov eax, dword [ebp - 0x18]
push 0
push 0
mov dword [edi + 0x48], eax
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0xb5367df2
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11cfcbac
push eax
push 0xc8000006
push dword [edi + 0x5c]
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 0
call ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x5c]
mov dword [edi + 0x4c], eax
call fcn.10024ad0
mov dword [edi + 0x50], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10134fc2
mov esp, ebp
pop ebp
ret 8
call esi
push eax
push str.CTcpServer::CreateListenSocket
push 6
mov ecx, edi
call fcn.100294e0
jmp 0x10029a5d
call fcn.10025270
push eax
push str.CTcpServer::CreateListenSocket
push 5
mov ecx, edi
call fcn.100294e0
jmp 0x10029a5d
call esi
push eax
push str.CTcpServer::CreateListenSocket
push 4
mov ecx, edi
call fcn.100294e0
jmp 0x10029a5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov dword [edi + 0x68], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10134fc2
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1001f800
int3