Function at 0x40ba3f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x48], 0
jmp 0x40ba91
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x48]
cmp dword [eax + 0x10], ecx
jle 0x40baec
mov eax, dword [ebp - 0x48]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
test byte [eax + ecx + 0x88], 1
je 0x40bae7
mov eax, dword [ebp - 0x48]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx + 0x18], 7
je 0x40bae7
mov dword [ebp - 0x10], 1
jmp 0x40baec
jmp 0x40ba8e
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x10], 0
jne 0x40bb0b
mov eax, dword [ebp - 0x40]
jmp 0x40c3ea
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40bbe0
xor eax, eax
mov ax, word [0x531b04]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40bb80
cmp dword [ebp + 0x14], 0
je 0x40bb80
push 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ae4ca
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [0x52da04], 0
cmp dword [ebp - 0x40], 0
je 0x40bb6a
jmp 0x40c33b
mov eax, dword [0x52da00]
push eax
call fcn.0047a292
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40bbca
cmp dword [ebp + 0x14], 0
je 0x40bb99
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ae43e
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [0x52da04], 0
cmp dword [ebp - 0x40], 0
je 0x40bbb2
jmp 0x40c33b
mov eax, dword [0x52da00]
push eax
call fcn.0047a130
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x40], 0
jne 0x40bbda
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x40], 0
je 0x40bbef
jmp 0x40c33b
call fcn.00409036
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bc06
jmp 0x40c33b
cmp dword [ebp - 0x50], 0
je 0x40bc21
mov eax, dword [0x52da00]
push eax
call fcn.0047a292
add esp, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
push 0x72
push 0x64
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40bc78
mov eax, dword [ebp - 0x5c]
push eax
push 0x72
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40bc73
jmp 0x40c33b
jmp 0x40bc7f
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x5c]
push eax
push 0x69
push 0x64
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bca8
jmp 0x40c33b
mov eax, dword [ebp - 0x5c]
push eax
push 0x69
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40bcd6
jmp 0x40c33b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xb6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x10
push eax
push 0x6f
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.004752d5
add esp, 0x14
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bd18
jmp 0x40c33b
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xb6]
push eax
call fcn.00479672
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0x6c
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bd5f
jmp 0x40c33b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x58]
push eax
push 0x6d
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bd84
jmp 0x40c33b
lea eax, [ebp - 8]
push eax
push 0x6c
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bdac
jmp 0x40c33b
lea eax, [ebp - 0x3c]
push eax
push 0x6d
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40bdd4
jmp 0x40c33b
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x10]
dec eax
mov dword [ebp - 0x48], eax
jmp 0x40be00
dec dword [ebp - 0x48]
cmp dword [ebp - 0x48], 0
jl 0x40c2d4
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + eax*4 + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
test byte [eax + ecx + 0x88], 1
je 0x40be5e
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx + 0x18], 7
je 0x40be5e
mov dword [ebp - 0x10], 0
jmp 0x40be65
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x40bf61
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x38]
inc ecx
sub eax, ecx
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40beca
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x38]
inc eax
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
add eax, dword [ebp - 0xc]
add eax, 0x14
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
add eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.00522244
add esp, 0xc
mov eax, dword [ebp - 0xc]
dec dword [eax + 0x10]
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x48]
inc ecx
sub eax, ecx
shl eax, 2
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40bf16
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x48]
lea eax, [eax*4 + 4]
add eax, dword [ebp - 0x64]
add eax, 0x14
push eax
mov eax, dword [ebp - 0x48]
shl eax, 2
add eax, dword [ebp - 0x64]
add eax, 0x14
push eax
call fcn.00522244
add esp, 0xc
mov eax, dword [ebp - 0x64]
dec dword [eax + 0x10]
mov dword [ebp - 0x4c], 0
jmp 0x40bf2b
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
cmp dword [eax + 0x10], ecx
jle 0x40bf5c
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x38]
cmp dword [ecx + eax*4 + 0x14], edx
jle 0x40bf57
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
dec dword [ecx + eax*4 + 0x14]
jmp 0x40bf28
jmp 0x40c2cf
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx + 0x80], 0
jl 0x40c2cf
mov dword [ebp - 0x4c], 0
jmp 0x40bf8f
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x4c]
cmp dword [eax + ecx + 0x84], edx
jle 0x40c2cf
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x80]
add eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x7c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40c007
jmp 0x40c2cf
cmp dword [ebp - 0x20], 0
jne 0x40c077
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx + 0x18], 6
jne 0x40c077
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x80]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x7c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004614c7
add esp, 0xc
mov dword [ebp - 0x20], 1
jmp 0x40c26e
cmp dword [ebp - 0x20], 0
jne 0x40c26e
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx + 0x18], 8
jne 0x40c26e
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x7c]
mov dword [ebp - 0x68], eax
jmp 0x40c255
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c171
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
movsx eax, word [eax + ecx + 0x90]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x90]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x84]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x80]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x6d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004cdba5
add esp, 0x14
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40c16b
mov dword [ebp - 0x20], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40c26e
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x84]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x80]
push eax
push 0x6e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.0045cbca
add esp, 0x18
test eax, eax
jne 0x40c24b
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c201
mov eax, dword [ebp - 4]
push eax
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40c1fb
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x84]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x80]
push eax
push 0x6e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004617a6
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x40c26e
cmp dword [ebp - 0x68], 0x6d
je 0x40c0ba
cmp dword [ebp - 0x68], 0x6e
je 0x40c176
jmp 0x40c26e
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x80]
add eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx + 0x7c]
push eax
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40c2ca
jmp 0x40c33b
jmp 0x40bf8c
jmp 0x40bdfd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x40], 0
je 0x40c300
jmp 0x40c33b
mov eax, dword [ebp - 0x60]
dec eax
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
shl eax, 4
add eax, 0xe4
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0047566d
add esp, 8
mov eax, dword [ebp - 0x60]
lea eax, [eax*4 - 4]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0047566d
add esp, 8
cmp dword [ebp - 0x3c], 0
je 0x40c351
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 8], 0
je 0x40c367
mov eax, dword [ebp - 8]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x40c386
push 0
mov eax, dword [0x52da00]
push eax
call fcn.0047a411
add esp, 8
jmp 0x40c3e2
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c3e2
cmp dword [ebp - 0x20], 0
jne 0x40c3aa
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 2
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
xor eax, eax
mov ax, word [0x531b04]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40c3dc
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x40]
jmp 0x40c3ea
pop edi
pop esi
pop ebx
leave
ret