Function at 0x5251c0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5ed284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x12c], 3
mov dword [ebp - 0x134], 0x10
mov byte [ebp - 0x125], 0x44
push esi
mov esi, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x525418
mov eax, dword [ebx]
sub eax, 2
je 0x525356
sub eax, 1
jne 0x525418
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov eax, 2
push 0xffffffffffffffff
mov word [ebp - 0x114], ax
call edi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x110], eax
call esi
mov word [ebp - 0x112], ax
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x11c], xmm0
push 0
mov word [ebp - 0x124], ax
call edi
push 0
mov dword [ebp - 0x120], eax
call esi
mov word [ebp - 0x122], ax
lea eax, [ebp - 0x124]
push 0x10
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x525418
mov edi, dword [sym.imp.WS2_32.dll_recvfrom]
nop dword [eax]
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x525418
dec eax
push 0x10
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x114]
push eax
push 0
push 1
lea eax, [ebp - 0x125]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 1
jne 0x525290
push ebx
call sym.FLAMESLauncher.exe_FSECommSetNonblocking
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x114], xmm0
xor esi, esi
nop dword [eax]
movsd xmm0, qword [0x57a478]
sub esp, 8
movsd qword [esp], xmm0
call sym.FLAMESLauncher.exe_FOSUtilityPauseProcessing
add esp, 8
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 1
lea eax, [ebp - 0x125]
push eax
push dword [ebx + 4]
call edi
cmp eax, 1
je 0x525326
inc esi
cmp esi, 7
jl 0x5252e0
jmp 0x525290
push 0x10
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x525290
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
mov dword [0x801658], 2
push 0x5a0100
push eax
call fcn.004f9620
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push 0x801654
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x5253d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
lea eax, [ebp - 0x104]
push str.FSECommConnect:_cannot_get_host___s__by_name___d_
push eax
call fcn.004f9620
lea eax, [ebp - 0x104]
push eax
push 0
push 0
call sym.FLAMESLauncher.exe_FMHAnnounceError
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x5253f3
nop
cmp dword [eax + 4], 2
je 0x52542b
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x130], eax
test eax, eax
jne 0x5253e0
push esi
push str.FSECommConnect:_cannot_get_host___s__by_name__no_IPv4_address_
lea eax, [ebp - 0x104]
push eax
call fcn.004f9620
lea eax, [ebp - 0x104]
push eax
push 0
push 0
call sym.FLAMESLauncher.exe_FMHAnnounceError
add esp, 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x525340
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.FSECommConnect:_Unable_to_connect_due_to_error__d._n
jmp 0x5253f9