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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x1010b74]
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x46]
inc esi
mov word [ebp - 0x48], bx
push 5
rep stosd dword es:[edi], eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], ebx
mov dword [0x10115f0], 2
mov dword [0x10115f8], ebx
call fcn.01001f10
test eax, eax
jne 0x1002cb5
cmp dword [0x1010c28], ebx
jne 0x1002a7b
push dword [0x1010bf0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1002a7b
mov dword [ebp - 0x268], ebx
jmp 0x1002cb5
mov dword [0x1010c28], esi
call dword [sym.imp.USER32.dll_CountClipboardFormats]
cmp eax, ebx
mov dword [ebp - 0x264], eax
jne 0x1002aa8
lea ebx, [ebp - 0x25c]
mov dword [ebp - 0x260], 0xc
xor edi, edi
jmp 0x1002bd7
push 0x64
pop ecx
cmp eax, ecx
jbe 0x1002ab7
mov dword [ebp - 0x264], ecx
mov eax, ecx
lea eax, [eax + eax*8]
lea eax, [eax*4 + 0xc]
cmp eax, 0x640
jbe 0x1002ad7
mov dword [ebp - 0x264], 0x2c
mov eax, 0x63c
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002a91
xor esi, esi
push esi
mov dword [ebp - 0x260], esi
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov edi, eax
test edi, edi
je 0x1002bc8
lea esi, [ebx + 0xc]
mov eax, dword [ebp - 0x264]
cmp dword [ebp - 0x260], eax
jae 0x1002bc2
cmp edi, 0xf
mov eax, dword [0x10115f4]
jne 0x1002b30
test eax, eax
je 0x1002bb1
mov dword [ebp - 0x26c], 1
cmp edi, 2
je 0x1002bb1
cmp edi, 0x82
je 0x1002bb1
cmp edi, 0xe
je 0x1002bb1
cmp edi, 0x80
je 0x1002bb1
cmp edi, 0xf
jne 0x1002b53
test eax, eax
je 0x1002bb1
push 0x20
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
test eax, eax
jne 0x1002b6b
mov dword [esi - 4], edi
mov byte [esi], al
jmp 0x1002ba8
lea eax, [ebp - 0x48]
push eax
call fcn.01002174
test eax, eax
jne 0x1002bb1
mov dword [esi - 4], edi
cmp dword [0x1010c2c], eax
je 0x1002b98
push eax
push eax
push 0x20
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1002ba8
push 0x10
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
inc dword [ebp - 0x260]
add esi, 0x24
push edi
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov edi, eax
test edi, edi
jne 0x1002b02
mov esi, dword [ebp - 0x260]
lea edi, [esi + esi*8]
shl edi, 2
lea eax, [edi + 0xc]
mov dword [ebp - 0x260], eax
xor esi, esi
cmp dword [0x1010c28], esi
je 0x1002bed
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x1010c28], esi
cmp dword [ebp - 0x26c], esi
je 0x1002c7b
mov esi, 0x10110d6
push esi
push 0
push 0x10029f6
push 0x10113e6
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1002c6c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
lea eax, [ebp - 0x250]
push eax
push esi
call fcn.01004d84
test eax, eax
jne 0x1002c6c
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push 0x1010fd0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1002c7b
and word [0x10110d6], 0
mov byte [0x1010fd0], 0
push dword [ebp - 0x260]
mov dword [0x1010c24], 5
and word [ebx + 2], 0
mov word [ebx], 2
mov dword [ebx + 4], edi
inc dword [0x1010f6c]
push ebx
call fcn.010047c0
lea eax, [ebp - 0x25c]
cmp ebx, eax
je 0x1002cb5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x268]
pop edi
pop esi
pop ebx
call fcn.010090ab
leave
ret