Function at 0x40cb0b
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
mov dword [ebp - 0x18], 0x38
mov dword [ebp - 8], 0xff
mov dword [ebp - 0xc], 0xb2
push fcn.0040b26b
mov eax, dword [0x421818]
push eax
mov ecx, dword [0x4217e8]
push ecx
call dword [ebp + 0xc]
add esp, 0xc
mov esi, eax
mov edx, dword [0x4217f8]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp esi, eax
je 0x40ccb2
mov dword [ebp - 0x84], 0x4b
mov eax, dword [0x421818]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0x19
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xd0
ja case.0x40cb8b.1
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x40d2f7]
jmp dword [eax*4 + 0x40d2d3]
mov dword [ebp - 0x88], 0xa1
push fcn.0040aefb
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0040b26b
add esp, 8
jmp 0x40ccad
mov dword [ebp - 0x8c], 0xd3
mov edx, dword [0x421824]
push edx
mov eax, dword [0x421818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
mov dword [0x42180c], eax
jmp 0x40ccad
mov dword [ebp - 0x90], 0x76
mov ecx, dword [0x4217e0]
or ecx, dword [0x4217f0]
mov dword [0x421810], ecx
jmp 0x40ccad
mov edx, dword [0x4217f8]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x42180c], eax
jmp 0x40ccad
mov dword [ebp - 0x94], 0x34
mov dword [ebp - 0x98], 0xa3
mov eax, dword [0x421808]
push eax
mov ecx, dword [0x4217ec]
push ecx
call fcn.0040ebeb
add esp, 8
jmp 0x40ccad
mov dword [ebp - 0x9c], 0x73
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040ebeb
add esp, 8
jmp 0x40ccad
mov dword [ebp - 0xa0], 0x89
mov dword [ebp - 0xa4], 0x58
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040c90b
add esp, 8
jmp 0x40ccad
mov eax, dword [0x421800]
push eax
call fcn.0040c3bb
add esp, 4
jmp 0x40ccad
mov dword [ebp - 0xa8], 0x26
mov dword [ebp - 0xac], 0x6b
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x421800], eax
jmp 0x40cb2a
mov ecx, dword [0x421808]
sub ecx, dword [0x42181c]
mov dword [0x42182c], ecx
push fcn.0040b26b
mov edx, dword [0x421828]
push edx
mov eax, dword [0x421820]
push eax
call dword [ebp + 0xc]
add esp, 0xc
cmp eax, dword [0x42182c]
jne 0x40cd0c
mov dword [ebp - 0xb0], 0xc7
mov dword [ebp - 0xb4], 0xb4
mov ecx, dword [0x421820]
push ecx
call fcn.0041086b
add esp, 4
jmp 0x40d0d0
mov dword [ebp - 0x50], 0xff
push fcn.0040ebeb
mov edx, dword [ebp - 0x78]
push edx
call fcn.0040b26b
add esp, 8
mov esi, eax
mov eax, dword [0x421820]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, eax
je 0x40cd7c
mov dword [ebp - 0xbc], 0x37
mov edx, dword [0x42181c]
or edx, dword [ebp - 0xc]
mov dword [0x421804], edx
push fcn.0040ebeb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00411d8b
add esp, 0xc
mov edx, dword [0x421828]
push edx
call fcn.0041086b
add esp, 4
jmp 0x40cdb8
mov eax, dword [0x421820]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040ebeb
add esp, 8
push fcn.00411d8b
mov edx, dword [0x4217e8]
push edx
call fcn.0040aefb
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x421808]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
mov dword [0x4217e8], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.0041028b
add esp, 8
mov esi, eax
mov ecx, dword [0x421810]
push ecx
mov edx, dword [0x42182c]
push edx
mov eax, dword [0x42181c]
push eax
mov ecx, dword [0x421820]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, eax
jae 0x40cdf8
mov dword [ebp - 0x1c], 1
jmp 0x40cdff
mov dword [ebp - 0x1c], 0
mov edx, dword [0x4217e4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040ebeb
add esp, 8
mov esi, eax
mov ecx, dword [0x421814]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040c90b
add esp, 8
cmp esi, eax
jne 0x40ce34
mov dword [ebp - 0x20], 1
jmp 0x40ce3b
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jbe 0x40ce4c
mov dword [ebp - 0x24], 1
jmp 0x40ce53
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jne 0x40cea7
mov ecx, dword [0x421810]
push ecx
mov edx, dword [0x421808]
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
mov eax, dword [0x4217f0]
push eax
mov ecx, dword [0x42182c]
push ecx
call fcn.0040ebeb
add esp, 8
cmp esi, eax
jbe 0x40ce91
mov dword [ebp - 0x28], 1
jmp 0x40ce98
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
jne 0x40cea7
mov dword [ebp - 0x2c], 0
jmp 0x40ceae
mov dword [ebp - 0x2c], 1
mov edx, dword [0x4217fc]
push edx
mov eax, dword [0x42181c]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov esi, eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x4217e0]
push edx
call fcn.0041028b
add esp, 8
cmp esi, eax
jne 0x40cee3
mov dword [ebp - 0x30], 1
jmp 0x40ceea
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
je 0x40cf2b
mov dword [ebp - 0xc0], 0xe5
mov dword [ebp - 0xc4], 0xee
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.0041028b
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4217fc], eax
jmp 0x40cf61
mov dword [ebp - 0xc8], 0x73
mov edx, dword [0x421808]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x42182c], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x421804], eax
mov edx, dword [0x421800]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [0x4217e0]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp eax, dword [ebp - 8]
je 0x40cf87
mov dword [ebp - 0x34], 1
jmp 0x40cf8e
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x40cff9
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x4217ec]
push edx
call fcn.0041028b
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [0x421828]
push ecx
movzx edx, byte [0x42180c]
push edx
movzx eax, byte [0x421818]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CreateIcon]
cmp esi, eax
jae 0x40cfe3
mov dword [ebp - 0x38], 1
jmp 0x40cfea
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x40cff9
mov dword [ebp - 0x3c], 1
jmp 0x40d000
mov dword [ebp - 0x3c], 0
mov ecx, dword [0x421800]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0040c90b
add esp, 8
mov esi, eax
mov eax, dword [0x421814]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
cmp esi, eax
jbe 0x40d032
mov dword [ebp - 0x40], 1
jmp 0x40d039
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x40]
jbe 0x40d04a
mov dword [ebp - 0x44], 1
jmp 0x40d051
mov dword [ebp - 0x44], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040c3bb
add esp, 4
cmp esi, eax
jne 0x40d072
mov dword [ebp - 0x48], 1
jmp 0x40d079
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x48]
jae 0x40d094
push fcn.00411d8b
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0040aefb
add esp, 8
jmp 0x40d0d0
mov dword [ebp - 0x7c], 0x90
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x4217f8], eax
mov ecx, dword [ebp - 0x7c]
or ecx, dword [ebp - 0x80]
mov dword [0x421810], ecx
push fcn.0040b26b
mov edx, dword [0x42180c]
push edx
mov eax, dword [0x421804]
push eax
call fcn.00411d8b
add esp, 0xc
mov esi, dword [0x4217f0]
add esi, dword [0x421814]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x4217ec]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
cmp esi, eax
je 0x40d0fa
mov dword [ebp - 0x54], 1
jmp 0x40d101
mov dword [ebp - 0x54], 0
mov eax, dword [0x42180c]
push eax
call fcn.0041086b
add esp, 4
test eax, eax
je 0x40d136
mov ecx, dword [0x4217f0]
push ecx
mov edx, dword [0x4217f0]
push edx
call fcn.0040ebeb
add esp, 8
test eax, eax
je 0x40d136
mov dword [ebp - 0x58], 1
jmp 0x40d13d
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jbe 0x40d2c2
mov dword [ebp - 0xd0], 0xee
mov ecx, dword [0x421814]
sub ecx, dword [0x4217e0]
mov dword [0x421824], ecx
mov edx, dword [0x421810]
and edx, dword [ebp - 0x5c]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c3bb
add esp, 4
cmp eax, dword [ebp - 4]
je 0x40d18b
mov dword [ebp - 0x60], 1
jmp 0x40d192
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
je 0x40d1db
mov ecx, dword [ebp - 4]
and ecx, dword [0x42182c]
mov dword [0x421808], ecx
mov edx, dword [0x4217fc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [0x421808], eax
je 0x40d1c5
mov dword [ebp - 0x64], 1
jmp 0x40d1cc
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
je 0x40d1db
mov dword [ebp - 0x68], 1
jmp 0x40d1e2
mov dword [ebp - 0x68], 0
mov eax, dword [0x421810]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, eax
mov ecx, dword [0x421808]
push ecx
call fcn.0041086b
add esp, 4
cmp esi, eax
jae 0x40d20c
mov dword [ebp - 0x6c], 1
jmp 0x40d213
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x6c]
jne 0x40d224
mov dword [ebp - 0x70], 1
jmp 0x40d22b
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0
jne 0x40d271
mov eax, dword [ebp + 0xc]
and eax, dword [0x42181c]
mov dword [0x4217e8], eax
jne 0x40d264
mov ecx, dword [0x4217f0]
push ecx
mov edx, dword [0x421808]
push edx
call fcn.0040c90b
add esp, 8
test eax, eax
jne 0x40d264
mov dword [ebp - 0x74], 0
jmp 0x40d26b
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x74], 0
je 0x40d2ae
mov dword [ebp - 0xd4], 0x3e
mov dword [ebp - 0xd8], 0x94
mov eax, dword [0x421818]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040c90b
add esp, 8
mov edx, dword [0x421814]
push edx
mov eax, dword [0x421828]
push eax
call fcn.0041028b
add esp, 8
jmp 0x40d2bd
mov eax, dword [0x4217e8]
xor edx, edx
div dword [ebp - 4]
mov dword [0x4217f8], eax
jmp 0x40d0d0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041086b
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret