Function at 0x505756
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d1ca
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push esi
push edi
mov eax, dword [0x5b93d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp + 8]
call fcn.0042a184
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x20
jne 0x5057f7
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0
je 0x5057f7
push 0x583d08
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x5057f7
push dword [ebp + 8]
call fcn.00506608
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00506c1d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00506c7c
test eax, eax
je 0x5057eb
lea ecx, [ebp - 0x2c]
call fcn.00506c7c
push eax
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_SetClipboardData]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00506c51
push 0xc
pop ecx
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x90], 0
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 8
je 0x50585c
cmp dword [ebp - 0x30], 0x10
je 0x505843
cmp dword [ebp - 0x30], 0x18
je 0x50582d
jmp 0x50586f
mov eax, dword [ebp - 0x10]
imul eax, dword [eax], 3
and eax, 3
push 4
pop ecx
sub ecx, eax
and ecx, 3
mov dword [ebp - 0x20], ecx
jmp 0x50586f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 1
and eax, 3
push 4
pop ecx
sub ecx, eax
and ecx, 3
shr ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x50586f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 3
push 4
pop ecx
sub ecx, eax
and ecx, 3
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
imul eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
lea eax, [eax + ecx*4 + 0x7c]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00506c1d
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
test eax, eax
jne 0x5058c9
mov byte [ebp - 0x15], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00506c51
mov al, byte [ebp - 0x15]
jmp 0x505b74
mov dword [ebp - 0x7c], 0xff0000
mov dword [ebp - 0x78], 0xff00
mov dword [ebp - 0x74], 0xff
mov dword [ebp - 0x70], 0xff000000
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x68], 8
and dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x18
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x7c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x88]
mov dword [eax + 8], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0xc], ax
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x84]
mov word [eax + 0xe], cx
mov eax, dword [ebp - 0x14]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x80]
imul ecx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x38], 0x57696e20
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x6c], 2
mov eax, dword [ebp - 0x14]
and dword [eax + 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x20
je 0x5059b9
jmp 0x505b0c
mov ecx, dword [ebp + 8]
call fcn.00417deb
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov eax, dword [ebp - 0x88]
dec eax
imul eax, dword [ebp - 0x80]
add ecx, eax
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
dec eax
mov dword [ebp - 0x34], eax
jmp 0x5059ef
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x505b0a
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x38], 0
jmp 0x505a24
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
add eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax]
jae 0x505af0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
and edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
shr edx, cl
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
and edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x24]
shr edx, cl
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
and edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
shr edx, cl
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
and edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
shr edx, cl
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x28]
cdq
mov ecx, 0xff
idiv ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x28]
cdq
mov ecx, 0xff
idiv ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x28]
cdq
mov ecx, 0xff
idiv ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x6c]
shl eax, cl
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
shl edx, cl
or eax, edx
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
shl edx, cl
or eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x60]
shl edx, cl
or eax, edx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
jmp 0x505a0b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x50]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x54], eax
jmp 0x5059e8
jmp 0x505b41
call fcn.004eda8b
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x505b2c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x98], eax
push 1
call dword [ebp - 0x98]
pop ecx
mov byte [ebp - 0x16], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00506c51
mov al, byte [ebp - 0x16]
jmp 0x505b74
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x1c]
call fcn.00506c7c
push eax
push 0x11
call dword [sym.imp.USER32.dll_SetClipboardData]
mov byte [ebp - 0x17], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00506c51
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret 4