Function at 0x10027f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0x100143c
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call fcn.01004bf7
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xc000
pop ecx
jae 0x1002839
cmp eax, 2
je 0x100283e
cmp eax, 3
je 0x1002839
cmp eax, 9
je 0x1002839
cmp eax, 8
je 0x1002839
cmp eax, 0xe
jne 0x100285f
cmp eax, 2
jne 0x1002847
mov dword [ebp - 0x10], 1
jmp 0x1002853
cmp eax, 3
jne 0x1002853
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 0x100141c
call fcn.01004bf7
mov eax, dword [edi]
add esp, 0xc
cmp eax, dword [0x100842c]
jne 0x1002887
push 0x1001404
call fcn.01004bf7
pop ecx
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [0x100842c]
sete cl
push ecx
push eax
push dword [0x10081d4]
push esi
push dword [edi + 4]
push esi
push dword [0x10081d0]
call sub.USER32.dll_DdeCreateDataHandle
mov ebx, eax
cmp ebx, esi
jne 0x10028c2
push 0x10013e4
call fcn.01004bf7
pop ecx
jmp 0x1002a3c
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.USER32.dll_DdeAccessData
mov esi, eax
test esi, esi
jne 0x10028e5
push 0x10013c8
call fcn.01004bf7
pop ecx
push ebx
call sub.USER32.dll_DdeFreeDataHandle
jmp 0x1002943
push 0
push 0
push dword [edi + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100290d
push 0x10013ac
call fcn.01004bf7
pop ecx
push ebx
call sub.USER32.dll_DdeUnaccessData
jmp 0x10028dd
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 0x100294a
push ebx
call sub.USER32.dll_DdeUnaccessData
push ebx
call sub.USER32.dll_DdeFreeDataHandle
push dword [ebp - 4]
push 0x1001384
call fcn.01004bf7
pop ecx
pop ecx
xor ebx, ebx
jmp 0x1002a3c
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x10029a5
push ecx
push dword [edi]
add eax, 0xfffffff8
push dword [0x10081d4]
mov dword [ebp + 8], eax
push ecx
push eax
push ecx
push dword [0x10081d0]
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 0x1002a14
cmp dword [ebp - 0x10], ecx
je 0x1002a36
push ecx
push dword [edi]
add eax, 0xfffffff6
push dword [0x10081d4]
mov dword [ebp + 8], eax
push ecx
push eax
push ecx
push dword [0x10081d0]
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 0x1001378
call fcn.01004bf7
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8