Function at 0x4a0ee6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push 0x6c
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 1
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov ebx, eax
xor ecx, ecx
test ebx, ebx
je 0x4a0f36
mov dword [ebx], vtable.ssh::SSocket.0
jmp 0x4a0f38
mov ebx, ecx
mov eax, dword [ebp - 0x3c]
push 0x17
pop edx
mov dword [ebx + 0xc], eax
push 2
pop eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 4], ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x34], edi
xor edi, edi
cmp dword [ebp + 0x18], eax
push ecx
cmove edi, edx
mov dword [ebx + 0x28], ecx
cmp dword [ebp + 0x18], 1
push 1
cmove edi, eax
mov dword [ebx + 0x3c], ecx
test edi, edi
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], ecx
cmove edi, eax
mov dword [ebx + 0x60], ecx
push edi
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x50], ecx
mov dword [ebp - 0x48], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x4c], esi
mov dword [ebx + 8], esi
cmp esi, 0xffffffff
jne 0x4a0fae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 4], str.Network_error__winsock_.
jmp 0x4a111d
and dword [ebx + 0x40], 0
lea eax, [ebp - 0x50]
push 4
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1c
pop eax
cmp edi, 0x17
jne 0x4a1010
push eax
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
mov esi, 0x4da434
cmp dword [ebp - 0x38], 0
push edi
pop eax
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x28]
jne 0x4a0ff7
mov esi, 0x4da444
push dword [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov word [ebp - 0x2e], ax
jmp 0x4a106d
push 2
pop eax
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4a1048
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4a1048
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xff000000
sub eax, 0x7f000000
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x34], eax
jmp 0x4a1060
cmp dword [ebp - 0x38], 0
je 0x4a1055
push 0x7f000001
jmp 0x4a1057
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
pop eax
push 0x17
pop edx
push 0x1c
pop ecx
cmp edi, edx
cmove eax, ecx
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4a10a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a10a8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4a0fa2
push Ordinal_1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4a109c
mov ecx, dword [ebp - 0x44]
push 1
push esi
call fcn.004a0ce8
mov edi, eax
test edi, edi
je 0x4a10d6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], edi
jmp 0x4a111d
mov esi, dword [ebp - 0x44]
mov edx, ebx
mov ecx, dword [esi]
call fcn.0049fe1b
push 2
pop eax
cmp dword [ebp - 0x48], eax
jne 0x4a111d
cmp dword [ebp + 0x18], 0
jne 0x4a111d
push eax
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x40]
call fcn.004a0ee6
test eax, eax
je 0x4a111d
cmp dword [eax + 4], 0
jne 0x4a1116
mov dword [eax + 0x64], ebx
mov dword [ebx + 0x68], eax
jmp 0x4a111d
mov ecx, eax
call fcn.004803c4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x14