Function at 0x10003870
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001266e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x1001e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x20], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10003a87
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10003a81
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10003a7a
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x10003a7a
mov eax, dword [edi + 0x10]
lea edx, [ecx + 1]
mov dword [ebp - 0x18], eax
cmp edx, eax
ja 0x10003947
mov dword [edi + 0x10], edx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x10003941
mov eax, dword [edi]
mov byte [eax + edx], 0
jmp 0x10003996
mov ecx, edx
sub ecx, eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
ja 0x10003982
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], edx
mov edx, edi
jb 0x10003965
mov edx, dword [edi]
mov esi, dword [ebp - 0x18]
push ecx
add esi, edx
push 0
push esi
call fcn.10007d70
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x14]
jmp 0x10003993
push ecx
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.10006230
mov ecx, dword [ebp - 0x10]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100039a0
mov eax, dword [edi]
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x10]
mov eax, edi
dec ecx
mov dword [ebp - 0x3c], 0
cmp dword [edi + 0x10], ecx
mov dword [ebp - 0x2c], 0
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x28], 0xf
jb 0x100039e2
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.10005d90
lea eax, [ebp - 0x3c]
cmp edi, eax
je 0x10003a4a
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x10003a26
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x10003a1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a9a
mov eax, edx
push ecx
push eax
call fcn.1000679f
add esp, 8
movups xmm0, xmmword [ebp - 0x3c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [edi + 0x10], xmm0
jmp 0x10003a7a
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x10003a7a
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003a70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a9a
push edx
push ecx
call fcn.1000679f
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100099dc
int3