Function at 0x402940
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x41e2dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x38]
imul eax, eax, 0x66
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x70], ebx
test ebx, ebx
jne 0x402993
push 0x30
push str.Copy_Status
push str.Failed_to_allocate_memory_for_copy.
call fcn.004031e0
add esp, 0xc
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b545
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor esi, esi
mov byte [eax], 0
mov dword [ebp - 0x6c], eax
cmp dword [edi + 0x38], esi
jle 0x402ad7
lea esp, [esp]
mov ecx, dword [edi + 0x4c]
mov byte [ebp - 0x68], 0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp esi, eax
jg 0x4029d9
test esi, esi
jle 0x402aaf
mov ecx, dword [edi + 0x4c]
lea edx, [ebp - 0x68]
push edx
lea edx, [esi - 1]
jmp 0x402aa7
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
lea ebx, [eax + 1]
mov eax, dword [edx + 4]
call eax
add eax, ebx
cmp esi, eax
jg 0x402a0d
cmp esi, ebx
jle 0x402aaf
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x68]
push eax
mov eax, esi
sub eax, ebx
dec eax
push eax
call edx
jmp 0x402aaf
mov ecx, dword [edi + 0x48]
lea ebx, [eax + 1]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
add eax, ebx
cmp esi, eax
jg 0x402a2d
cmp esi, ebx
jle 0x402aaf
mov ecx, dword [edi + 0x48]
jmp 0x402a9e
mov ecx, dword [edi + 0x54]
mov edx, dword [ecx]
lea ebx, [eax + 1]
mov eax, dword [edx + 4]
call eax
add eax, ebx
cmp esi, eax
jg 0x402a49
cmp esi, ebx
jle 0x402aaf
mov ecx, dword [edi + 0x54]
jmp 0x4029f7
mov ecx, dword [edi + 0x5c]
lea ebx, [eax + 1]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
add eax, ebx
cmp esi, eax
jg 0x402a65
cmp esi, ebx
jle 0x402aaf
mov ecx, dword [edi + 0x5c]
jmp 0x402a9e
mov ecx, dword [edi + 0x58]
mov edx, dword [ecx]
lea ebx, [eax + 1]
mov eax, dword [edx + 4]
call eax
add eax, ebx
cmp esi, eax
jg 0x402a84
cmp esi, ebx
jle 0x402aaf
mov ecx, dword [edi + 0x58]
jmp 0x4029f7
mov ecx, dword [edi + 0x60]
lea ebx, [eax + 1]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
add eax, ebx
cmp esi, eax
jg 0x402aaf
cmp esi, ebx
jle 0x402aaf
mov ecx, dword [edi + 0x60]
lea edx, [ebp - 0x68]
push edx
mov edx, esi
sub edx, ebx
dec edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
call eax
mov edx, dword [ebp - 0x6c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x68]
push ecx
push edx
call ebx
mov eax, dword [ebp - 0x6c]
push 0x4199a4
push eax
call ebx
inc esi
cmp esi, dword [edi + 0x38]
jl 0x4029b0
mov ebx, dword [ebp - 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
pop esi
test eax, eax
je 0x402b10
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b545
mov esp, ebp
pop ebp
ret
push 0x30
push str.Copy_Status
push str.Failed_to_copy_to_clipboard.
call fcn.004031e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b545
mov esp, ebp
pop ebp
ret