Function at 0x10027fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0x100144c
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call fcn.01004c8a
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xc000
pop ecx
jae 0x1002841
cmp eax, 2
je 0x1002846
cmp eax, 3
je 0x1002841
cmp eax, 9
je 0x1002841
cmp eax, 8
je 0x1002841
cmp eax, 0xe
jne 0x1002867
cmp eax, 2
jne 0x100284f
mov dword [ebp - 0x10], 1
jmp 0x100285b
cmp eax, 3
jne 0x100285b
mov dword [ebp - 8], 1
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [edi], eax
push dword [edi]
lea eax, [edi + 0xc]
push eax
push 0x100142c
call fcn.01004c8a
mov eax, dword [edi]
add esp, 0xc
cmp eax, dword [0x100944c]
jne 0x100288f
push 0x1001414
call fcn.01004c8a
pop ecx
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [0x100944c]
sete cl
push ecx
push eax
push dword [0x10091f4]
push esi
push dword [edi + 4]
push esi
push dword [0x10091f0]
call sub.USER32.dll_DdeCreateDataHandle
mov ebx, eax
cmp ebx, esi
jne 0x10028ca
push 0x10013f4
call fcn.01004c8a
pop ecx
jmp 0x1002a44
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.USER32.dll_DdeAccessData
mov esi, eax
test esi, esi
jne 0x10028ed
push 0x10013d8
call fcn.01004c8a
pop ecx
push ebx
call sub.USER32.dll_DdeFreeDataHandle
jmp 0x100294b
push 0
push 0
push dword [edi + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1002915
push 0x10013bc
call fcn.01004c8a
pop ecx
push ebx
call sub.USER32.dll_DdeUnaccessData
jmp 0x10028e5
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 4]
cmp dword [ebp - 4], eax
je 0x1002952
push ebx
call sub.USER32.dll_DdeUnaccessData
push ebx
call sub.USER32.dll_DdeFreeDataHandle
push dword [ebp - 4]
push 0x1001394
call fcn.01004c8a
pop ecx
pop ecx
xor ebx, ebx
jmp 0x1002a44
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x10029ad
push ecx
push dword [edi]
add eax, 0xfffffff8
push dword [0x10091f4]
mov dword [ebp + 8], eax
push ecx
push eax
push ecx
push dword [0x10091f0]
mov dword [ebp + 0xc], ebx
call sub.USER32.dll_DdeCreateDataHandle
mov ebx, eax
mov ax, word [esi]
mov word [ebp - 0x14], ax
mov ax, word [esi + 4]
mov word [ebp - 0x12], ax
mov ax, word [esi + 8]
push 0
mov word [ebp - 0x10], ax
push 8
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.USER32.dll_DdeAddData
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push 8
add esi, 0x10
jmp 0x1002a1c
cmp dword [ebp - 0x10], ecx
je 0x1002a3e
push ecx
push dword [edi]
add eax, 0xfffffff6
push dword [0x10091f4]
mov dword [ebp + 8], eax
push ecx
push eax
push ecx
push dword [0x10091f0]
mov dword [ebp + 0xc], ebx
call sub.USER32.dll_DdeCreateDataHandle
mov ebx, eax
mov ax, word [esi]
mov word [ebp - 0x18], ax
mov ax, word [esi + 4]
mov word [ebp - 0x16], ax
mov ax, word [esi + 8]
mov word [ebp - 0x14], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x12], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x10], al
mov al, byte [esi + 0x12]
push 0
mov byte [ebp - 0xf], al
push 0xe
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.USER32.dll_DdeAddData
mov eax, dword [ebp + 8]
add eax, 0xfffffff2
push 0xe
add esi, 0x18
push eax
push esi
push ebx
call sub.USER32.dll_DdeAddData
push dword [ebp + 0xc]
call sub.USER32.dll_DdeUnaccessData
push dword [ebp + 0xc]
call sub.USER32.dll_DdeFreeDataHandle
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.USER32.dll_DdeAccessData
push ebx
call sub.USER32.dll_DdeUnaccessData
push ebx
push 0x1001388
call fcn.01004c8a
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8