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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1005e068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov word [ebp - 0x108], 0x105
mov byte [ebp - 0x106], 0
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x1001858a
push 0
push 3
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1001858a
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x10018572
push 0
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jne 0x10018572
cmp byte [ebp - 0x104], 5
je 0x100183cd
mov dword [ebx + 0x78], 0x500
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x103]
cmp al, 0xff
jne 0x100183ef
mov dword [ebx + 0x78], 0x600
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
push esi
test al, al
je 0x10018560
cmp al, 1
je 0x10018547
cmp al, 2
je 0x1001841d
pop esi
mov dword [ebx + 0x78], 0x700
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebx + 0x48]
mov byte [ebp - 0x104], 1
call fcn.10003400
lea ecx, [ebx + 0x48]
mov byte [ebp - 0x103], al
call fcn.10003400
push eax
lea ecx, [ebx + 0x48]
call fcn.10003420
push eax
lea eax, [ebp - 0x102]
push eax
call fcn.10030e20
add esp, 0xc
lea ecx, [ebx + 0x48]
call fcn.10003400
lea ecx, [ebx + 0x60]
mov edi, eax
call fcn.10003400
mov byte [ebp + edi - 0x102], al
lea ecx, [ebx + 0x60]
add edi, 3
call fcn.10003400
push eax
lea ecx, [ebx + 0x60]
call fcn.10003420
push eax
lea eax, [ebp - 0x104]
add eax, edi
push eax
call fcn.10030e20
add esp, 0xc
lea ecx, [ebx + 0x60]
call fcn.10003400
add edi, eax
lea ecx, [ebx + 0x98]
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.100129e0
pop edi
test eax, eax
jns 0x100184ce
add dword [ebx + 0x78], 0x900
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x98]
call fcn.10012a10
cmp eax, 2
je 0x10018503
pop esi
mov dword [ebx + 0x78], 0xa00
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x104], 1
je 0x10018525
pop esi
mov dword [ebx + 0x78], 0xb00
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x103], 0
je 0x10018560
pop esi
mov dword [ebx + 0x78], 0xc00
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
pop esi
mov dword [ebx + 0x78], 0x800
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x78], 0x400
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019772
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
mov dword [ebx + 0x78], 0x300
xor ecx, ebp
pop ebx
call fcn.10019772
mov esp, ebp
pop ebp
ret