Function at 0x43c790
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, 0x4c2fe4
call fcn.00404030
test eax, eax
jne 0x43c7db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd4c4]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0x4a5c64
push 0
push str.Cant_open_clipboard_for_writing.
call fcn.0042b6a0
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 0x43ca3c
cmp dword [esp + 0xc], 4
jb 0x43ca3c
mov ecx, dword [0x4bd4c4]
mov dword [ecx + 0x30], esi
cmp dword [esp + 0x10], esi
je 0x43c9de
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 0x43c9cf
cmp dword [esp + 0xc], 4
jb 0x43c9cf
mov ecx, dword [esp + 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x43c8de
cmp dword [esp + 0x14], 0
je 0x43c89d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x43c93b
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 0x43c99b
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x14]
jb 0x43c99b
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 0x43c9bc
cmp dword [esp + 0xc], 4
jb 0x43c9bc
xor esi, esi
cmp dword [esp + 0x10], esi
jne 0x43c820
jmp 0x43c9de
cmp dword [0x4c2ffc], 0
je 0x43c918
cmp dword [0x4c2fec], 0
je 0x43c906
mov eax, dword [0x4c2fe4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c2fec], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4c2ffc], eax
mov dword [0x4c2fe4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0x4a5c64
push 0
push str.Out_of_memory.
call fcn.0042b6a0
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 [0x4c2ffc], esi
je 0x43c979
cmp dword [0x4c2fec], esi
je 0x43c967
mov ecx, dword [0x4c2fe4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c2fec], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c2ffc], esi
mov dword [0x4c2fe4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0x4a5c64
push esi
push 0x49c39c
call fcn.0042b6a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4bd4c4]
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 0x43c9de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd4c4]
mov dword [ecx + 0x30], eax
xor esi, esi
jmp 0x43c9de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4bd4c4]
mov dword [edx + 0x30], eax
cmp dword [0x4c2ffc], esi
je 0x43ca12
cmp dword [0x4c2fec], esi
je 0x43ca00
mov eax, dword [0x4c2fe4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c2fec], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c2ffc], esi
mov dword [0x4c2fe4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], esi
jne 0x43ca87
mov ecx, dword [0x4c1688]
push 1
push esi
push 0xffffffffffffffff
push 0x49c138
call fcn.004698a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd4c4]
mov dword [ecx + 0x30], eax
cmp dword [0x4c2ffc], esi
je 0x43ca80
cmp dword [0x4c2fec], esi
je 0x43ca6e
mov edx, dword [0x4c2fe4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4c2fec], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c2ffc], esi
mov dword [0x4c2fe4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4