Function at 0x4883b0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5143fb
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1b8], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1b0], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1cc], eax
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x1c8], esi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x14], 0
jne 0x48844f
lea eax, [ebx + 0x28]
push eax
call edi
cmp dword [ebx + 0x14], 0
jne 0x48843f
mov dword [ebx + 0x14], 1
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x48843f
mov dword [ebx], 1
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x1b0]
cmp dword [ebx], 0
je 0x4886ca
test ecx, ecx
je 0x4886ca
cmp dword [ebp + 0x10], 0
je 0x4886ca
cmp dword [ebp + 0x1c], 0
je 0x488476
lea eax, [ebx + 0x28]
push eax
call edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
je 0x488488
mov dword [esi], 0xfffffffd
mov dword [ebp - 4], 0
cmp dword [ebx + 0x20], 0
jne 0x4884cf
push 0x118
call fcn.00472260
add esp, 4
mov edi, eax
test edi, edi
je 0x4884ba
push 0x118
push 0
push edi
call fcn.004b8570
add esp, 0xc
jmp 0x4884bc
xor edi, edi
mov dword [ebx + 0x20], edi
push 0x118
push 0
push edi
call fcn.004b8570
add esp, 0xc
mov edi, dword [ebx + 0x20]
mov dword [ebp - 0x1b4], edi
test edi, edi
je 0x48867b
cmp dword [ebx + 4], 0
jne 0x48860d
push dword [ebp + 8]
lea eax, [ebp - 0x1d8]
push eax
call fcn.00487b10
add esp, 8
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c4], esi
cmp esi, dword [ebp - 0x1d4]
je 0x4885f2
mov eax, dword [esi]
mov dword [ebp - 0x1ac], eax
cmp dword [eax + 0x10], 0x80
ja 0x48865c
push 0
push 2
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x48855c
mov dword [ebp - 0x1bc], 1
push 0x58c988
lea eax, [ebp - 0x1bc]
push eax
call fcn.004b84f4
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1c0], 0
push 4
lea eax, [ebp - 0x1a8]
push eax
push 0x1001
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 0x1001
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [ebp - 0x1ac]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x48864e
mov esi, dword [ebp - 0x1ac]
push dword [esi + 0x10]
push dword [esi + 0x18]
lea eax, [edi + 0x90]
push eax
call fcn.004b86d0
add esp, 0xc
mov eax, dword [esi + 0x10]
mov dword [edi + 0x110], eax
mov dword [ebx + 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d8]
call fcn.004453a0
mov esi, dword [ebp - 0x1c8]
cmp dword [ebx + 4], 0
je 0x488664
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1b0]
push edi
mov ecx, ebx
call fcn.004882c0
test eax, eax
je 0x488664
test esi, esi
je 0x48862e
mov dword [esi], 0
mov esi, dword [ebp - 0x1cc]
test esi, esi
je 0x48867b
push 0
call fcn.004c60d9
add esp, 4
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4886b6
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0
add esi, 4
jmp 0x488506
test esi, esi
je 0x488670
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [esi], eax
lea eax, [ebx + 0x20]
push eax
mov ecx, ebx
call fcn.00487a10
mov dword [ebp - 4], 0xffffffff
jmp 0x4886b6
cmp dword [ebp + 0x1c], 0
je 0x4886c6
lea ecx, [ebx + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x4886d6
test esi, esi
je 0x4886d4
mov dword [esi], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 0x18