Function at 0x4deea0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x7da5d0], 0
je 0x4deeb8
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ws2_32
call ebx
push 0x2c
mov dword [0x7da63c], eax
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x30
call fcn.0054caf0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push str.SteamWinsockInitFakeClass_1
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x4def3f
mov eax, dword [ebp - 0x50]
mov dword [0x7da5d0], eax
test eax, eax
jne 0x4defe4
push str.s_pWinsockInitData
push 0x20f
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonplatform_sockets_win32.cpp
call fcn.00533fe0
add esp, 0xc
test al, al
jne 0x4def26
int3
mov eax, dword [0x7da5d0]
test eax, eax
jne 0x4defe4
push dword [ebp - 0x44]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_UnregisterClassW]
push esi
push edi
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x2c
mov dword [0x7da5d0], eax
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x88], 0x30
call fcn.0054caf0
add esp, 0xc
lea esi, [ebp - 0x88]
mov ecx, 0xc
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 0
call ebx
mov dword [ebp - 0x44], eax
mov eax, dword [0x7da5d0]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x30], str.SteamWinsockInitFakeClass_1
call dword [sym.imp.USER32.dll_RegisterClassExW]
push dword [0x7da63c]
call fcn.004df1c0
push 0x190
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054caf0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x4deff3
call fcn.004df550
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
mov byte [0x7da5b8], al
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 0x11
push 2
push 2
call esi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x4df00f
push eax
call edi
push 6
push 1
push 2
call esi
cmp eax, 0xffffffff
je 0x4df01f
push eax
call edi
call fcn.004df550
cmp byte [0x7da6b8], 0
je 0x4df046
cmp byte [0x7da5b9], 0
je 0x4df046
mov eax, dword [0x7da5d0]
mov byte [eax + 8], 1
mov byte [0x7da5b8], 1
push 6
push 1
push 2
xor edi, edi
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4df064
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
push dword [0x7da5d0]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4660ddf3
push 0x10
push eax
push 0xc8000006
push esi
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x4df0c6
mov eax, dword [0x7da5d0]
mov dword [eax], edi
call ebx
mov edi, eax
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x24], 0x7fda2e11
push eax
mov eax, dword [0x7da5d0]
push 4
add eax, 4
mov dword [ebp - 0x20], 0x436f8630
push eax
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0x36f531a0
push eax
push 0xc8000006
push esi
mov dword [ebp - 0x18], 0x57c1eea6
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x4df11c
mov eax, dword [0x7da5d0]
mov dword [eax + 4], 0
call ebx
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x7da5d0]
push dword [eax]
push 5
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret