Function at 0x51bb50
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
xor eax, eax
push fcn.0051bb20
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, 0x6323d4
call fcn.0040d1c0
mov dword [ebp - 0xc], eax
mov edx, 1
mov eax, 0x6323d4
call fcn.0040d1c0
mov dword [ebp - 0x10], eax
xor eax, eax
push fcn.0051bb00
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x8bcac4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call dword [0x8bcac0]
push 0
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov eax, dword [ebp - 4]
cmp eax, 1
jl 0x51beb4
sub eax, 1
je 0x51bda0
sub eax, 1
je 0x51bc10
sub eax, 0xb
je 0x51bda0
jmp 0x51beb4
mov edx, 1
mov eax, 0x646430
mov ecx, 0x646430
call dword [ecx + 0xbc]
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.0051baf0
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0xc]
xor edx, edx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx - 0xc]
mov ecx, dword [ecx]
call dword [ecx + 0x1e0]
mov dword [ebp - 0x20], eax
xor eax, eax
push fcn.0051bad0
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x20]
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x88]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x98]
push eax
push dword [ebp - 0x20]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x114]
test al, al
je 0x51bcdf
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x118]
mov dword [ebp - 0x30], eax
jmp 0x51bce6
mov dword [ebp - 0x30], 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x98]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x88]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004d7ae0
mov ebx, eax
call fcn.004e0760
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x98]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
call dword [edx + 0x88]
push eax
push dword [ebp - 0x30]
push 0
push 0
push 0xcc0020
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx - 0xc]
mov ebx, dword [ebx]
call dword [ebx + 0x4e8]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x24]
call sub.gdi32.dll_DeleteDC
push dword [ebp - 0x2c]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0051bad0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0051baf0
jmp 0x51bec4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x70]
test edx, edx
jg 0x51bdbd
jl 0x51bea4
test eax, eax
jbe 0x51bea4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x70]
mov edx, eax
lea eax, [ebp - 0x1c]
xor cx, cx
call fcn.00409800
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ebx, eax
lea eax, [ebp - 0x1c]
call fcn.00403cb0
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx]
mov ecx, ebx
call dword [esi + pe_nt_image_headers32]
cmp dword [ebp - 4], 0xd
jne 0x51be5a
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x51be0c
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x51be18
mov eax, 0x6972f0
lea ecx, [ebp - 0x34]
call fcn.0046a270
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x18]
call fcn.0040b0e0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.0040a990
test eax, eax
je 0x51be94
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51be45
mov ecx, dword [ecx - 4]
shr ecx, 1
shl ecx, 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
jmp 0x51be94
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
call fcn.00465210
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
call fcn.00408b60
cmp dword [ebp - 0x1c], 0
je 0x51be94
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x51be80
mov ecx, dword [ecx - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
lea esi, [esi]
push 0
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call dword [edx + 0x6c]
nop
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0051bf30
jmp 0x51bec4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0051bf30
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0051bb00
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0051bb20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret