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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x43
push 0
push 0
dec ecx
jne 0x45791c
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov ebx, 0x4670c0
mov esi, 0x467050
mov edi, 0x467080
xor eax, eax
push ebp
push 0x457ed5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x457ef0
call fcn.004045b8
call fcn.0045a7fc
cmp byte [0x464e88], 0
jne 0x457981
lea eax, [ebp - 0x1b4]
mov ecx, dword [0x4670fc]
mov edx, 0x457fa4
call fcn.00404870
mov eax, dword [ebp - 0x1b4]
call fcn.00462344
mov byte [ebp - 9], 0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, edi
mov edx, 0x457fb4
call fcn.004045b8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
mov word [ebp - 0x1b0], 2
push 0x19
call sub.wsock32.dll_htons
mov word [ebp - 0x1ae], ax
lea edx, [ebp - 0x1b8]
mov eax, dword [0x4670ec]
call fcn.004087dc
mov edx, dword [ebp - 0x1b8]
mov eax, 0x4670f0
call fcn.004045b8
mov eax, edi
mov edx, 0x457fe4
call fcn.004045b8
mov eax, dword [0x4670f0]
call fcn.00404824
cmp eax, 5
jge 0x457a45
push 0x458084
push dword [0x4670ec]
push 0x458098
lea edx, [ebp - 0x1c0]
xor eax, eax
call fcn.00408914
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x1bc]
mov edx, 4
call fcn.004048e4
mov eax, dword [ebp - 0x1bc]
call fcn.00462344
jmp 0x457eaf
mov eax, dword [0x4670f0]
call fcn.00404a24
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1ac], eax
push 0x10
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x465108]
mov eax, dword [eax]
call eax
mov dword [ebx], eax
cmp dword [ebx], 0xffffffff
jne 0x457ab3
lea edx, [ebp - 0x1c8]
xor eax, eax
call fcn.00408914
mov ecx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
mov edx, 0x4580a4
call fcn.00404870
mov eax, dword [ebp - 0x1c4]
call fcn.00462344
lea eax, [ebp - 4]
call fcn.00408904
jmp 0x457eaf
mov eax, edi
mov edx, 0x4580b4
call fcn.004045b8
push ebp
lea eax, [ebp - 0x1cc]
push eax
xor ecx, ecx
mov dl, 1
xor eax, eax
call fcn.004573a0
pop ecx
push ebp
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1d4]
mov ecx, dword [0x4670f0]
mov edx, 0x458140
call fcn.00404870
mov eax, dword [ebp - 0x1d4]
mov ecx, 0x458150
mov dl, 1
call fcn.004573a0
pop ecx
mov eax, dword [ebp - 0x1d0]
mov edx, 0x45815c
call fcn.00404970
je 0x457eaf
push ebp
lea eax, [ebp - 0x1d8]
push eax
mov ecx, 0x458168
mov dl, 1
mov eax, 0x458174
call fcn.004573a0
pop ecx
mov eax, dword [ebp - 0x1d8]
mov edx, 0x45815c
call fcn.00404970
je 0x457eaf
mov eax, edi
mov edx, 0x458188
call fcn.004045b8
push ebp
lea eax, [ebp - 0x1dc]
push eax
mov ecx, 0x458230
mov dl, 1
mov eax, dword [0x4670f8]
call fcn.004573a0
pop ecx
mov eax, dword [ebp - 0x1dc]
mov edx, 0x45815c
call fcn.00404970
je 0x457eaf
lea eax, [ebp - 0x10]
mov edx, 0x45823c
call fcn.004045fc
mov eax, edi
mov edx, 0x45824c
call fcn.004045b8
push ebp
lea eax, [ebp - 0x1e0]
push eax
push 0x458298
push dword [ebp - 0x10]
push dword [0x4670fc]
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.004048e4
mov eax, dword [ebp - 0x1e4]
mov ecx, 0x458150
mov dl, 1
call fcn.004573a0
pop ecx
mov eax, dword [ebp - 0x1e0]
mov edx, 0x45815c
call fcn.00404970
je 0x457eaf
mov eax, edi
mov edx, 0x4582a8
call fcn.004045b8
push ebp
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1ec]
mov ecx, dword [0x467058]
mov edx, 0x45833c
call fcn.00404870
mov eax, dword [ebp - 0x1ec]
mov ecx, 0x458150
mov dl, 1
call fcn.004573a0
pop ecx
mov eax, edi
mov edx, 0x458350
call fcn.004045b8
push ebp
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x1f4]
mov ecx, dword [0x467060]
mov edx, 0x45833c
inc ebp
add al, ch
sbb ecx, esp
cli
dec dword [ebx - 0x1f37b]
invalid
mov ecx, 0x458150
mov dl, 1
call fcn.004573a0
pop ecx
mov eax, dword [ebp - 0x1f0]
mov edx, 0x45815c
call fcn.00404970
je 0x457eaf
mov eax, edi
mov edx, 0x458400
call fcn.004045b8
push ebp
lea eax, [ebp - 0x1f8]
push eax
mov ecx, 0x458454
mov dl, 1
mov eax, 0x458460
call fcn.004573a0
pop ecx
mov eax, dword [ebp - 0x1f8]
mov edx, 0x45815c
call fcn.00404970
je 0x457eaf
push 0x458470
lea edx, [ebp - 0x1fc]
mov eax, 0x94
call fcn.004079a4
push dword [ebp - 0x1fc]
push 0x458098
push dword [0x467064]
push 0x458098
lea edx, [ebp - 0x200]
mov eax, dword [ebp - 8]
call fcn.00456e80
push dword [ebp - 0x200]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.004048e4
mov eax, dword [ebp - 0x10]
call fcn.00404824
mov dword [0x4670bc], eax
mov dword [ebx], 1
mov eax, edi
mov edx, 0x458480
call fcn.004045b8
mov eax, esi
mov edx, 0x4c
call fcn.00404bb0
jmp 0x457d6b
lea eax, [ebp - 0x10]
call fcn.00404a7c
mov edx, dword [ebx]
lea eax, [eax + edx - 1]
push eax
mov eax, esi
call fcn.00404a7c
mov ecx, 0x4c
pop edx
call fcn.00406f5c
push ebp
lea eax, [ebp - 0x204]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
call fcn.004573a0
pop ecx
add dword [ebx], 0x4c
mov eax, dword [0x4670bc]
sub eax, 0x4c
cmp eax, dword [ebx]
jge 0x457d33
mov eax, dword [0x4670bc]
sub eax, dword [ebx]
inc eax
mov dword [0x4670bc], eax
mov eax, edi
mov edx, 0x458550
call fcn.004045b8
mov eax, esi
mov edx, dword [0x4670bc]
call fcn.00404bb0
mov eax, esi
call fcn.00404a7c
mov ecx, 0x2b
mov edx, dword [0x4670bc]
call fcn.0040308c
lea eax, [ebp - 0x10]
call fcn.00404a7c
mov edx, dword [ebx]
lea eax, [eax + edx - 1]
push eax
mov eax, esi
call fcn.00404a7c
mov ecx, dword [0x4670bc]
pop edx
call fcn.00406f5c
push ebp
lea eax, [ebp - 0x208]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
call fcn.004573a0
pop ecx
push ebp
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x458150
mov dl, 1
mov eax, 0x45862c
call fcn.004573a0
pop ecx
mov edx, dword [ebp - 0x20c]
lea eax, [ebp - 0x10]
call fcn.004045fc
lea eax, [ebp - 0x10]
push eax
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00404a84
push ebp
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x458150
mov dl, 1
mov eax, 0x458638
call fcn.004573a0
pop ecx
push ebp
lea eax, [ebp - 0x214]
push eax
mov ecx, 0x458648
mov dl, 1
mov eax, 0x458654
call fcn.004573a0
pop ecx
mov eax, edi
mov edx, 0x458664
call fcn.004045b8
lea eax, [ebp - 4]
call fcn.00408904
mov eax, dword [ebp - 0x10]
mov edx, 0x458150
call fcn.00404970
jne 0x457eaf
mov byte [ebp - 9], 1
cmp byte [0x464e88], 0
jne 0x457eaa
lea eax, [ebp - 0x218]
mov ecx, dword [0x467058]
mov edx, 0x4586b4
call fcn.00404870
mov eax, dword [ebp - 0x218]
call fcn.00462344
call fcn.004538ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457edc
lea eax, [ebp - 0x218]
mov edx, 0x1a
call fcn.00404588
lea eax, [ebp - 0x10]
call fcn.00404564
ret