Function at 0x4010a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov byte [ebp - 6], 0
mov byte [ebp - 0x809], 0
mov byte [ebp - 0x815], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4010ce
xor al, al
jmp 0x40142c
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010ec
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x40142c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x401112
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x40142c
mov dword [ebp - 0x81c], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x810], 0
mov cx, word [0x408fbc]
mov word [ebp - 0x808], cx
push 0x7fe
push 0
lea edx, [ebp - 0x806]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x820], eax
jmp 0x40116b
mov ecx, dword [ebp - 0x820]
add ecx, 2
mov dword [ebp - 0x820], ecx
mov edx, dword [ebp - 0x820]
movzx eax, word [edx]
test eax, eax
je 0x40124c
mov ecx, dword [ebp - 0x820]
movzx edx, word [ecx]
push edx
call sub.MSVCR90.dll_iswspace
add esp, 4
test eax, eax
je 0x40122f
movzx eax, byte [ebp - 5]
test eax, eax
je 0x40122d
mov byte [ebp - 5], 0
mov ecx, dword [ebp - 0x81c]
add ecx, 1
mov dword [ebp - 0x81c], ecx
cmp dword [ebp - 0x81c], 0x18
jg 0x40120d
mov edx, dword [ebp - 0x820]
sub edx, dword [ebp - 0x810]
sar edx, 1
mov dword [ebp - 0x824], edx
mov eax, dword [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x810]
push ecx
push 0x400
lea edx, [ebp - 0x808]
push edx
call sub.MSVCR90.dll_wcsncat_s
add esp, 0x10
push 0x4090f0
push 0x400
lea eax, [ebp - 0x808]
push eax
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
cmp dword [ebp - 0x81c], 0x18
jle 0x40122d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x40142c
jmp 0x401247
movzx edx, byte [ebp - 5]
test edx, edx
jne 0x401247
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x810], eax
jmp 0x40115c
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x401287
mov edx, dword [ebp - 0x81c]
add edx, 1
mov dword [ebp - 0x81c], edx
cmp dword [ebp - 0x81c], 0x18
jg 0x401287
mov eax, dword [ebp - 0x810]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x81c], 0xc
je 0x4012ad
cmp dword [ebp - 0x81c], 0x18
jne 0x40142a
lea eax, [ebp - 0x808]
push eax
push 0x4090f4
lea ecx, [ebp - 0xc10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40c020
lea edx, [ebp - 0xc10]
push edx
call sub.MSVCR90.dll_wcscmp
add esp, 8
test eax, eax
jne 0x4012e8
xor al, al
jmp 0x40142c
lea eax, [ebp - 0x808]
push eax
push 0x4090fc
push 0x40c020
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x808]
push ecx
call fcn.00401430
add esp, 8
add eax, 2
mov dword [ebp - 0x828], eax
push 0x409104
lea edx, [ebp - 0x808]
push edx
call sub.MSVCR90.dll_wcstok
add esp, 8
mov dword [ebp - 0xc18], eax
cmp dword [ebp - 0x828], 0
je 0x401426
push 0x409108
mov eax, dword [ebp - 0x828]
push eax
call sub.MSVCR90.dll_wcstok
add esp, 8
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc1c], 0
jmp 0x401378
mov ecx, dword [ebp - 0xc1c]
add ecx, 1
mov dword [ebp - 0xc1c], ecx
cmp dword [ebp - 0xc1c], 0x800
jae 0x4013ae
mov edx, dword [ebp - 0xc1c]
mov eax, dword [edx*4 + 0x40a008]
push eax
mov ecx, dword [ebp - 0xc18]
push ecx
call sub.MSVCR90.dll_wcscmp
add esp, 8
test eax, eax
jne 0x4013ac
mov byte [ebp - 0x809], 1
jmp 0x401369
movzx edx, byte [ebp - 0x809]
cmp edx, 1
jne 0x401426
mov dword [ebp - 0xc20], 0
jmp 0x4013d5
mov eax, dword [ebp - 0xc20]
add eax, 1
mov dword [ebp - 0xc20], eax
cmp dword [ebp - 0xc20], 0x800
jae 0x40140b
mov ecx, dword [ebp - 0xc20]
mov edx, dword [ecx*4 + 0x40a008]
push edx
mov eax, dword [ebp - 0xc14]
push eax
call sub.MSVCR90.dll_wcscmp
add esp, 8
test eax, eax
jne 0x401409
mov byte [ebp - 0x815], 1
jmp 0x4013c6
movzx ecx, byte [ebp - 0x815]
cmp ecx, 1
jne 0x401426
lea edx, [ebp - 0xc10]
push edx
call fcn.00401000
add esp, 4
mov al, 1
jmp 0x40142c
xor al, al
mov esp, ebp
pop ebp
ret