Function at 0x445846
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 8], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
call fcn.0043249b
test eax, eax
pop ecx
je 0x445871
xor eax, eax
jmp 0x445b01
push dword [0x453660]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x445afe
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push edi
push dword [0x453664]
call esi
cmp eax, ebx
je 0x4458c0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4458c0
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test byte [ebp + 0xc], 1
jne 0x4458eb
push 0xd
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4458eb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x445aed
mov esi, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 4], eax
inc edi
jmp 0x445961
xor edi, edi
inc edi
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x445af6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x445aed
push ebx
push ebx
push dword [ebp - 8]
push eax
push ebx
push ebx
call fcn.0042eb20
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x445aed
cmp dword [ebp - 8], 0xffffffff
jne 0x44592f
dec esi
lea eax, [esi + esi + 2]
push eax
push ebx
push ebx
call fcn.00433f21
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x445aed
lea ecx, [esi + 1]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
push ebx
push ebx
call fcn.0042eb20
add esp, 0x18
mov dword [ebp - 0x18], edi
cmp dword [ebp - 4], ebx
je 0x445aed
test byte [ebp + 0xc], 2
je 0x445b04
mov esi, dword [ebp + 8]
lea ecx, [esi + 0xc80]
lea eax, [esi + 0xc68]
push ecx
push eax
call fcn.0042cb8c
test eax, eax
pop ecx
pop ecx
je 0x4459ac
lea eax, [esi + 0xc74]
push eax
lea eax, [esi + 0xc68]
push eax
call fcn.0042cb8c
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], ebx
jne 0x4459af
mov dword [ebp - 0x14], edi
push dword [esi + 0xc68]
push esi
call fcn.0042fd22
push dword [esi + 0xc74]
mov dword [ebp - 0x10], eax
push esi
call fcn.0042fd22
sub edi, dword [ebp - 0x10]
add esp, 0x10
push dword [ebp - 4]
mov esi, eax
add esi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
jle 0x445a02
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2 - 2]
mov cx, word [eax]
cmp cx, 0xd
je 0x4459f9
cmp cx, 0xa
jne 0x445a00
dec edi
dec eax
dec eax
cmp edi, ebx
jg 0x4459ea
cmp edi, ebx
je 0x445ad8
push edi
push dword [ebp - 4]
call fcn.00432252
pop ecx
pop ecx
mov ecx, eax
mov eax, esi
cdq
idiv ecx
cmp edx, ebx
mov dword [ebp - 8], eax
je 0x445a24
inc dword [ebp - 8]
lea esi, [edi + 1]
imul esi, dword [ebp - 8]
dec esi
lea eax, [esi + esi + 2]
push eax
push ebx
push dword [ebp + 8]
call fcn.00433f21
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x445ad6
mov eax, dword [ebp - 8]
test eax, eax
jle 0x445a81
add edi, edi
lea ecx, [edi + ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042e3ac
mov eax, dword [ebp - 0xc]
mov word [eax], 0xd
lea eax, [edi + 2]
add dword [ebp - 8], eax
add dword [ebp - 0xc], eax
add esp, 0xc
dec dword [ebp - 0x10]
jne 0x445a5c
and word [ebx + esi*2], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
inc edi
push edi
push edi
push esi
push ebx
push dword [ebp + 8]
call fcn.004450b5
add esp, 0x1c
xor esi, esi
cmp dword [ebp - 0x14], esi
push esi
push esi
mov dword [ebp - 0xc], edi
push edi
je 0x445ab6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
jmp 0x445abd
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.00438ffa
add esp, 0x18
push ebx
push esi
push dword [ebp + 8]
call fcn.0042eedd
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x445aed
push dword [ebp - 4]
mov eax, dword [0x4535bc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
xor eax, eax
cmp dword [ebp - 0x14], ebx
push ebx
setne al
push ebx
push eax
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004450b5
add esp, 0x1c
mov dword [ebp - 0xc], edi
jmp 0x445ad8