Function at 0x5475e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5479e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x44fcbc]
call fcn.00403e18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
cmp byte [eax + 0x1c], 0
je 0x547816
mov eax, dword [ebp - 4]
call fcn.00460c6c
push eax
call sub.user32.dll_OpenClipboard
push 0x5479f8
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00450538
test al, al
je 0x547816
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5477fa
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x547693
call fcn.004046c0
jmp 0x5479c9
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
test ebx, ebx
jne 0x5476bc
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00403e48
call fcn.004046c0
jmp 0x5479c9
mov dl, 1
mov eax, dword [0x41a628]
call fcn.00403e18
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x5477dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalSize
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.00420818
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0042059c
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041aefc
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005440e0
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0042059c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x5297bc]
call fcn.00427128
mov esi, eax
mov edx, esi
mov eax, dword [ebp - 0x20]
call fcn.0042095c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x30]
add eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x34]
add eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.00460c6c
cmp eax, dword [esi + 0x44]
jne 0x54778d
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1fb8]
push eax
mov eax, dword [ebp - 4]
lea edx, [eax + 0x1fb0]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x154]
jmp 0x5477b6
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1fb8]
push eax
lea ecx, [ebp - 0x3c]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0041aefc
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x154]
mov eax, dword [esi + 0x30]
imul dword [esi + 0x34]
mov dword [ebp - 0x10], eax
mov eax, esi
call fcn.00403e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5477e3
mov eax, dword [ebp - 0x20]
call fcn.00403e48
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e8]
cmp byte [eax + 0xc], 0
je 0x547924
mov eax, dword [ebp - 4]
call fcn.00460c6c
push eax
call sub.user32.dll_OpenClipboard
push 0x547a10
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00450538
test al, al
je 0x547924
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5478b7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x54788d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x547892
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5478be
cmp dword [ebp - 0x18], 0
je 0x5478ae
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
mov dx, 1
mov eax, dword [ebp - 0x24]
call fcn.00450538
test al, al
jne 0x547941
mov eax, dword [ebp - 0x24]
call fcn.00403e48
jmp 0x5479c9
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5479c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x547975
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x54797a
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x547995
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00547214
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5479c9
cmp dword [ebp - 0x18], 0
je 0x5479b1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00403e48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5479ee
lea eax, [ebp - 0x40]
call fcn.00404c74
lea eax, [ebp - 0x1c]
call fcn.00404c74
ret