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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
mov edx, dword [0x700724]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 4
mov edi, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], cx
mov byte [ebp - 4], 5
mov dword [ebp - 0x1a], esi
mov word [ebp - 0x20], 0x124
mov dword [ebp - 0x10], 0x20009136
cmp dword [ebp + 0xc], esi
jne 0x412372
mov dword [ebp - 0x10], 0x20009137
mov edx, dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 0x1e], edx
call fcn.00404180
test eax, eax
jne 0x4123b8
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004052c0
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 8
cmp byte [ebx + 0x2d10], 0
je 0x4123c8
mov ecx, ebx
call fcn.00407d60
mov edx, dword [ebx + 0x48]
push esi
push 0xa
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
jne 0x412414
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x30]
call fcn.004052c0
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 8
mov ecx, dword [ebx + 0x48]
push esi
push 0x100
push 0x70fdd8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x412461
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], dx
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x30]
call fcn.004052c0
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 8
mov eax, dword [0x70fdd8]
mov ecx, dword [0x70fddc]
mov dx, word [0x70fde0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], dx
cmp al, 0x24
jne 0x4124c7
cmp dword [0x70fdda], 0x20009303
je 0x4124f3
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1e]
push eax
lea ecx, [ebp + 0xc]
push str.Bad_data_type._Received_type:__04Xh
push ecx
call fcn.00405ab0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
call fcn.004014a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00405700
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x30]
call fcn.004052c0
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 8
cmp dword [0x70fdde], 4
jne 0x4124c7
mov eax, dword [ebx + 0x48]
mov edi, dword [0x70fde2]
push esi
push 0xa
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1a], esi
mov word [ebp - 0x20], 0x24
mov dword [ebp - 0x1e], 0x55aa0000
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x41255b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00405700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004052c0
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 8
mov dword [ebp + 0xc], esi
cmp edi, esi
ja 0x412597
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00405700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004052c0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
xor esi, esi
mov ecx, dword [ebx + 0x48]
push esi
push 0x400
push 0x70fdd8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
or edi, 0xffffffff
cmp eax, edi
je 0x4124c7
mov eax, dword [0x70fdd8]
mov edx, dword [0x70fddc]
mov cx, word [0x70fde0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], cx
cmp al, 0x24
jne 0x41268d
mov edx, dword [ebp - 0x10]
cmp dword [0x70fdda], edx
jne 0x4126f3
cmp dword [0x70fdde], esi
je 0x412728
movzx esi, byte [0x70fde2]
push esi
push 0x70fde6
lea ecx, [ebp - 0x30]
call fcn.00401670
movzx edi, byte [esi*2 + 0x70fde6]
push edi
lea eax, [esi*2 + 0x70fdea]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401670
lea eax, [edi + esi]
mov ecx, dword [eax + eax + 0x70fdea]
mov dl, byte [eax + eax + 0x70fdee]
add eax, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 0x24], dl
call fcn.00411680
mov edx, dword [ebx + 0x48]
push 0
push 0xa
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x1a], 0
mov word [ebp - 0x20], 0x24
mov dword [ebp - 0x1e], 0x55aa0000
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41252b
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x14]
jb 0x412595
jmp 0x412562
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
push eax
push str.Bad_start_symbol._Step__d.
lea ecx, [ebp + 8]
push ecx
call fcn.00405ab0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.004014a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00405700
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x30]
call fcn.004052c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1e]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp + 8]
push str.Bad_data_type._Step__d._Received_type__04Xh
push eax
call fcn.00405ab0
add esp, 0x10
jmp 0x4126bb
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0xc]
push ecx
push str.Bad_data_length._Step__d.
lea edx, [ebp + 8]
push edx
jmp 0x4126b3