Function at 0x405c98
Capabilities:
Write clipboard data

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x45ceaf
call fcn.0044e550
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 0x473b4c
lea ecx, [ebp + 0x4c]
call fcn.00436695
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.004055a3
mov byte [ebp - 4], 2
push ebx
push ebx
push esi
lea ecx, [ebp]
call fcn.004058cf
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.00405254
lea eax, [ebp + 0x34]
push eax
call fcn.00405756
mov edi, eax
mov dword [ebp + 0x48], edi
push edi
push 1
push esi
call fcn.00405341
add esp, 0x10
mov ecx, esi
call fcn.00422897
test al, 0x40
jne 0x405d4c
push edi
lea ecx, [ebp - 0x38]
call fcn.004055e0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [ebp + 0x64]
cmp dword [edi], ebx
jne 0x405d65
push 0x460a2b
mov ecx, edi
call fcn.0042cab5
lea eax, [ebp + 0x68]
push eax
push edi
call fcn.004054a7
pop ecx
pop ecx
mov dword [ebp + 0x38], eax
cmp eax, ebx
jne 0x405d8a
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x213
mov ecx, esi
call fcn.004052f9
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.0040929d
mov byte [ebp - 4], 6
push ebx
cmp dword [ebp + 0x6c], ebx
je 0x405e26
push ebx
push 0x302
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp + 0x70], bl
je 0x405e5b
xor eax, eax
cmp byte [ebp + 0x70], bl
setne al
lea eax, [eax + eax + 5]
push eax
push eax
lea ecx, [ebp]
call fcn.0040a1d4
cmp byte [ebp + 0x5b], bl
je 0x405e5b
push 1
lea ecx, [ebp + 0x20]
call fcn.00408e8d
push ebx
push 0x11
call fcn.00408f16
pop ecx
pop ecx
push 1
push 0x56
push 2
lea ecx, [ebp]
call fcn.0040a03a
dec dword [ebp + 0x18]
push ebx
lea ecx, [ebp]
call fcn.00409fcd
push 6
push 0x11
lea ecx, [ebp]
call fcn.00409df0
jmp 0x405e74
push 0x1f4
call sym.qmmacro.exe_WaitForAnActiveWindow
pop ecx
pop ecx
mov dword [ebp + 0x6c], eax
push eax
lea ecx, [ebp + 0x28]
call fcn.0040934e
push dword [ebp + 0x6c]
call fcn.00434a93
pop ecx
mov byte [ebp + 0x59], al
cmp al, bl
jne 0x405dc6
mov byte [ebp + 0x5b], 1
jmp 0x405dcf
cmp byte [ebp + 0x59], bl
je 0x405e74
push ebx
push 0xfff1
push 0x112
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x6c]
call fcn.004347b4
pop ecx
mov byte [ebp + 0x5a], al
mov ecx, esi
call fcn.004228aa
mov dword [ebp + 0x70], eax
fild dword [ebp + 0x70]
test eax, eax
jge 0x405e97
fadd qword [0x460fe8]
fadd qword [0x460fe0]
push ecx
push ecx
fstp qword [esp]
call fcn.00450b84
pop ecx
pop ecx
fmul qword [0x460ff0]
call fcn.004504a0
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ebx
mov edi, 0xc8
mov eax, dword [ebp + 0x50]
cmp dword [ebp + 0x54], eax
jge 0x405f17
cmp dword [ebp + 0x40], ebx
jne 0x405f17
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.004260d8
cmp dword [ebp + 0x40], ebx
jne 0x405f17
cmp dword [ebp + 0x54], 4
jne 0x405eff
push ebx
lea ecx, [ebp]
call fcn.00409fcd
jmp 0x405f48
jle 0x405f48
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x28]
call fcn.0040934e
test al, al
je 0x405f39
mov dword [ebp + 0x40], 1
lea ecx, [ebp - 0x1c]
call fcn.004052a9
push ebx
lea ecx, [ebp]
call fcn.00409fcd
cmp byte [ebp + 0x5a], bl
je 0x405f50
mov ecx, esi
call fcn.00425ab3
jmp 0x405ffc
push 8
push edi
push dword [ebp + 0x6c]
push esi
call fcn.00426e03
add esp, 0x10
inc dword [ebp + 0x54]
jmp 0x405ebf
cmp dword [ebp + 0x40], 1
jne 0x405fe1
cmp byte [ebp - 0x24], bl
je 0x405f7f
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x28]
call fcn.00409047
test al, al
jne 0x405f7f
mov eax, dword [ebp + 0x50]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp + 0x50], eax
jmp 0x405f86
mov dword [ebp + 0x50], 0xa
mov dword [ebp + 0x54], ebx
mov eax, dword [ebp + 0x50]
cmp dword [ebp + 0x54], eax
jge 0x405fbe
push 5
mov ecx, esi
call fcn.004052e3
call dword [sym.imp.USER32.dll_GetOpenClipboardWindow]
test eax, eax
je 0x405fbe
cmp dword [ebp + 0x54], 0xa
jl 0x405fb9
push 8
push edi
push dword [ebp + 0x6c]
push esi
call fcn.00426e03
add esp, 0x10
inc dword [ebp + 0x54]
jmp 0x405f89
mov ecx, esi
call fcn.004228aa
cmp eax, 0xf
jae 0x405fd3
mov ecx, esi
call fcn.004228aa
jmp 0x405fd6
push 0xf
pop eax
add eax, 5
push eax
mov ecx, esi
call fcn.004052e3
cmp byte [ebp + 0x5b], bl
je 0x405ffc
cmp dword [0x473c90], ebx
je 0x405ffc
push ebx
push ebx
push 1
push 0x64
lea ecx, [ebp]
call fcn.00409554
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x20]
call fcn.00405309
wait
mov dword [ebp - 4], 4
cmp dword [ebp + 0x40], ebx
jne 0x40601c
push 0x215
jmp 0x406027
cmp dword [ebp + 0x40], 2
jne 0x40602e
push 0x213
mov ecx, esi
call fcn.004052f9
cmp byte [ebp + 0x5a], bl
jne 0x40604f
push 8
mov eax, dword [ebp + 0x50]
imul eax, eax, 0x64
push eax
push dword [ebp + 0x6c]
push esi
call fcn.00426e03
add esp, 0x10
test al, al
jne 0x40604f
mov byte [ebp - 0x24], bl
push ebx
lea ecx, [ebp - 0x38]
call fcn.00405643
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004052a9
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.0040594e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040591d
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 0x40609a
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, esi
call fcn.004052f1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x14