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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x7e1a8c], 0
je 0x4e18d8
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 [0x7e1afc], eax
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x30
call fcn.00554100
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 0x4e195f
mov eax, dword [ebp - 0x50]
mov dword [0x7e1a8c], eax
test eax, eax
jne 0x4e1a04
push str.s_pWinsockInitData
push 0x20f
push str.C:_buildworker_steam_rel_client_win32_build_srccommonplatform_sockets_win32.cpp
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4e1946
int3
mov eax, dword [0x7e1a8c]
test eax, eax
jne 0x4e1a04
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 [0x7e1a8c], eax
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x88], 0x30
call fcn.00554100
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 [0x7e1a8c]
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 [0x7e1afc]
call fcn.004e1c00
push 0x190
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00554100
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 0x4e1a13
call fcn.004e1ee0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
mov byte [0x7e1a78], 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 0x4e1a2f
push eax
call edi
push 6
push 1
push 2
call esi
cmp eax, 0xffffffff
je 0x4e1a3f
push eax
call edi
call fcn.004e1ee0
cmp byte [0x7e1a94], 0
je 0x4e1a66
cmp byte [0x7e1a79], 0
je 0x4e1a66
mov eax, dword [0x7e1a8c]
mov byte [eax + 8], 1
mov byte [0x7e1a78], 1
push 6
push 1
push 2
xor edi, edi
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e1a84
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 [0x7e1a8c]
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 0x4e1ae6
mov eax, dword [0x7e1a8c]
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 [0x7e1a8c]
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 0x4e1b3c
mov eax, dword [0x7e1a8c]
mov dword [eax + 4], 0
call ebx
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x7e1a8c]
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