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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov ecx, 0x4c314c
call fcn.00404060
test eax, eax
jne 0x43eabb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd41c]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0x4a596c
push 0
push str.Cant_open_clipboard_for_writing.
call fcn.0042d460
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push esi
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
call edi
test eax, eax
je 0x43ed1c
cmp dword [esp + 0xc], 4
jb 0x43ed1c
mov ecx, dword [0x4bd41c]
mov dword [ecx + 0x30], esi
cmp dword [esp + 0x10], esi
je 0x43ecbe
nop
push esi
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push ebx
call edi
test eax, eax
je 0x43ecaf
cmp dword [esp + 0xc], 4
jb 0x43ecaf
mov ecx, dword [esp + 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x43ebbe
cmp dword [esp + 0x14], 0
je 0x43eb7d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x43ec1b
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x43ec7b
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x14]
jb 0x43ec7b
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 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push ebx
call edi
test eax, eax
je 0x43ec9c
cmp dword [esp + 0xc], 4
jb 0x43ec9c
xor esi, esi
cmp dword [esp + 0x10], esi
jne 0x43eb00
jmp 0x43ecbe
cmp dword [0x4c3164], 0
je 0x43ebf8
cmp dword [0x4c3154], 0
je 0x43ebe6
mov eax, dword [0x4c314c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c3154], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4c3164], eax
mov dword [0x4c314c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0x4a596c
push 0
push str.Out_of_memory.
call fcn.0042d460
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4c3164], esi
je 0x43ec59
cmp dword [0x4c3154], esi
je 0x43ec47
mov ecx, dword [0x4c314c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c3154], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c3164], esi
mov dword [0x4c314c], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0x4a596c
push esi
push 0x49bb34
call fcn.0042d460
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4bd41c]
push esi
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x43ecbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd41c]
mov dword [ecx + 0x30], eax
xor esi, esi
jmp 0x43ecbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4bd41c]
mov dword [edx + 0x30], eax
cmp dword [0x4c3164], esi
je 0x43ecf2
cmp dword [0x4c3154], esi
je 0x43ece0
mov eax, dword [0x4c314c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c3154], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c3164], esi
mov dword [0x4c314c], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], esi
jne 0x43ed67
mov ecx, dword [0x4c17f0]
push 1
push esi
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd41c]
mov dword [ecx + 0x30], eax
cmp dword [0x4c3164], esi
je 0x43ed60
cmp dword [0x4c3154], esi
je 0x43ed4e
mov edx, dword [0x4c314c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c3154], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c3164], esi
mov dword [0x4c314c], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4