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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x7dd790], 0
je 0x4df458
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 [0x7dd7fc], eax
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x30
call fcn.0054f8a0
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 0x4df4df
mov eax, dword [ebp - 0x50]
mov dword [0x7dd790], eax
test eax, eax
jne 0x4df584
push str.s_pWinsockInitData
push 0x20f
push str.c:_buildslave_steam_rel_client_win32_build_srccommonplatform_sockets_win32.cpp
call fcn.00536d10
add esp, 0xc
test al, al
jne 0x4df4c6
int3
mov eax, dword [0x7dd790]
test eax, eax
jne 0x4df584
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 [0x7dd790], eax
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x88], 0x30
call fcn.0054f8a0
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 [0x7dd790]
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 [0x7dd7fc]
call fcn.004df760
push 0x190
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054f8a0
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 0x4df593
call fcn.004dfaf0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
mov byte [0x7dd778], 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 0x4df5af
push eax
call edi
push 6
push 1
push 2
call esi
cmp eax, 0xffffffff
je 0x4df5bf
push eax
call edi
call fcn.004dfaf0
cmp byte [0x7dd878], 0
je 0x4df5e6
cmp byte [0x7dd779], 0
je 0x4df5e6
mov eax, dword [0x7dd790]
mov byte [eax + 8], 1
mov byte [0x7dd778], 1
push 6
push 1
push 2
xor edi, edi
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4df604
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 [0x7dd790]
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 0x4df666
mov eax, dword [0x7dd790]
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 [0x7dd790]
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 0x4df6bc
mov eax, dword [0x7dd790]
mov dword [eax + 4], 0
call ebx
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x7dd790]
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