Function at 0x41dfff
Capabilities:
Create tcp socket
Create udp socket
Start tcp server

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4538d8
push 0x43e9e0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x4074
call fcn.0043dba0
mov eax, dword [0x4564f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
push 0x4059a8
lea ecx, [ebp - 0x3c]
call fcn.0044efe3
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x41e093
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00414575
mov eax, dword [eax]
mov dword [ebp - 0x54], ebx
mov ecx, dword [0x458858]
mov dword [ebp - 0x50], ecx
push eax
push 0x405990
lea ecx, [ebp - 0x854]
jmp 0x41e202
lea edi, [esi + 0x14]
mov word [edi], 2
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x18], eax
movzx eax, word [esi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x16], ax
push 0x10
push edi
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41e112
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00414575
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1064], ebx
mov edx, dword [0x458858]
mov dword [ebp - 0x1060], edx
push eax
push dword [esi + 0xc]
push ecx
push 0x405974
push 0xc
lea ecx, [ebp - 0x1864]
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0x14
jmp 0x41e212
push accept
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x41e159
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00414575
mov eax, dword [eax]
mov dword [ebp - 0x3084], ebx
mov ecx, dword [0x458858]
mov dword [ebp - 0x3080], ecx
push eax
push 0x40595c
lea ecx, [ebp - 0x3884]
jmp 0x41e202
mov edi, dword [0x458858]
cmp edi, ebx
je 0x41e1a7
push 0xc
push 1
mov ecx, edi
call fcn.00414777
test al, al
je 0x41e1a7
mov eax, dword [esi + 4]
mov dword [ebp - 0x2074], ebx
mov dword [ebp - 0x2070], edi
push dword [esi + 0xc]
push eax
push 0x40592c
push 0xc
lea ecx, [ebp - 0x2874]
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0x10
mov ecx, eax
call fcn.0044ef88
mov dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x41e24f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x41e221
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00414575
mov eax, dword [eax]
mov dword [ebp - 0x85c], ebx
mov ecx, dword [0x458858]
mov dword [ebp - 0x858], ecx
push eax
push 0x405914
lea ecx, [ebp - 0x105c]
push 0xc
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
lea ecx, [ebp - 0x34]
call fcn.00413720
mov dword [ebp - 4], 0xfffffffe
call fcn.0041e35a
lea ecx, [ebp - 0x3c]
call fcn.0044f049
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043db8b
leave
ret
mov edi, dword [0x458858]
cmp edi, ebx
je 0x41e2ad
push 0xc
push 1
mov ecx, edi
call fcn.00414777
test al, al
je 0x41e2ad
mov dword [ebp - 0x186c], ebx
mov dword [ebp - 0x1868], edi
push dword [ebp - 0x2a]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x4058ec
push 0xc
lea ecx, [ebp - 0x206c]
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0x10
mov ecx, eax
call fcn.0044ef88
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0x1388
mov dword [ebp - 0x44], 0x1f4
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 0xc
lea eax, [ebp - 0x4c]
push eax
push 0x98000004
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41e31c
mov dword [ebp - 0x287c], ebx
mov eax, dword [0x458858]
mov dword [ebp - 0x2878], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x4058c8
push 0xc
lea ecx, [ebp - 0x307c]
call fcn.0044ef27
push eax
call fcn.0044ed72
add esp, 0xc
mov ecx, eax
call fcn.0044ef88
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.00414897
push 0x24c
call fcn.0041468a
cmp eax, ebx
je 0x41e341
push dword [ebp - 0x38]
push esi
mov ecx, eax
call fcn.0041dfa6
jmp 0x41e343
xor eax, eax
push eax
lea ecx, [esi + 0x48]
call fcn.0044e8b6
mov ecx, edi
call fcn.004148b4
jmp 0x41e1a7