Function at 0x403875
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], 0
push 0
push 0
push 0x18b
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x403a52
push 0x6d
mov ecx, dword [0x40f1d4]
push ecx
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x100
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0x9c44
je 0x4038f9
jmp 0x403a48
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [ebp - 0x14], 0
jmp 0x40391b
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x24]
jge 0x40394a
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x18a
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 3]
mov dword [ebp - 0xc], eax
jmp 0x403912
mov ecx, dword [ebp - 0xc]
shl ecx, 1
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x403980
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x24]
jge 0x403a1b
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x18a
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x189
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0xd
je 0x4039ec
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0xa
je 0x4039ec
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x4039ec
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
jmp 0x4039bb
mov eax, dword [ebp - 8]
mov word [eax], 0xd
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov word [edx], 0xa
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov word [ecx], 0
jmp 0x403977
mov edx, dword [ebp - 8]
mov word [edx], 0
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov esp, ebp
pop ebp
ret