Function at 0x405c9e
Capabilities:
Write clipboard data

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x45c238
call fcn.0044d930
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0xffffffffffffffff
push str.qm_mutex_key
push 0x472b2c
lea ecx, [ebp + 0x4c]
call fcn.00435da8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x5b], bl
mov byte [ebp + 0x59], bl
xor eax, eax
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x48], ebx
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x38]
call fcn.004055a9
mov byte [ebp - 4], 2
push ebx
push ebx
push esi
lea ecx, [ebp]
call fcn.004058d5
mov byte [ebp - 4], 3
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x30], esi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 4
push 1
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040525a
lea eax, [ebp + 0x34]
push eax
call fcn.0040575c
mov edi, eax
mov dword [ebp + 0x48], edi
push edi
push 1
push esi
call fcn.00405347
add esp, 0x10
mov ecx, esi
call fcn.0042283f
test al, 0x40
jne 0x405d52
push edi
lea ecx, [ebp - 0x38]
call fcn.004055e6
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebp + 0x64]
cmp dword [edi], ebx
jne 0x405d6b
push 0x45f9fb
mov ecx, edi
call fcn.0042ca6f
lea eax, [ebp + 0x68]
push eax
push edi
call fcn.004054ad
pop ecx
pop ecx
mov dword [ebp + 0x38], eax
cmp eax, ebx
jne 0x405d90
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x213
mov ecx, esi
call fcn.004052ff
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x3c], eax
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 5
wait
push 1
lea ecx, [ebp + 0x20]
call fcn.0040929b
mov byte [ebp - 4], 6
push ebx
cmp dword [ebp + 0x6c], ebx
je 0x405e2c
push ebx
push 0x302
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp + 0x70], bl
je 0x405e61
xor eax, eax
cmp byte [ebp + 0x70], bl
setne al
lea eax, [eax + eax + 5]
push eax
push eax
lea ecx, [ebp]
call fcn.0040a1d2
cmp byte [ebp + 0x5b], bl
je 0x405e61
push 1
lea ecx, [ebp + 0x20]
call fcn.00408e8b
push ebx
push 0x11
call fcn.00408f14
pop ecx
pop ecx
push 1
push 0x56
push 2
lea ecx, [ebp]
call fcn.0040a038
dec dword [ebp + 0x18]
push ebx
lea ecx, [ebp]
call fcn.00409fcb
push 6
push 0x11
lea ecx, [ebp]
call fcn.00409dee
jmp 0x405e7a
push 0x1f4
call sym.qmmacro.exe_WaitForAnActiveWindow
pop ecx
pop ecx
mov dword [ebp + 0x6c], eax
push eax
lea ecx, [ebp + 0x28]
call fcn.0040934c
push dword [ebp + 0x6c]
call fcn.0042ea60
pop ecx
mov byte [ebp + 0x59], al
cmp al, bl
jne 0x405dcc
mov byte [ebp + 0x5b], 1
jmp 0x405dd5
cmp byte [ebp + 0x59], bl
je 0x405e7a
push ebx
push 0xfff1
push 0x112
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x6c]
call fcn.0042e8f4
pop ecx
mov byte [ebp + 0x5a], al
mov ecx, esi
call fcn.00422852
mov dword [ebp + 0x70], eax
fild dword [ebp + 0x70]
test eax, eax
jge 0x405e9d
fadd qword [0x45ffb8]
fadd qword [0x45ffb0]
push ecx
push ecx
fstp qword [esp]
call fcn.0044ff64
pop ecx
pop ecx
fmul qword [0x45ffc0]
call fcn.0044f880
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ebx
mov edi, 0xc8
mov eax, dword [ebp + 0x50]
cmp dword [ebp + 0x54], eax
jge 0x405f1d
cmp dword [ebp + 0x40], ebx
jne 0x405f1d
push ebx
xor eax, eax
cmp byte [ebp + 0x5a], bl
sete al
dec eax
and eax, 3
dec eax
dec eax
push eax
lea eax, [ebp + 0x40]
push eax
push 0xa
mov ecx, esi
call fcn.00426085
cmp dword [ebp + 0x40], ebx
jne 0x405f1d
cmp dword [ebp + 0x54], 4
jne 0x405f05
push ebx
lea ecx, [ebp]
call fcn.00409fcb
jmp 0x405f4e
jle 0x405f4e
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x28]
call fcn.0040934c
test al, al
je 0x405f3f
mov dword [ebp + 0x40], 1
lea ecx, [ebp - 0x1c]
call fcn.004052af
push ebx
lea ecx, [ebp]
call fcn.00409fcb
cmp byte [ebp + 0x5a], bl
je 0x405f56
mov ecx, esi
call fcn.00425a7b
jmp 0x406002
push 8
push edi
push dword [ebp + 0x6c]
push esi
call fcn.00426d80
add esp, 0x10
inc dword [ebp + 0x54]
jmp 0x405ec5
cmp dword [ebp + 0x40], 1
jne 0x405fe7
cmp byte [ebp - 0x24], bl
je 0x405f85
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x28]
call fcn.00409045
test al, al
jne 0x405f85
mov eax, dword [ebp + 0x50]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp + 0x50], eax
jmp 0x405f8c
mov dword [ebp + 0x50], 0xa
mov dword [ebp + 0x54], ebx
mov eax, dword [ebp + 0x50]
cmp dword [ebp + 0x54], eax
jge 0x405fc4
push 5
mov ecx, esi
call fcn.004052e9
call dword [sym.imp.USER32.dll_GetOpenClipboardWindow]
test eax, eax
je 0x405fc4
cmp dword [ebp + 0x54], 0xa
jl 0x405fbf
push 8
push edi
push dword [ebp + 0x6c]
push esi
call fcn.00426d80
add esp, 0x10
inc dword [ebp + 0x54]
jmp 0x405f8f
mov ecx, esi
call fcn.00422852
cmp eax, 0xf
jae 0x405fd9
mov ecx, esi
call fcn.00422852
jmp 0x405fdc
push 0xf
pop eax
add eax, 5
push eax
mov ecx, esi
call fcn.004052e9
cmp byte [ebp + 0x5b], bl
je 0x406002
cmp dword [0x472c70], ebx
je 0x406002
push ebx
push ebx
push 1
push 0x64
lea ecx, [ebp]
call fcn.00409552
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x20]
call fcn.0040530f
wait
mov dword [ebp - 4], 4
cmp dword [ebp + 0x40], ebx
jne 0x406022
push 0x215
jmp 0x40602d
cmp dword [ebp + 0x40], 2
jne 0x406034
push 0x213
mov ecx, esi
call fcn.004052ff
cmp byte [ebp + 0x5a], bl
jne 0x406055
push 8
mov eax, dword [ebp + 0x50]
imul eax, eax, 0x64
push eax
push dword [ebp + 0x6c]
push esi
call fcn.00426d80
add esp, 0x10
test al, al
jne 0x406055
mov byte [ebp - 0x24], bl
push ebx
lea ecx, [ebp - 0x38]
call fcn.00405649
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004052af
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00405954
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00405923
mov byte [ebp - 4], bl
push dword [ebp + 0x48]
call dword [sym.imp.USER32.dll_DestroyWindow]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x4c], ebx
je 0x4060a0
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, esi
call fcn.004052f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x14