Function at 0x440f50
Capabilities:
Read file on windows
Write clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push 0x4c4b00
call fcn.00403fe0
test eax, eax
jne 0x440f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push 0x4a59a4
push 0
push str.Cant_open_clipboard_for_writing.
call fcn.0042ee10
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push edi
call ebp
test eax, eax
je 0x4411e1
cmp dword [esp + 0xc], 4
jb 0x4411e1
mov ecx, dword [0x4be3fc]
mov dword [ecx + 0x30], ebx
cmp dword [esp + 0x10], ebx
je 0x441188
push ebx
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push edi
call ebp
test eax, eax
je 0x441179
cmp dword [esp + 0xc], 4
jb 0x441179
mov ecx, dword [esp + 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x441091
cmp dword [esp + 0x14], ebx
je 0x441053
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4410e9
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x441149
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x14]
jb 0x441149
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push edi
call ebp
test eax, eax
je 0x441168
cmp dword [esp + 0xc], 4
jb 0x441168
cmp dword [esp + 0x10], ebx
jne 0x440fdc
jmp 0x441188
cmp dword [0x4c4b18], ebx
je 0x4410c5
cmp dword [0x4c4b08], ebx
je 0x4410b3
mov eax, dword [0x4c4b00]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c4b08], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c4b18], ebx
mov dword [0x4c4b00], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push 0x4a59a4
push ebx
push str.Out_of_memory.
call fcn.0042ee10
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4c4b18], ebx
je 0x441125
cmp dword [0x4c4b08], ebx
je 0x441113
mov ecx, dword [0x4c4b00]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c4b08], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c4b18], ebx
mov dword [0x4c4b00], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push 0x4a59a4
push ebx
push 0x49bb24
call fcn.0042ee10
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4be3fc]
push esi
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x441188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
mov dword [ecx + 0x30], eax
jmp 0x441188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4be3fc]
mov dword [edx + 0x30], eax
cmp dword [0x4c4b18], ebx
je 0x4411bc
cmp dword [0x4c4b08], ebx
je 0x4411aa
mov eax, dword [0x4c4b00]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c4b08], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c4b18], ebx
mov dword [0x4c4b00], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
setne cl
movzx edx, cl
push edx
push eax
call fcn.0042ebd0
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
mov dword [ecx + 0x30], eax
cmp dword [0x4c4b18], ebx
je 0x441225
cmp dword [0x4c4b08], ebx
je 0x441213
mov edx, dword [0x4c4b00]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c4b08], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c4b18], ebx
mov dword [0x4c4b00], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], bl
jne 0x441256
mov ecx, dword [0x4c26a8]
push ecx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x1c]
push 0x4a59a4
push ebx
push 0x49e334
call fcn.0042eae0
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4