Function at 0x40b26b
Capabilities:
Extract resource via kernel32 functions
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov dword [ebp - 4], 0xb7
mov dword [ebp - 0x18], 0xd7
mov dword [ebp - 0xc], 0x66
mov eax, dword [0x421810]
push eax
mov ecx, dword [0x4217f0]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [0x421800]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421818], eax
mov ecx, dword [0x421800]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov edx, dword [0x421804]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp esi, eax
jne 0x40b2d5
mov dword [ebp - 0x1c], 1
jmp 0x40b2dc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x40b378
mov eax, dword [0x4217f0]
push eax
mov ecx, dword [0x421824]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
test eax, eax
je 0x40b31d
mov edx, dword [0x4217f4]
push edx
mov eax, dword [0x421824]
push eax
call dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x40b31d
mov dword [ebp - 0x20], 1
jmp 0x40b324
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x40b378
mov dword [ebp - 0x70], 0xaa
mov dword [ebp - 0x74], 0xad
mov ecx, dword [0x421814]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
mov dword [0x4217f8], eax
mov eax, dword [0x421824]
push eax
mov ecx, dword [0x42180c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
mov dword [0x4217e4], eax
mov eax, dword [0x421800]
xor edx, edx
div dword [ebp - 0x78]
mov dword [ebp + 8], eax
jmp 0x40b4d4
mov edx, dword [0x4217f4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040c90b
add esp, 8
test eax, eax
jne 0x40b3aa
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
test eax, eax
jne 0x40b3aa
mov dword [ebp - 0x24], 0
jmp 0x40b3b1
mov dword [ebp - 0x24], 1
mov eax, dword [ebp + 0xc]
mov dword [0x421828], eax
mov ecx, dword [0x421828]
mov dword [0x421818], ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, dword [0x421818]
jne 0x40b3e0
mov dword [ebp - 0x28], 1
jmp 0x40b3e7
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x40b3f8
mov dword [ebp - 0x2c], 1
jmp 0x40b3ff
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
je 0x40b44f
mov eax, dword [0x421828]
xor edx, edx
div dword [0x42182c]
mov esi, eax
push fcn.0041028b
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x421820]
push edx
call fcn.00411d8b
add esp, 0xc
cmp esi, eax
jae 0x40b439
mov dword [ebp - 0x30], 1
jmp 0x40b440
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x40b44f
mov dword [ebp - 0x34], 1
jmp 0x40b456
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x42181c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40b487
mov edx, dword [0x4217e4]
push edx
call fcn.0041086b
add esp, 4
test eax, eax
jne 0x40b487
mov dword [ebp - 0x38], 0
jmp 0x40b48e
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jbe 0x40b4ae
mov ecx, dword [0x4217f0]
push ecx
mov edx, dword [0x4217e0]
push edx
call fcn.0041028b
add esp, 8
jmp 0x40b4d4
mov dword [ebp - 0x84], 0x85
mov dword [ebp - 0x88], 0x31
mov eax, dword [0x4217f8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041028b
add esp, 8
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [0x42180c], eax
mov esi, dword [0x421828]
imul esi, dword [0x4217f8]
mov edx, dword [0x42182c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040c90b
add esp, 8
cmp esi, eax
jae 0x40b50c
mov dword [ebp - 0x3c], 1
jmp 0x40b513
mov dword [ebp - 0x3c], 0
mov ecx, dword [0x421808]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test eax, eax
je 0x40b53e
mov edx, dword [0x421818]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x40b53e
mov dword [ebp - 0x40], 1
jmp 0x40b545
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jbe 0x40b556
mov dword [ebp - 0x44], 1
jmp 0x40b55d
mov dword [ebp - 0x44], 0
mov ecx, dword [0x4217f0]
or ecx, dword [ebp - 4]
je 0x40b585
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0041028b
add esp, 8
test eax, eax
je 0x40b585
mov dword [ebp - 0x48], 1
jmp 0x40b58c
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x48]
jne 0x40b59d
mov dword [ebp - 0x4c], 1
jmp 0x40b5a4
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jne 0x40b5e8
mov edx, dword [0x42180c]
push edx
mov eax, dword [0x4217f8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_PolylineTo]
mov edx, dword [0x421824]
imul edx, dword [0x4217f4]
cmp eax, edx
je 0x40b5db
mov dword [ebp - 0x50], 1
jmp 0x40b5e2
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0
je 0x40b612
mov dword [ebp - 0x8c], 0x60
mov eax, dword [ebp - 0x14]
xor edx, edx
div dword [ebp - 8]
mov dword [0x4217f4], eax
mov eax, dword [0x421818]
push eax
call fcn.0041086b
add esp, 4
jmp 0x40b7e3
mov dword [ebp - 0x6c], 0x75
mov ecx, dword [0x4217fc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40b647
mov eax, dword [0x4217f4]
imul eax, dword [0x421800]
test eax, eax
jne 0x40b647
mov dword [ebp - 0x54], 0
jmp 0x40b64e
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x90]
xor edx, edx
div dword [0x421820]
mov dword [ebp - 4], eax
mov ecx, dword [0x421814]
push ecx
mov edx, dword [0x4217e8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, dword [ebp - 4]
jbe 0x40b681
mov dword [ebp - 0x58], 1
jmp 0x40b688
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jne 0x40b699
mov dword [ebp - 0x5c], 1
jmp 0x40b6a0
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x40b71d
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [0x421828]
push edx
mov eax, dword [0x421828]
push eax
call dword [sym.imp.GDI32.dll_PolylineTo]
mov esi, eax
mov ecx, dword [0x421820]
push ecx
mov edx, dword [0x4217e0]
push edx
call fcn.0041028b
add esp, 8
cmp esi, eax
jbe 0x40b6e2
mov dword [ebp - 0x60], 1
jmp 0x40b6e9
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
je 0x40b71d
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [ebp - 8], eax
mov eax, dword [0x421810]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x421808], eax
mov ecx, dword [0x421810]
push ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x421814], eax
jmp 0x40b740
mov dword [ebp - 0x94], 0xce
mov dword [ebp - 0x98], 0xf4
mov edx, dword [0x42182c]
push edx
call fcn.0040c3bb
add esp, 4
mov eax, dword [ebp - 0xc]
add eax, dword [0x421824]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x42180c]
push ecx
call fcn.0041086b
add esp, 4
cmp dword [ebp - 0x10], eax
jbe 0x40b769
mov dword [ebp - 0x64], 1
jmp 0x40b770
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
jne 0x40b7a9
mov edx, dword [0x421800]
imul edx, dword [0x4217ec]
mov dword [ebp - 8], edx
mov eax, dword [0x4217e0]
and eax, dword [ebp - 8]
cmp eax, dword [ebp - 8]
je 0x40b79c
mov dword [ebp - 0x68], 1
jmp 0x40b7a3
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0
je 0x40b7c8
mov dword [ebp - 0x9c], 0xa8
mov ecx, dword [0x421820]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041028b
add esp, 8
jmp 0x40b7e3
mov eax, dword [0x42180c]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041086b
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x421800]
push eax
mov ecx, dword [0x421804]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [0x4217f4]
push eax
mov ecx, dword [0x42180c]
push ecx
mov edx, dword [0x4217f4]
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop esi
mov esp, ebp
pop ebp
ret