Function at 0x40a649
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0
push 1
call fcn.0049c470
add esp, 4
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x40a6d2
mov eax, 0x2714
jmp 0x40ba3a
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0xe6], 0
je 0x40a751
cmp dword [ebp + 0x10], 0
je 0x40a751
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
cmp dword [eax + 0x44], 2
jne 0x40a737
mov dword [ebp - 4], 1
jmp 0x40a73e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x40a7a5
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x51
push 0x52daa0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0x32], 0
jne 0x40a7d7
cmp dword [ebp - 4], 0
je 0x40ba0d
cmp dword [0x52da08], 0
je 0x40ba0d
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a861
xor eax, eax
mov ax, word [0x531af8]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40a83d
xor eax, eax
mov ax, word [0x531b00]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40a83d
xor eax, eax
mov ax, word [0x531afc]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40a84c
mov dword [ebp - 0x160], 1
jmp 0x40a856
mov dword [ebp - 0x160], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40a86b
mov dword [ebp - 0x160], 0
cmp dword [ebp - 0x160], 0
je 0x40a891
mov eax, dword [0x52da00]
push eax
call fcn.0047a292
add esp, 4
mov dword [ebp - 0x150], eax
jmp 0x40a8af
mov eax, dword [0x52da00]
push eax
call fcn.0047a130
add esp, 4
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x180], 1
cmp dword [ebp - 0x150], 0
je 0x40a8c1
jmp 0x40ba0d
call fcn.00409036
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40a8de
jmp 0x40ba0d
cmp dword [ebp - 0x180], 0
je 0x40a8ff
mov eax, dword [0x52da00]
push eax
call fcn.0047a292
add esp, 4
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40a911
jmp 0x40ba0d
cmp dword [ebp - 4], 0
je 0x40abbf
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x148], eax
push 0
mov eax, dword [ebp - 0x148]
push eax
call fcn.00471124
add esp, 8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push 0x66
mov eax, dword [0x52da00]
push eax
call fcn.004752d5
add esp, 0x14
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40a9a6
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x18]
push eax
call fcn.0047954d
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x19c], 0
mov eax, dword [ebp - 0x124]
cmp dword [eax + 0x14], 0
jl 0x40a9f7
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 0x14]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x124]
mov eax, dword [ecx + eax*4 + 0x44]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x150], 0
je 0x40aa2c
jmp 0x40ba0d
mov dword [ebp - 0x168], 0
jmp 0x40aa41
inc dword [ebp - 0x168]
cmp dword [ebp - 0x168], 0x1e
jge 0x40ab8b
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x19c], eax
jne 0x40ab71
mov eax, dword [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004d96e6
add esp, 8
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov dword [eax + 0x48], 0xffffffff
mov eax, dword [ebp - 0x120]
mov dword [eax + 0x40], 0xffffffff
mov eax, dword [ebp - 0x10]
push eax
call fcn.004d9749
add esp, 4
push 0
push 0
push 0x479
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x178], eax
push 1
push 0x7d00
mov eax, dword [ebp - 0x178]
push eax
push 0
push 0x531060
mov eax, dword [ebp - 0x19c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004d9ff2
add esp, 0x1c
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40ab15
jmp 0x40ba0d
movsx eax, word [ebp - 0x144]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
jle 0x40ab6c
push 1
mov eax, dword [ebp - 0x178]
push eax
push 0
push 0
push 0x531064
mov eax, dword [ebp - 0x19c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004d9ff2
add esp, 0x1c
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40ab6c
jmp 0x40ba0d
jmp 0x40ab86
push 1
mov eax, dword [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004d992f
add esp, 0xc
jmp 0x40aa3b
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
mov eax, dword [0x52da00]
push eax
call fcn.0040935b
add esp, 0xc
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40abbf
jmp 0x40ba0d
mov eax, dword [ebp - 0x188]
add eax, 0xd6
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xde]
push eax
push 0x65
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476c98
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40ac04
jmp 0x40ba0d
mov dword [ebp - 0x184], 0xffffffff
mov dword [ebp - 0x164], 0xffffffff
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xd6]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.004d47bf
add esp, 0x18
test eax, eax
jne 0x40ac6a
mov dword [ebp - 0x1a0], 1
jmp 0x40ac74
mov dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x1a0], 0
je 0x40ad01
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x184]
cmp dword [eax + 0xde], ecx
jne 0x40ad01
cmp dword [ebp - 0x164], 0xffffffff
jne 0x40ad01
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xd6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x34], 0x22
je 0x40ace4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx + 0x90]
cmp eax, 1
jne 0x40acee
mov dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xd6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x1a0], 0
jne 0x40ad18
mov dword [ebp - 0x164], 0xffffffff
lea eax, [ebp - 0x194]
push eax
push 0x66
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.0047a899
add esp, 0xc
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x194]
cmp dword [eax + 0x32], ecx
jne 0x40ad57
mov dword [ebp - 0x14c], 1
jmp 0x40ad61
mov dword [ebp - 0x14c], 0
cmp dword [ebp + 0xc], 0
jne 0x40ada8
cmp dword [ebp - 0x14c], 0
je 0x40ada8
mov eax, dword [ebp - 0x188]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040a4fd
add esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40ada3
jmp 0x40ba0d
jmp 0x40b792
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b4972
add esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40adce
jmp 0x40ba0d
mov eax, dword [ebp - 0x188]
add eax, 0xce
push eax
push 0x67
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476c98
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40ae08
jmp 0x40ba0d
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xce]
push eax
push 0x67
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xce]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40ae4e
jmp 0x40ba0d
lea eax, [ebp - 0x190]
push eax
push 0x72
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40aeb8
mov eax, dword [ebp - 0x190]
push eax
push 0x72
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x190]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40aeb8
jmp 0x40ba0d
lea eax, [ebp - 0x190]
push eax
push 0x69
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40aeed
jmp 0x40ba0d
mov eax, dword [ebp - 0x190]
push eax
push 0x69
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x190]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40af27
jmp 0x40ba0d
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xb6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x13c]
add eax, 0x10
push eax
push 0x6f
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.004752d5
add esp, 0x14
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40af7b
jmp 0x40ba0d
mov eax, dword [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xb6]
push eax
call fcn.00479672
add esp, 8
mov eax, dword [ebp - 0x130]
push eax
call fcn.0047947b
add esp, 4
lea eax, [ebp - 0x15c]
push eax
push 0x6a
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40afdb
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x6a
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40b015
jmp 0x40ba0d
lea eax, [ebp - 0x15c]
push eax
push 0x6e
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b04a
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x6e
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40b084
jmp 0x40ba0d
lea eax, [ebp - 0x15c]
push eax
push 0x68
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b0b9
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x68
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40b0f3
jmp 0x40ba0d
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xbe]
push eax
push 0x65
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b124
jmp 0x40ba0d
lea eax, [ebp - 0x15c]
push eax
push 0x66
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b159
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x66
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40b193
jmp 0x40ba0d
cmp dword [ebp - 0x14c], 0
jne 0x40b1fb
lea eax, [ebp - 0x15c]
push eax
push 0x66
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40b1fb
push 1
mov eax, dword [ebp - 0x15c]
push eax
call fcn.004d97b5
add esp, 8
mov eax, dword [ebp - 0x15c]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
lea eax, [ebp - 0x15c]
push eax
push 0x6b
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b230
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x6b
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b25b
jmp 0x40ba0d
lea eax, [ebp - 0x15c]
push eax
push 0x6c
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b290
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x6c
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b2bb
jmp 0x40ba0d
lea eax, [ebp - 0x15c]
push eax
push 0x6d
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b2f0
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
push 0x6d
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b31b
jmp 0x40ba0d
lea eax, [ebp - 0x15c]
push eax
push 0x64
push 0x64
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b350
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00479672
add esp, 8
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [eax + 0xa6], 0x90
mov eax, dword [ebp - 0x174]
mov dword [eax + 0xaa], 0x90
mov eax, 0x52cff0
add eax, 0x88
push eax
mov eax, dword [ebp - 0x174]
add eax, 0x7a
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push 1
mov eax, dword [ebp - 0x174]
add eax, 0x22
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp - 0x15c]
push eax
push 0x64
push 0x64
call fcn.004091aa
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40b41a
jmp 0x40ba0d
mov eax, dword [0x52da00]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.0040a09a
add esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b44a
jmp 0x40ba0d
cmp dword [ebp - 4], 0
je 0x40b459
jmp 0x40b792
lea eax, [ebp - 0x198]
push eax
push 0x65
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00475bee
add esp, 0xc
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b48c
jmp 0x40ba0d
mov dword [ebp - 0x170], 1
mov eax, dword [ebp + 0xc]
push eax
push 0
push 1
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x198]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xd6]
push eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0x26]
push eax
call fcn.00409c2b
add esp, 0x1c
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40b792
lea eax, [ebp - 0x15c]
push eax
push 0x6a
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b50f
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x16], eax
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
lea eax, [ebp - 0x15c]
push eax
push 0x64
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b58d
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
add eax, 0x10
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x174]
mov dword [ecx + 0xde], eax
mov eax, dword [ebp - 0x174]
mov dword [eax + 0x4a], 0
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x15c]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x198]
push eax
push 0x65
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b62f
jmp 0x40ba0d
lea eax, [ebp - 0x16c]
push eax
push 0x68
push 0x64
mov eax, dword [0x52da00]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b660
jmp 0x40ba0d
push 0x3c
mov eax, dword [ebp - 0x16c]
push eax
call fcn.0047566d
add esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b689
jmp 0x40ba0d
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x28], 0
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x38], 0
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x16c]
push eax
call fcn.004796fa
add esp, 4
push 0
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x15c]
push eax
mov eax, dword [0x52da00]
push eax
call fcn.00427fca
add esp, 0x18
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x40b74d
jmp 0x40ba0d
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], 0
mov eax, dword [ebp - 0x15c]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x150], 0
je 0x40b7b4
push 0
mov eax, dword [0x52da00]
push eax
call fcn.0047a411
add esp, 8
jmp 0x40ba0d
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ba0d
cmp dword [ebp - 4], 0
jne 0x40b7d8
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebp + 0xc], 0
je 0x40b822
push 2
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
push eax
xor eax, eax
mov ax, word [0x531afc]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40b81d
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40ba07
cmp dword [ebp + 0x10], 0
je 0x40b86c
push 2
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
push eax
xor eax, eax
mov ax, word [0x531b00]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40b867
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40ba07
push 2
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x17c], eax
jmp 0x40b937
mov dword [ebp - 0x154], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x154], 0
je 0x40b9d0
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0x4a], 7
je 0x40b9b9
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0x4a], 0xa
je 0x40b9b9
cmp dword [ebp - 0x138], 0
jne 0x40b9b9
cmp dword [ebp - 0x1a0], 0
jne 0x40b998
mov dword [ebp - 0x140], 0xffffffff
push 1
mov eax, dword [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x140]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00521300
add esp, 0x10
jmp 0x40b9cb
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00521300
add esp, 0x10
call fcn.0051d007
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov eax, dword [ebp - 0x17c]
push eax
xor eax, eax
mov ax, word [0x531af8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40ba07
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 0xd6]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x150]
jmp 0x40ba3a
pop edi
pop esi
pop ebx
leave
ret