Function at 0x422940
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x508068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 6
jne 0x422a30
mov eax, dword [esi + 0x170]
xor ebx, ebx
or eax, dword [esi + 0x174]
jne 0x422985
push esi
push edi
call fcn.00421cb0
mov esi, dword [ebp + 0xc]
add esp, 8
mov edi, dword [ebp + 8]
mov ebx, eax
cmp dword [edi + 0x20], 1
je 0x422e07
test ebx, ebx
je 0x422e07
push 0
push dword [esi + 0x170]
push dword [esi + 0x168]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 0xc]
imul ecx, ebx, 0xd
mov edx, dword [eax + 0x170]
mov edi, edx
mov eax, dword [eax + 0xf8]
sub edi, ecx
add dword [eax + 0xec], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x170]
add dword [ecx + 0x248], eax
mov eax, edi
mov ecx, dword [ebp + 8]
cdq
mov esi, eax
add dword [ecx + 0x4e8], esi
adc dword [ecx + 0x4ec], edx
mov ecx, dword [ebp + 8]
add dword [ecx + 0x500], esi
adc dword [ecx + 0x504], edx
mov eax, dword [ebp + 8]
add dword [eax + 0x4f8], esi
adc dword [eax + 0x4fc], edx
mov eax, dword [ebp + 0xc]
add dword [0x50e4e4], edi
mov dword [eax + 0x170], 0
mov dword [eax + 0x174], 0
jmp 0x422df0
mov eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [esi + 0xf8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xf8]
mov ax, word [eax + 0x60]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x6e]
cmp eax, dword [esi + 0x98]
jl 0x422a70
jg 0x422a6b
mov eax, dword [esi + 0x6a]
cmp eax, dword [esi + 0x94]
jbe 0x422a70
push dword [esi + 0x62]
jmp 0x422a76
push dword [esi + 0x8c]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, dword [esi + 0xc0]
mov ecx, eax
mov eax, 0x57619f1
mul ecx
mov ecx, 1
mov eax, edx
shr eax, 5
test eax, eax
cmove eax, ecx
mov ecx, dword [esi + 0xcc]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [esi + 0xd0]
add eax, dword [esi + 0xcc]
cmp ecx, eax
je 0x422dec
push 0x50e540
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test ebx, ebx
jne 0x422ad7
xor eax, eax
jmp 0x422ad9
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1c]
push dword [0x50e540]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
test ebx, ebx
jne 0x422b03
xor eax, eax
jmp 0x422b05
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1c]
push dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
test ebx, ebx
jne 0x422b2c
xor eax, eax
jmp 0x422b2e
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
mov edx, dword [ebp - 0x1c]
and ecx, edx
mov eax, dword [eax + ecx*4]
mov al, byte [eax]
and al, 0xf0
cmp al, 0x40
jne 0x422b63
test ebx, ebx
jne 0x422b4d
xor eax, eax
jmp 0x422b4f
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov word [eax + 0x12], cx
jmp 0x422b9d
test ebx, ebx
jne 0x422b6b
xor eax, eax
jmp 0x422b6d
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
movzx eax, word [esi + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_htons]
dec ax
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x12], ax
test ebx, ebx
jne 0x422ba5
xor eax, eax
jmp 0x422ba7
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x422bbe
xor eax, eax
jmp 0x422bc0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x26]
mov eax, dword [ebp - 0x18]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
test ebx, ebx
jne 0x422be6
xor eax, eax
jmp 0x422be8
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x422bff
xor eax, eax
jmp 0x422c01
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
push 0x10
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
push 0
push dword [ecx + 0x1c]
push dword [eax + 0x26]
push dword [0x50e5f0]
call dword [sym.imp.WS2_32.dll_sendto]
test ebx, ebx
jne 0x422c32
xor eax, eax
jmp 0x422c34
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xf8]
sub ecx, 0x14
add dword [eax + 0xf4], ecx
mov eax, ecx
add dword [edi + 0x248], ecx
cdq
add dword [edi + 0x4e8], eax
adc dword [edi + 0x4ec], edx
add dword [edi + 0x500], eax
adc dword [edi + 0x504], edx
add dword [edi + 0x4f8], eax
adc dword [edi + 0x4fc], edx
add dword [0x50e4e4], ecx
test ebx, ebx
jne 0x422c8e
xor eax, eax
jmp 0x422c90
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x1c]
push dword [eax + ecx*4]
lea ecx, [esi + 0xd4]
call fcn.004456b0
test ebx, ebx
jne 0x422cb0
xor eax, eax
jmp 0x422cb2
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x1c]
dec ecx
mov eax, dword [eax + 4]
and ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x26], 0
test ebx, ebx
jne 0x422cd0
xor eax, eax
jmp 0x422cd2
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x1c], 0
test ebx, ebx
jne 0x422ced
xor eax, eax
jmp 0x422cef
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x2c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x3c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x4c], xmm0
mov ax, word [eax + 0x28]
mov word [esi + 0x54], ax
test ebx, ebx
je 0x422d2a
mov eax, dword [ebx]
test eax, eax
je 0x422d2a
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x422d4a
cmp dword [ecx], 0
je 0x422d4a
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
lea eax, [edx + 1]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
mov dword [eax + 4], 0
je 0x422d81
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
je 0x422d81
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, edx
mov edx, dword [ebp - 0x24]
sub esp, 0xc
mov dword [eax + 8], edx
mov eax, esp
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov dword [eax + 4], 0
test ecx, ecx
je 0x422db1
mov ecx, dword [ecx]
test ecx, ecx
je 0x422db1
mov eax, dword [ecx]
mov ecx, esp
mov dword [ecx], eax
mov eax, esp
mov dword [eax + 8], edx
lea ecx, [esi + 0xc0]
lea eax, [ebp - 0x38]
push eax
call fcn.0044c850
mov eax, dword [ebp - 0x38]
cmp ebx, eax
je 0x422dd6
test eax, eax
je 0x422dd6
mov eax, dword [eax]
test eax, eax
je 0x422dd6
mov ebx, dword [eax]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], edx
cmp edx, dword [ebp - 0x2c]
jne 0x422ab0
test edx, edx
je 0x422e07
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x140]
cmp eax, 0x40
jge 0x422e07
add eax, 2
mov dword [ecx + 0x140], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ad19c
mov esp, ebp
pop ebp
ret