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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x7da690], 0
je 0x4df2d8
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 [0x7da6fc], eax
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x30
call fcn.0054cfa0
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 0x4df35f
mov eax, dword [ebp - 0x50]
mov dword [0x7da690], eax
test eax, eax
jne 0x4df404
push str.s_pWinsockInitData
push 0x20f
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonplatform_sockets_win32.cpp
call fcn.00534490
add esp, 0xc
test al, al
jne 0x4df346
int3
mov eax, dword [0x7da690]
test eax, eax
jne 0x4df404
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 [0x7da690], eax
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x88], 0x30
call fcn.0054cfa0
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 [0x7da690]
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 [0x7da6fc]
call fcn.004df5e0
push 0x190
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054cfa0
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 0x4df413
call fcn.004df970
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
mov byte [0x7da678], 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 0x4df42f
push eax
call edi
push 6
push 1
push 2
call esi
cmp eax, 0xffffffff
je 0x4df43f
push eax
call edi
call fcn.004df970
cmp byte [0x7da778], 0
je 0x4df466
cmp byte [0x7da679], 0
je 0x4df466
mov eax, dword [0x7da690]
mov byte [eax + 8], 1
mov byte [0x7da678], 1
push 6
push 1
push 2
xor edi, edi
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4df484
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 [0x7da690]
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 0x4df4e6
mov eax, dword [0x7da690]
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 [0x7da690]
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 0x4df53c
mov eax, dword [0x7da690]
mov dword [eax + 4], 0
call ebx
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x7da690]
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