Function at 0x40a997
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov dword [ebp - 0x34], 0xaa
mov dword [ebp - 0x18], 0x4b
mov dword [ebp - 0x2c], 0x91
mov dword [ebp - 0x44], 0x7a
mov dword [ebp - 0x38], 0xaf
mov eax, dword [0x41a0f0]
add eax, dword [0x41a0bc]
je 0x40a9ef
mov ecx, dword [0x41a0bc]
push ecx
mov edx, dword [0x41a0e8]
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
test eax, eax
je 0x40a9ef
mov dword [ebp - 8], 1
jmp 0x40a9f6
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x40abd8
mov eax, dword [ebp - 0x34]
or eax, dword [0x41a0f0]
mov dword [str.a6_b_], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x41a0f4]
push edx
call fcn.00409447
add esp, 8
cmp eax, dword [str.a6_b_]
jae 0x40aa32
mov dword [ebp - 0xc], 1
jmp 0x40aa39
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x40abd8
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409447
add esp, 8
mov esi, eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x41a0d8]
push eax
call fcn.00409447
add esp, 8
cmp esi, eax
je 0x40aa74
mov dword [ebp - 0x10], 1
jmp 0x40aa7b
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x40aabe
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [0x41a0dc]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov ecx, dword [0x41a0f4]
add ecx, dword [ebp - 4]
cmp eax, ecx
je 0x40aaa8
mov dword [ebp - 0x14], 1
jmp 0x40aaaf
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x40aabe
mov dword [ebp - 0x1c], 0
jmp 0x40aac5
mov dword [ebp - 0x1c], 1
mov edx, dword [0x41a0f0]
imul edx, dword [ebp - 0x18]
mov dword [0x41a0c8], edx
cmp dword [0x41a0c8], 0
je 0x40aaf7
mov eax, dword [0x41a108]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test eax, eax
je 0x40aaf7
mov dword [ebp - 0x20], 1
jmp 0x40aafe
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jae 0x40ab0f
mov dword [ebp - 0x24], 1
jmp 0x40ab16
mov dword [ebp - 0x24], 0
mov edx, dword [0x41a0c8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [0x41a0f8]
push ecx
call fcn.00409447
add esp, 8
cmp esi, eax
jne 0x40ab45
mov dword [ebp - 0x28], 1
jmp 0x40ab4c
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x28]
jae 0x40ab70
mov dword [ebp - 0x3c], 0x99
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [0x41a0d0]
push ecx
call fcn.00409737
add esp, 8
jmp 0x40abb5
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x50], 0xa5
mov edx, dword [0x41a0e0]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebp - 4], eax
mov eax, dword [0x41a0d8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00409737
add esp, 8
mov edx, dword [0x41a0c0]
push edx
mov eax, dword [0x41a104]
push eax
call fcn.00409737
add esp, 8
mov ecx, dword [0x41a0f0]
or ecx, dword [ebp + 0x10]
mov dword [0x41a0ec], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [0x41a100]
push eax
call fcn.00409737
add esp, 8
jmp 0x40ac08
mov dword [ebp - 0x54], 0x94
mov dword [ebp - 0x40], 0x5b
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x41a0f8]
push edx
call fcn.00409447
add esp, 8
mov eax, dword [0x41a0dc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [0x41a0d0]
push eax
mov ecx, dword [0x41a0fc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop esi
mov esp, ebp
pop ebp
ret