Function at 0x408ac0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9d40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4c8630]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x408e39
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x30]
cmp ecx, esi
jne 0x408e39
cmp eax, 0x300
ja 0x408bd8
je 0x408bbb
sub eax, 7
je 0x408ba5
sub eax, 1
je 0x408b6a
sub eax, 0x12b
jne 0x408e39
test edx, edx
je 0x408e39
mov eax, dword [ebp + 0x14]
push 1
push edx
mov dword [eax], 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [0x4cb50c]
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ebx, 0x8004
mov ecx, edi
call fcn.00412540
mov esi, dword [edi + 0x30]
push 1
push 0
call fcn.00414ce0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebp + 8]
add edi, 0x40
push esi
call fcn.00408330
push 1
mov edi, esi
call fcn.00412040
jmp 0x408e39
mov eax, 1
mov ebx, 0x8004
mov ecx, edi
call fcn.00412540
jmp 0x408e39
xor eax, eax
mov ebx, 0x8005
mov ecx, edi
mov dword [edi + 0xac], 0
call fcn.00412540
jmp 0x408e39
cmp eax, 0x302
je 0x408c17
cmp eax, 0x400
je 0x408c00
cmp eax, 0x501
jne 0x408e39
mov dword [edi + 0xac], 1
jmp 0x408e39
push 1
push 0
mov esi, ecx
call fcn.00414ce0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x408e39
cmp dword [edi + 0xac], 0
je 0x408e39
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408e39
call fcn.00414ce0
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408e39
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x408e33
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x34], ebx
cmp ebx, eax
je 0x408e2c
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x30]
mov esi, dword [eax + 0x40]
test esi, esi
je 0x408ca8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408ca8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0xb0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [esp + 0x10]
call fcn.00406fd0
mov dword [esp + 0x58], 0
mov ecx, dword [edi + 0x30]
push ecx
mov eax, esi
call fcn.00415340
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x2c]
lea edx, [esp + 0x10]
call fcn.00408e50
mov esi, eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
call fcn.00407070
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x60], 2
call fcn.00408f30
lea ecx, [esp + 0x28]
push esi
push ecx
mov ebx, eax
mov byte [esp + 0x68], 3
call fcn.00408e70
add esp, 0x10
lea edi, [esp + 0x10]
mov byte [esp + 0x58], 4
call fcn.00407250
lea eax, [esp + 0x20]
call fcn.00404320
lea eax, [esp + 0x24]
call fcn.00404320
lea eax, [esp + 0x28]
call fcn.00404320
lea eax, [esp + 0x2c]
mov byte [esp + 0x58], 0
call fcn.00404320
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 0x30]
call fcn.00415300
mov esi, dword [ebp + 0xc]
xor eax, eax
lea edx, [esp + 0x3c]
xor ebx, ebx
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00414ce0
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, dword [edi + 0x30]
add eax, 0xffffffec
movzx eax, ax
add ecx, 0xfffffffe
movzx edx, cx
shl eax, 0x10
or eax, edx
push eax
push ebx
push 0xd7
mov dword [esp + 0x28], ebx
call fcn.00414ce0
lea edi, [esp + 0x28]
mov esi, eax
call fcn.00414190
movzx eax, word [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
call fcn.00407070
lea edi, [esp + 0x10]
mov byte [esp + 0x58], 5
call fcn.00407250
lea eax, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.00404320
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
call fcn.00415300
mov eax, dword [esp + 0x34]
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408e00
sub eax, ecx
mov ecx, dword [esp + 0x14]
sar eax, 1
add eax, ecx
push eax
push eax
mov eax, dword [esi + 0x30]
call fcn.00415270
lea eax, [esp + 0x10]
call fcn.00404320
mov esi, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10