Function at 0x442f0c
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push esi
push edi
mov eax, 0x5fe094
call fcn.0050acb0
mov esi, 0x5f0c0c
lea edi, [ebp - 0xc8]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], 0x10
mov eax, dword [0x5f0c8c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5f0c90]
mov dword [ebp - 0x38], eax
mov ax, word [0x5f0c94]
mov word [ebp - 0x34], ax
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], 1
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [0x5ef9f8], eax
cmp dword [0x5ef9f8], 0xffffffff
jne 0x442fbc
push str.create_gHeartBeatSocket_failed.
push 0x80
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0050e8ec
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x443288
push dword [0x5ef9f8]
push str.create_gHeartBeatSocket__d__success_.
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 0xc
push 4
lea ecx, [ebp - 0x44]
push ecx
push 4
push 0xffff
push dword [0x5ef9f8]
call sub.WSOCK32.DLL_setsockopt
test eax, eax
jge 0x443006
push 0x5fc13a
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 8
jmp 0x443019
push 0x5fc16c
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 8
mov word [ebp - 0xd8], 2
push 0x232b
call sub.WSOCK32.DLL_htons
mov word [ebp - 0xd6], ax
xor eax, eax
mov dword [ebp - 0xd4], eax
push 8
push 0
lea edx, [ebp - 0xd0]
push edx
call fcn.0050a57c
add esp, 0xc
push 0x10
lea ecx, [ebp - 0xd8]
push ecx
push dword [0x5ef9f8]
call sub.WSOCK32.DLL_bind
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push str.bind_iRet__d_
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 0xc
cmp dword [ebp - 0x40], 0xffffffff
jne 0x4430bb
call fcn.005153c4
push dword [eax]
call fcn.0050a9ac
pop ecx
push eax
call fcn.005153c4
push dword [eax]
push str.gHeartBeatSocket_bind_failed:errno_d_errstr_s
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 0x10
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x443288
push 1
push dword [0x5ef9f8]
call sub.WSOCK32.DLL_listen
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push str.listen_iRet__d_
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 0xc
cmp dword [ebp - 0x40], 0xffffffff
jne 0x443121
call fcn.005153c4
push dword [eax]
call fcn.0050a9ac
pop ecx
push eax
call fcn.005153c4
push dword [eax]
push str.gHeartBeatSocket_listen_failed:errno_d_errstr_s
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 0x10
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x443288
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0xe8]
push eax
push dword [0x5ef9f8]
call sub.WSOCK32.DLL_accept
mov dword [0x5ef9fc], eax
cmp dword [0x5ef9fc], 0xffffffff
jne 0x44317f
call fcn.005153c4
push dword [eax]
call fcn.0050a9ac
pop ecx
push eax
call fcn.005153c4
push dword [eax]
push str.accept_failed:errno_d_errstr_s
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 0x10
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x443288
push dword [0x5ef9fc]
push str.accept_gKeepAliveSock__d__
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 0xc
cmp dword [0x5ef9f4], 0xffffffff
je 0x4431cb
push dword [0x5ef9f4]
push str.gKeepAliveSock_gSocket__d__
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x443288
mov ecx, dword [0x5ef9fc]
mov dword [0x5ef9f4], ecx
push dword [0x5ef9f4]
push str.accept_gKeepAliveSock_gSocket__d__
call fcn.0045c640
push eax
call fcn.0045d448
add esp, 0xc
push 0
push 0x1fc
lea eax, [ebp - 8]
call fcn.0040177c
push eax
inc dword [ebp - 0x10]
call fcn.00466b24
add esp, 8
lea eax, [ebp - 8]
call fcn.00401a38
push eax
mov word [ebp - 0x1c], 0x14
push 0x142
lea eax, [ebp - 4]
call fcn.0040177c
push eax
inc dword [ebp - 0x10]
call fcn.00466b24
add esp, 8
lea eax, [ebp - 4]
call fcn.00401a38
mov edx, eax
mov ecx, dword [0x64f500]
mov eax, dword [ecx]
pop ecx
call fcn.00545c5c
mov dword [ebp - 0x48], eax
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00545e70
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00545e70
mov word [ebp - 0x1c], 8
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x443288
pop edi
pop esi
mov esp, ebp
pop ebp
ret