Function at 0x50f450
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x596569
push eax
mov eax, 0x1060
mov dword fs:[0], esp
call fcn.00555ae0
mov edx, dword [0x5f5774]
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], ecx
push edi
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], ecx
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov edi, 7
mov dword [ebp - 4], edi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
mov byte [ebp - 4], 8
push 0xffc
lea edx, [ebp - 0x1068]
push ebx
push edx
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x1c], 0x124
mov dword [ebp - 0x1a], 0x20009111
mov dword [ebp - 0x106c], ebx
call fcn.00555020
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
mov dword [eax], ebx
call fcn.0050aad0
test eax, eax
jne 0x50f568
mov byte [ebp - 4], 7
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x2afa], bl
je 0x50f577
mov ecx, esi
call fcn.0050b540
mov eax, dword [esi + 0x3c]
push ebx
push 0xa
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x50f5c2
mov byte [ebp - 4], 7
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x3c]
push ebx
push pe_nt_image_headers32
push 0x5fb6e8
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x50f5ee
mov byte [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
jmp 0x50f59d
mov eax, dword [0x5fb6e8]
mov ecx, dword [0x5fb6ec]
mov dx, word [0x5fb6f0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
cmp al, 0x24
je 0x50f61c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
jmp 0x50f59d
cmp dword [0x5fb6ea], 0x20009303
je 0x50f673
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x1a]
push eax
lea ecx, [ebp + 0xc]
push str.Bad_data_type._Received_type:__04Xh.
push ecx
call fcn.004060d0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp + 0xc]
call fcn.00404d60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
jmp 0x50f59d
cmp dword [0x5fb6ee], 4
je 0x50f68d
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
jmp 0x50f59d
mov eax, dword [esi + 0x3c]
mov edi, dword [0x5fb6f2]
push ebx
push 0xa
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x1c], 0x24
mov dword [ebp - 0x1a], 0x55aa0000
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x50f6cd
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
jmp 0x50f59d
mov dword [ebp - 0x10], ebx
cmp edi, ebx
jbe 0x50f88c
jmp 0x50f6e0
mov ecx, dword [esi + 0x3c]
push ebx
push 0x400
push 0x5fb6e8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
or edi, 0xffffffff
cmp eax, edi
je 0x50f8c4
mov eax, dword [0x5fb6e8]
mov edx, dword [0x5fb6ec]
mov cx, word [0x5fb6f0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], cx
cmp al, 0x24
jne 0x50f8f0
cmp dword [0x5fb6ea], 0x20009111
jne 0x50f956
cmp dword [0x5fb6ee], ebx
je 0x50f9c1
mov edx, dword [0x5fb6f2]
mov eax, dword [0x5fb6f6]
mov ecx, dword [0x5fb6fe]
mov edi, dword [0x5fb6fa]
push 0x1000
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x106c]
push ebx
push edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x40], ecx
call fcn.00555020
push edi
lea eax, [ebp - 0x106c]
push 0x5fb702
push eax
call fcn.00554470
add esp, 0x18
lea ecx, [ebp - 0x106c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040b5a0
push 0x1000
lea edx, [ebp - 0x106c]
push ebx
push edx
call fcn.00555020
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push eax
lea edx, [ecx + 0x5fb702]
push edx
lea eax, [ebp - 0x106c]
push eax
call fcn.00554470
add esp, 0x18
lea ecx, [ebp - 0x106c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040b5a0
push 0x1000
lea edx, [ebp - 0x106c]
push ebx
push edx
call fcn.00555020
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
push eax
lea eax, [edx + ecx + 0x5fb702]
push eax
lea ecx, [ebp - 0x106c]
push ecx
call fcn.00554470
add esp, 0x18
lea edx, [ebp - 0x106c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040b5a0
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x5fb702]
mov edx, dword [eax + 0x5fb706]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x5fb70a]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x5fb70e]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x24], edx
call fcn.0042d910
push ebx
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x1c], 0x24
mov dword [ebp - 0x1a], 0x55aa0000
push 0xa
lea ecx, [ebp - 0x1c]
mov edx, dword [esi + 0x3c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x50fa28
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x6c]
jb 0x50f6e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
push str.Bad_start_symbol._Step__d.
push ecx
call fcn.004060d0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp + 0xc]
call fcn.00404d60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x1a]
mov edx, dword [ebp - 0x10]
push ecx
push edx
lea eax, [ebp + 0xc]
push str.Bad_data_type._Step__d._Received_type:__04Xh
push eax
call fcn.004060d0
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp + 0xc]
call fcn.00404d60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp + 0xc]
push 0x5a9948
push edx
call fcn.004060d0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp + 0xc]
call fcn.00404d60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
call fcn.0042c6e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405c10
jmp 0x50f59d