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

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push ebx
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x462edb
pop edi
mov dword [0x76a744], 0
mov dword [0x76a960], 0xffffffff
xor al, al
pop ebx
add esp, 0x1a0
ret
mov ebx, dword [esp + 0x1b0]
mov word [0x76a748], 2
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x1ac]
mov word [0x76a74a], ax
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
push 2
mov dword [0x76a74c], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x76a744], eax
jne 0x462f3b
mov dword [0x76a960], eax
pop edi
mov dword [0x76a744], 0
xor al, al
pop ebx
add esp, 0x1a0
ret
cmp byte [0x759601], 3
jne 0x462f58
mov al, byte [0x759600]
mov byte [0x759601], 0x30
sar al, 2
mov byte [0x759600], al
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov edx, ecx
mov esi, edi
mov edi, 0x76a85c
mov al, byte [0x76c0a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, al
mov word [0x76aa6e], bx
jne 0x462f90
mov byte [0x76c0a4], 8
push ebp
mov ebp, dword [esp + 0x1bc]
cmp ebp, 0x76a758
je 0x463099
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
mov ax, word [ebp]
push 0x10
not ecx
dec ecx
push ebx
mov esi, ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x19], bx
push ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x1c], ax
call fcn.00471e67
mov dx, word [ebp + 2]
mov byte [esp + 0x20], al
push 0x10
lea eax, [esp + 0x20]
push ebx
push eax
mov word [esp + 0x28], dx
call fcn.00471e67
mov cx, word [esi + ebp - 2]
push 0x10
lea edx, [esp + 0x2c]
push ebx
push edx
mov byte [esp + 0x39], al
mov word [esp + 0x34], cx
call fcn.00471e67
mov byte [esp + 0x3a], al
mov eax, dword [esp + 0x3a]
mov ecx, dword [esp + 0x39]
mov edx, dword [esp + 0x38]
and eax, 0xff
and ecx, 0xff
xor eax, ecx
and edx, 0xff
xor eax, edx
mov ecx, esi
mov dword [0x76a740], eax
mov esi, ebp
lea eax, [eax + eax + 2]
mov edi, 0x76a758
sub ecx, eax
add esp, 0x24
mov edx, ecx
mov dword [esp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax - 2]
xor esi, esi
test edi, edi
jbe 0x463099
jmp 0x463065
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, esi
sub ecx, eax
push 0x10
add ecx, edx
lea eax, [esp + 0x14]
push 0
push eax
mov dx, word [ecx + ebp]
mov word [esp + 0x1c], dx
call fcn.00471e67
xor al, bl
add esp, 0xc
mov byte [ebx + 0x76bb7c], al
add esi, 2
inc ebx
cmp esi, edi
jb 0x463061
mov edi, dword [esp + 0x1c0]
or ecx, 0xffffffff
xor eax, eax
pop ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x76a964
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c0]
test edi, edi
je 0x4630fd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x76ba74
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
mov byte [0x76bb78], 1
pop ebx
add esp, 0x1a0
ret
pop esi
pop edi
mov byte [0x76bb78], 0
mov al, 1
pop ebx
add esp, 0x1a0
ret