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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4318
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x508068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 0xf8]
cmp dword [eax + 0x2e4], 0
je 0x41f82f
mov eax, dword [0x4f036c]
lea ecx, [ebp - 0x4b]
movups xmm0, xmmword [str.d8:msg_typei0e5:piecei]
mov dword [ebp - 0x32], eax
mov ax, word [0x4f0370]
mov word [ebp - 0x44], 0x214
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 0x2e], ax
mov edx, dword [edx + 0x184]
test edx, edx
jns 0x41f607
neg edx
call fcn.00453fb0
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x41f60e
call fcn.00453fb0
mov ecx, eax
xor esi, esi
mov dword [ebp - 0x64], 0xf
lea eax, [ebp - 0x4b]
mov dword [ebp - 0x68], esi
mov byte [ebp - 0x78], 0
cmp ecx, eax
je 0x41f634
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00407e90
mov esi, dword [ebp - 0x68]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
mov edi, dword [ebp - 0x78]
cmovae eax, edi
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004aee70
mov eax, 0x6565
add esp, 0xc
mov word [ebp + esi - 0x2c], ax
add esi, 0x1e
mov dword [ebp - 0x80], esi
lea eax, [esi - 4]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax + 8], 6
jne 0x41f6af
push 0
push esi
lea ecx, [ebp - 0x48]
push ecx
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xf8]
add dword [eax + 0xec], esi
mov eax, dword [ebx + 8]
add dword [eax + 0x248], esi
add dword [0x50e4e4], esi
jmp 0x41f7f7
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x84], eax
call fcn.004b5cd0
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x41f7da
mov esi, dword [ebx + 0xc]
push dword [esi + 0x5a]
mov edi, dword [esi + 0x6a]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0xf8]
cmp dword [ecx + 0x78], 0x19c8
jne 0x41f709
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x41f6fd
test eax, eax
jne 0x41f6f9
xor edi, edi
jmp 0x41f712
sub edi, eax
jmp 0x41f712
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
lea edi, [eax + 1]
jmp 0x41f712
xor ecx, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [0x50e5dc], 1
movzx eax, word [eax + 0x14]
push eax
call esi
push edi
mov word [0x50e5de], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x50e5e4], eax
mov eax, dword [ebx + 0xc]
movzx eax, word [eax + 0x1c]
push eax
call esi
mov word [0x50e5ec], ax
mov eax, dword [ebx + 0xc]
movzx eax, word [eax + 0x66]
push eax
call esi
dec ax
movzx eax, ax
push eax
call esi
mov esi, dword [ebp - 0x7c]
movups xmm0, xmmword [0x50e5dc]
mov word [0x50e5ee], ax
push dword [ebp - 0x80]
movups xmmword [esi], xmm0
mov eax, dword [0x50e5ec]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x14]
push eax
call fcn.004aee70
mov ecx, dword [ebx + 0xc]
add esp, 0xc
movups xmm0, xmmword [0x50e5dc]
movups xmmword [ecx + 0x2c], xmm0
mov eax, dword [0x50e5ec]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x84]
mov byte [eax + 0x4c], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x52], esi
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x48], ecx
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 0x2c]
push ecx
lea ecx, [eax + 0xc0]
call fcn.004456b0
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp - 0x78]
inc word [eax + 0x1c]
jmp 0x41f7f7
cmp byte [0x5102e0], 0
je 0x41f7f7
push 0
push str.send_metadata_request__
push 0x4f0390
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebx + 0xc]
inc dword [eax + 0x184]
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x41f82f
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x41f825
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f84d
push ecx
push edi
call fcn.004ad677
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ad19c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004b5c80
int3