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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x6d63d0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x818], eax
push edi
mov dword [esp + 0x810], esi
jne 0x645f05
mov eax, dword [0x6d18e0]
mov dword [ebp + 8], eax
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0x3b
jne 0x645f3e
mov ebx, dword [ebx + 0xdc]
cmp ebx, esi
je case.0x645fdb.3
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push eax
call ebx
add esp, 0xc
mov ecx, dword [esp + 0x81c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0x5c
jne 0x645f7c
lea esi, [esp + 0x10]
mov edi, ebx
call fcn.00645d90
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x810]
push 0x10
push eax
mov eax, dword [ebx]
push 0
push ecx
mov edx, esi
push edx
push eax
call sub.WSOCK32.dll_sendto
mov ecx, dword [esp + 0x81c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
cmp edx, 7
jl case.0x645fdb.3
cmp cl, 0xfe
jne case.0x645fdb.3
cmp byte [eax + 1], 0xfd
jne case.0x645fdb.3
cmp dword [ebx + 0xb8], esi
jle 0x645fa9
mov dword [ebx + 0xb8], esi
mov cl, byte [eax + 2]
mov edi, dword [eax + 3]
mov byte [esp + 0x10], cl
movsx ecx, cl
sub edx, 7
cmp ecx, 6
lea esi, [eax + 7]
mov dword [esp + 0xc], esi
mov dword [ebp + 0x10], edx
mov dword [esp + 0x11], edi
mov dword [esp + 0x810], 5
ja case.0x645fdb.3
jmp dword [ecx*4 + 0x646154]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov ecx, esi
call fcn.00645a40
add esp, 8
jmp 0x646123
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x646018
cmp edx, 0xd
jl 0x646018
lea edx, [esi + edx - 0xd]
mov esi, ebx
call fcn.006456d0
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
push ebx
mov ebx, edx
lea edi, [esp + 0x18]
call fcn.00645620
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x646123
cmp edx, 0x20
jle 0x64603f
mov dword [ebp + 0x10], 0x20
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 2
mov byte [esp + 0x10], 5
lea edi, [esp + 0x15]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [esp + 0x810], eax
jmp 0x646123
cmp dword [ebx + 0xb8], 0xffffffff
je case.0x645fdb.3
xor edi, edi
mov cl, byte [edi + eax + 3]
cmp cl, byte [ebx + edi + 0x84]
jne case.0x645fdb.3
inc edi
cmp edi, 4
jl 0x646074
cmp edx, 2
jl case.0x645fdb.3
mov edx, dword [ebx + 0x114]
mov dword [ebx + 0xb8], 0xffffffff
movsx ecx, byte [esi]
push edx
lea eax, [esi + 1]
push eax
push ecx
call dword [ebx + 0x9c]
add esp, 0xc
mov ecx, dword [esp + 0x81c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x6460d0
mov cl, byte [edi + eax + 3]
cmp cl, byte [ebx + edi + 0x84]
jne case.0x645fdb.3
inc edi
cmp edi, 4
jl 0x6460d0
cmp edx, 4
jl case.0x645fdb.3
mov esi, dword [esi]
mov dword [esp + 0x15], esi
mov edi, esi
mov esi, ebx
mov byte [esp + 0x10], 7
mov dword [esp + 0x810], 9
call fcn.00645e90
test eax, eax
jne 0x646123
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
add eax, 4
add edx, 0xfffffffc
push eax
mov edi, ebx
call fcn.00645de0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x810]
push 0x10
push ecx
mov ecx, dword [ebx]
push 0
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WSOCK32.dll_sendto
mov ecx, dword [esp + 0x81c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret