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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x10412810], 0
je 0x100cda08
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 [0x1041287c], eax
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x30
call fcn.10101aa0
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 0x100cda8f
mov eax, dword [ebp - 0x50]
mov dword [0x10412810], eax
test eax, eax
jne 0x100cdb34
push str.s_pWinsockInitData
push 0x20f
push str.c:_buildslave_steam_rel_client_win32_build_srccommonplatform_sockets_win32.cpp
call fcn.10078380
add esp, 0xc
test al, al
jne 0x100cda76
int3
mov eax, dword [0x10412810]
test eax, eax
jne 0x100cdb34
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 [0x10412810], eax
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x88], 0x30
call fcn.10101aa0
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 [0x10412810]
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 [0x1041287c]
call fcn.100cdd10
push 0x190
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10101aa0
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 0x100cdb43
call fcn.100ce0a0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
mov byte [0x104127f8], 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 0x100cdb5f
push eax
call edi
push 6
push 1
push 2
call esi
cmp eax, 0xffffffff
je 0x100cdb6f
push eax
call edi
call fcn.100ce0a0
cmp byte [0x104128f8], 0
je 0x100cdb96
cmp byte [0x104127f9], 0
je 0x100cdb96
mov eax, dword [0x10412810]
mov byte [eax + 8], 1
mov byte [0x104127f8], 1
push 6
push 1
push 2
xor edi, edi
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x100cdbb4
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 [0x10412810]
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 0x100cdc16
mov eax, dword [0x10412810]
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 [0x10412810]
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 0x100cdc6c
mov eax, dword [0x10412810]
mov dword [eax + 4], 0
call ebx
mov edi, eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x10412810]
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