Function at 0x51a85d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x603c84
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0xf0]
cmp eax, edi
je 0x51ac3d
mov eax, dword [esi]
or ebp, 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [eax + 0xa0]
test eax, eax
je 0x51aaca
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe8]
test eax, eax
je 0x51ac3d
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x160]
cmp eax, ecx
jne 0x51a8e2
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x164]
cmp ecx, eax
jne 0x51a8e2
mov edx, dword [esi + 0x150]
mov eax, dword [esi + 0x168]
cmp edx, eax
je 0x51ac3d
lea eax, [esp + 0x1c]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0051bd50
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
call fcn.0051f0d0
mov ebp, dword [eax]
lea ecx, [esp + 0x2c]
xor edi, edi
push ecx
mov ebx, dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov eax, dword [eax + 8]
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], eax
call fcn.00508cb0
test eax, eax
jne 0x51a943
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.0050ac30
test eax, eax
je 0x51ac3d
mov eax, dword [esp + 0x10]
cmp eax, ebp
jg 0x51ac3d
jne 0x51a96f
mov eax, dword [esp + 0x14]
cmp eax, ebx
jg 0x51ac3d
jne 0x51a96f
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jg 0x51ac3d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.00508cb0
test eax, eax
jne 0x51a9a3
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push edx
call fcn.0050ac30
test eax, eax
je 0x51ac3d
mov edi, dword [esp + 0x1c]
cmp edi, ebp
jg 0x51ac3d
mov ebp, dword [esp + 0x20]
jne 0x51a9d1
cmp ebp, ebx
jg 0x51ac3d
jne 0x51a9d1
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
cmp ebx, eax
jg 0x51ac3d
jmp 0x51a9d5
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp eax, edi
jg 0x51a9f3
cmp eax, edi
jne 0x51aa0b
cmp ecx, ebp
jg 0x51a9f3
jne 0x51aa0b
cmp edx, ebx
jle 0x51aa0b
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
or ebp, 0xffffffff
lea ecx, [esp + 0x48]
call fcn.005d299c
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
sub esp, 0xc
mov edi, dword [esp + 0xf8]
mov edx, esp
sub esp, 0xc
mov dword [esp + 0xfc], 0
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, esp
push edi
mov dword [edx + 8], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, esi
call fcn.0051bee0
push 0x1000
push 0x2002
lea ecx, [esp + 0x68]
call fcn.005e4d86
push 0
push 0x1000
lea eax, [esp + 0x68]
push 0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xf0], 1
call fcn.005dbfc5
lea ecx, [esp + 0x94]
mov byte [esp + 0xe0], 2
push ecx
lea ecx, [esp + 0x4c]
call fcn.005d2a36
lea ecx, [esp + 0x94]
call fcn.005dc129
test edi, edi
jne 0x51aafb
xor eax, eax
jmp 0x51aafe
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0051f0d0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
jmp 0x51aa0e
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
lea ecx, [esp + 0x60]
call fcn.005e4eab
xor edx, edx
push eax
mov dx, word [0x1ae9e9e]
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x51ab2e
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x51ac08
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x1a8db40]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub esp, 0xc
mov bl, 3
mov ecx, esp
sub esp, 0xc
mov byte [esp + 0xf8], bl
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, esp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea edx, [esp + 0x50]
push edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0051f7f0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 4
call fcn.005d39e2
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], bl
call fcn.005d38a9
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.005d361e
mov ecx, edi
call fcn.004e0800
push eax
call fcn.00545870
mov eax, dword [esp + 0x58]
add esp, 8
test eax, eax
lea esi, [eax - 1]
je 0x51abeb
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x51abe4
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, esi
dec esi
test eax, eax
jne 0x51abd2
push ebp
push 0
lea ecx, [esp + 0x50]
call fcn.005d2164
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 2
call fcn.005d38a9
lea ecx, [esp + 0x94]
mov byte [esp + 0xe0], 1
call fcn.005dc0a1
lea ecx, [esp + 0x60]
mov byte [esp + 0xe0], 0
call fcn.005e4dcc
lea ecx, [esp + 0x48]
mov dword [esp + 0xe0], ebp
call fcn.005d29cf
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd4
ret 4