Function at 0x4562f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp dword [0x4beefc], 0
jne 0x456312
mov eax, 8
jmp 0x456678
cmp dword [ebx + 0xd6], 0
je 0x456325
mov eax, 0x10
jmp 0x456678
cmp dword [ebx + 0x102], 0
je 0x456338
mov eax, 0x10
jmp 0x456678
cmp dword [ebx + 0x8c], 0
je 0x45634b
mov eax, 0x10
jmp 0x456678
cmp dword [ebx + 0x78], 0
je 0x45635b
mov eax, 0x10
jmp 0x456678
cmp dword [ebx + 0x88], 0
je 0x45636e
mov eax, 0x10
jmp 0x456678
xor edx, edx
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x84], 0xb4
cmp dword [ebx + 0x44], 0
je 0x456388
xor ecx, ecx
mov dword [ebx + 0x48], ecx
push ebx
call fcn.00457ae8
cmp dword [ebx + 0xc], 7
pop ecx
jne 0x4563bc
mov esi, ebx
cmp dword [0x4bef08], 0
jne 0x4563ad
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
jmp 0x4563b9
push 0
push 1
push 2
push esi
call fcn.0045aa74
mov dword [ebx + 8], eax
cmp dword [ebx + 0xc], 6
jne 0x4563e9
mov esi, ebx
cmp dword [0x4bef08], 0
jne 0x4563da
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
jmp 0x4563e6
push 0
push 2
push 2
push esi
call fcn.0045aa74
mov dword [ebx + 8], eax
cmp dword [ebx + 8], 0xffffffff
jne 0x456416
mov esi, ebx
cmp dword [0x4bef08], 0
jne 0x456401
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456407
push esi
call fcn.0045adb4
push eax
push ebx
call fcn.00458714
add esp, 8
jmp 0x456678
cmp dword [ebp + 0x10], 0
je 0x45645a
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov edx, ebx
cmp dword [0x4bef08], 0
jne 0x456446
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
jmp 0x45645a
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
push edx
call fcn.0045a67c
mov word [ebp - 0x34], 2
test edi, edi
je 0x456489
mov esi, edi
mov dword [ebp - 8], ebx
cmp dword [0x4bef08], 0
jne 0x45647a
push esi
call sub.WSOCK32.dll_inet_addr
jmp 0x456484
push esi
mov eax, dword [ebp - 8]
push eax
call fcn.0045a1c4
mov dword [ebp - 0x30], eax
jmp 0x4564a8
mov esi, ebx
cmp dword [0x4bef08], 0
jne 0x45649d
push 0
call sub.WSOCK32.dll_htonl
jmp 0x4564a5
push 0
push esi
call fcn.0045a0fc
mov dword [ebp - 0x30], eax
mov si, word [ebp + 0xc]
cmp dword [0x4bef08], 0
mov edi, ebx
jne 0x4564bf
push esi
call sub.WSOCK32.dll_htons
jmp 0x4564c6
push esi
push edi
call fcn.0045a15c
mov word [ebp - 0x32], ax
mov esi, dword [ebx + 8]
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x4564e6
push 0x10
lea edx, [ebp - 0x34]
push edx
push esi
call sub.WSOCK32.dll_bind
jmp 0x4564f3
push 0x10
lea eax, [ebp - 0x34]
push eax
push esi
push edi
call fcn.004599f8
inc eax
jne 0x45651d
mov esi, ebx
cmp dword [0x4bef08], 0
jne 0x456508
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x45650e
push esi
call fcn.0045adb4
push eax
push ebx
call fcn.00458714
add esp, 8
jmp 0x456678
mov dword [ebp - 0x10], 1
cmp dword [ebx + 0xc], 7
jne 0x456533
mov dword [ebp - 0xc], 0x28
jmp 0x45653a
mov dword [ebp - 0xc], 3
mov eax, dword [ebx + 8]
mov edx, ebx
cmp dword [0x4bef08], 0
jne 0x456559
lea ecx, [ebp - 0x10]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
jmp 0x456569
lea ecx, [ebp - 0x10]
push ecx
push 0x8004667e
push eax
push edx
call fcn.00459bb0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
cmp dword [0x4bef08], 0
jne 0x456593
push esi
push 0x400
push edi
mov edx, dword [ebp - 0x14]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x4565a7
push esi
push 0x400
push edi
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.0045b6a0
test eax, eax
je 0x4565cd
mov eax, ebx
cmp dword [0x4bef08], 0
jne 0x4565bd
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x4565c3
push eax
call fcn.0045adb4
mov eax, 0x14
jmp 0x456678
cmp dword [ebx + 0xc], 7
jne 0x45666c
mov dword [ebx + 0x78], 1
xor edx, edx
mov dword [ebx + 0x80], edx
mov dword [ebp - 0x1c], 0x32
cmp dword [ebx + 0x44], 0
je 0x4565f8
xor ecx, ecx
mov dword [ebx + 0x30], ecx
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x20], ebx
cmp dword [0x4bef08], 0
jne 0x456613
push esi
push edi
call sub.WSOCK32.dll_listen
jmp 0x45661e
push esi
push edi
mov eax, dword [ebp - 0x20]
push eax
call fcn.0045a284
inc eax
jne 0x456676
mov dword [ebp - 0x24], ebx
cmp dword [0x4bef08], 0
jne 0x456636
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
jmp 0x456641
mov eax, dword [ebp - 0x24]
push eax
call fcn.0045adb4
mov esi, eax
cmp esi, 0x2733
jne 0x45664d
xor eax, eax
jmp 0x456678
push esi
push ebx
call fcn.00458714
add esp, 8
mov dword [ebx + 0x80], eax
xor edx, edx
mov dword [ebx + 0x78], edx
mov eax, dword [ebx + 0x80]
jmp 0x456678
mov dword [ebx + 0x88], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret