Function at 0x558ee0
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [ebp - 0x30], 1
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
push eax
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x558f9c
call fcn.0054cc20
push 0
push 0x3e8
mov esi, edx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0066b190
push 0
push 0xea60
push esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.0066b190
push 0
push 0x3c
mov esi, edx
mov dword [ebp - 0x1c], eax
push esi
push eax
call fcn.0066b190
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0
push 0x5a0
push esi
mov esi, dword [ebp - 0x1c]
mov ebx, eax
push esi
mov dword [ebp - 0x24], str._TitanSDK___02d:_02d:_02d._03d__socket__tcp_setopt_failed._port_d__err_s_n
call fcn.0066b190
mov ecx, edi
lea eax, [eax + eax*2]
shl eax, 3
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
jmp 0x55914a
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 2
mov word [ebp - 0x14], ax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x28]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x559047
call fcn.0054cc20
push 0
push 0x3e8
mov esi, edx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0066b190
push 0
push 0xea60
push esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.0066b190
push 0
push 0x3c
mov esi, edx
mov dword [ebp - 0x1c], eax
push esi
push eax
call fcn.0066b190
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0
push 0x5a0
push esi
mov esi, dword [ebp - 0x1c]
mov ebx, eax
push esi
mov dword [ebp - 0x24], str._TitanSDK___02d:_02d:_02d._03d__socket__tcp_bind_failed._port_d__err_s_n
call fcn.0066b190
mov ecx, edi
lea eax, [eax + eax*2]
shl eax, 3
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
jmp 0x55914a
push 5
push ebx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x5590c6
call fcn.0054cc20
push 0
push 0x3e8
mov esi, edx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0066b190
push 0
push 0xea60
push esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.0066b190
push 0
push 0x3c
mov esi, edx
mov dword [ebp - 0x1c], eax
push esi
push eax
call fcn.0066b190
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0
push 0x5a0
push esi
mov esi, dword [ebp - 0x1c]
mov ebx, eax
push esi
mov dword [ebp - 0x24], str._TitanSDK___02d:_02d:_02d._03d__socket__tcp_listen_failed._port_d__err_s_n
call fcn.0066b190
mov ecx, edi
lea eax, [eax + eax*2]
shl eax, 3
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
jmp 0x55914a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x5591b8
call fcn.0054cc20
push 0
push 0x3e8
mov esi, edx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0066b190
push 0
push 0xea60
push esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.0066b190
push 0
push 0x3c
mov esi, edx
mov dword [ebp - 0x1c], eax
push esi
push eax
call fcn.0066b190
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0
push 0x5a0
push esi
mov esi, dword [ebp - 0x1c]
mov ebx, eax
push esi
mov dword [ebp - 0x24], str._TitanSDK___02d:_02d:_02d._03d__socket__tcp_getname_failed._port_d__err_s_n
call fcn.0066b190
mov ecx, edi
lea eax, [eax + eax*2]
shl eax, 3
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
push dword [ebx]
mov eax, edi
mov edx, ecx
shl eax, 4
sub eax, edi
mov edi, esi
shl eax, 2
sub edi, eax
mov eax, esi
shl eax, 4
sub eax, esi
mov esi, dword [ebp - 0x20]
shl eax, 2
sub edx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x18], edx
sub esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push esi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00551730
push dword [ebp - 0x2c]
call fcn.00556c40
add esp, 0x20
mov eax, 0x67
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [0x7524de], ax
mov dword [0x7524d8], ebx
call fcn.0054cc20
push 0
push 0x3e8
mov esi, edx
mov ebx, eax
push esi
push ebx
call fcn.0066b190
push 0
push 0xea60
push esi
push ebx
mov edi, eax
call fcn.0066b190
push 0
push 0x3c
mov esi, edx
mov dword [ebp - 0x2c], eax
push esi
push eax
call fcn.0066b190
push dword [0x7524d8]
movzx ecx, word [0x7524de]
mov edx, dword [ebp - 0x2c]
push ecx
imul ecx, edi, 0x3e8
sub ebx, ecx
mov ecx, edx
shl ecx, 4
push ebx
sub ecx, edx
mov ebx, eax
shl ecx, 2
mov eax, edx
sub edi, ecx
mov ecx, ebx
shl ecx, 4
push edi
sub ecx, ebx
shl ecx, 2
sub eax, ecx
push eax
push 0
push 0x5a0
push esi
push edx
call fcn.0066b190
lea eax, [eax + eax*2]
shl eax, 3
sub ebx, eax
push ebx
push str._TitanSDK___02d:_02d:_02d._03d__socket__tcp_listen_ok._port_d__socket_d_n
call fcn.00551730
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret