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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10060058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
mov esi, ecx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov ebx, eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x1000eff1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
xorps xmm0, xmm0
push 0
movups xmmword [ebx], xmm0
push esi
mov dword [ebx], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 4], eax
jmp 0x1000eff6
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000f094
push eax
call fcn.1002c880
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x1000f094
push edi
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x1000f08b
add edi, 0x30
mov ecx, dword [edi]
mov eax, str.image_jpeg
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1000f076
test dx, dx
je 0x1000f072
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1000f076
add ecx, 4
add eax, 4
test dx, dx
jne 0x1000f050
xor eax, eax
jmp 0x1000f07b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000f0b4
inc esi
add edi, 0x4c
cmp esi, dword [ebp - 0xc]
jb 0x1000f042
mov edi, dword [ebp - 8]
push edi
call fcn.1002c865
add esp, 4
test ebx, ebx
je 0x1000f0a0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002736e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [ebp - 0x1c], xmm0
call fcn.1002c865
add esp, 4
cmp esi, 0xffffffff
je 0x1000f094
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x1000f0fe
mov dword [ebx + 8], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push esi
call fcn.100276fc
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
push edi
call fcn.10028c40
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 8], esi
mov edi, 4
xor esi, esi
push 0
push edi
lea eax, [ebp - 8]
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000f1a9
add esi, eax
sub edi, eax
cmp esi, 4
jl 0x1000f152
mov ebx, dword [ebp - 8]
xor esi, esi
test ebx, ebx
jle 0x1000f19f
mov edi, ebx
nop dword [eax]
mov eax, dword [ebp - 0x20]
push 0
push edi
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000f1a6
add esi, eax
sub edi, eax
cmp esi, ebx
jl 0x1000f180
mov ebx, dword [ebp - 0x2c]
xor edi, edi
jmp 0x1000f1ac
mov ebx, dword [ebp - 0x2c]
or edi, 0xffffffff
push 1
push dword [ebp - 0x20]
call fcn.1002739f
mov edx, dword [ebp - 0x28]
add esp, 8
mov esi, dword [edx]
push edx
call dword [esi + 8]
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002736e
mov esp, ebp
pop ebp
ret