Function at 0x1001e7c
Capabilities:
Create directory
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x62]
mov word [ebp - 0x64], bx
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x100b9dc]
inc esi
cmp dword [eax*4 + 0x100b094], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
mov dword [0x100c39c], 2
mov dword [0x100c3a4], ebx
jne 0x10020e3
cmp dword [0x100b9e0], ebx
jne 0x1001ee3
push dword [0x100b9a8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1001ee3
mov dword [ebp - 0x14], ebx
jmp 0x10020e3
mov dword [0x100b9e0], esi
call dword [sym.imp.USER32.dll_CountClipboardFormats]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1001f0a
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0xc
xor edi, edi
jmp 0x100201f
push 0x64
pop ecx
cmp eax, ecx
jbe 0x1001f16
mov dword [ebp - 8], ecx
mov eax, ecx
lea eax, [eax + eax*8]
lea eax, [eax*4 + 0xc]
cmp eax, 0x640
jbe 0x1001f33
mov dword [ebp - 8], 0x2c
mov eax, 0x63c
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1001ef6
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov edi, eax
cmp edi, ebx
je 0x1002013
mov esi, dword [ebp - 0xc]
add esi, 0xc
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jae 0x1002010
cmp edi, 0xf
mov eax, dword [0x100c3a0]
jne 0x1001f84
cmp eax, ebx
je 0x1001fff
mov dword [ebp - 0x10], 1
cmp edi, 2
je 0x1001fff
cmp edi, 0x82
je 0x1001fff
cmp edi, 0xe
je 0x1001fff
cmp edi, 0x80
je 0x1001fff
cmp edi, 0xf
jne 0x1001fa7
cmp eax, ebx
je 0x1001fff
push 0x20
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
test eax, eax
jne 0x1001fbf
mov dword [esi - 4], edi
mov byte [esi], bl
jmp 0x1001ff9
lea eax, [ebp - 0x64]
push eax
call fcn.0100188c
test eax, eax
jne 0x1001fff
mov dword [esi - 4], edi
cmp dword [0x100b9e4], ebx
lea eax, [ebp - 0x64]
je 0x1001fec
push ebx
push ebx
push 0x20
push esi
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1001ff9
push 0x10
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
inc dword [ebp - 4]
add esi, 0x24
push edi
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov edi, eax
cmp edi, ebx
jne 0x1001f5f
mov esi, dword [ebp - 4]
lea edi, [esi + esi*8]
shl edi, 2
lea eax, [edi + 0xc]
mov dword [ebp - 4], eax
cmp dword [0x100b9e0], ebx
je 0x1002033
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x100b9e0], ebx
cmp dword [ebp - 0x10], ebx
je 0x10020ad
mov esi, 0x100be82
push esi
push ebx
push 0x1001e74
push 0x100c192
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10020a0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x26c]
push eax
push esi
call fcn.01002fe0
test eax, eax
jne 0x10020a0
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push ebx
push ebx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push 0x100bd7c
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x10020ad
mov word [0x100be82], bx
mov byte [0x100bd7c], bl
mov esi, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [0x100b9dc], 5
mov word [esi], 2
mov word [esi + 2], bx
mov dword [esi + 4], edi
inc dword [0x100bd1c]
push esi
call fcn.01003666
lea eax, [ebp - 0x20]
cmp esi, eax
je 0x10020e3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret