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

Disassembly:
sub esp, 0xc
push 0x4a8cc4
call fcn.00404220
test eax, eax
jne 0x43fa52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push 0x4957f9
push 0
push str.Cant_open_clipboard_for_writing.
call fcn.0042cfd0
add esp, 0xc
ret 4
push ebx
push ebp
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push edi
call ebp
test eax, eax
je 0x43fca5
cmp dword [esp + 8], 4
jb 0x43fca5
mov ecx, dword [0x4a3440]
mov dword [ecx + 0x30], ebx
push esi
cmp dword [esp + 0x10], ebx
je 0x43fc4c
lea esp, [esp]
push ebx
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push edi
call ebp
test eax, eax
je 0x43fc3d
cmp dword [esp + 0xc], 4
jb 0x43fc3d
mov ecx, dword [esp + 0x14]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x43fb55
cmp dword [esp + 0x14], ebx
je 0x43fb17
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x43fbad
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 0x43fc0d
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x14]
jb 0x43fc0d
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 0x43fc2c
cmp dword [esp + 0xc], 4
jb 0x43fc2c
cmp dword [esp + 0x10], ebx
jne 0x43faa0
jmp 0x43fc4c
cmp dword [0x4a8cdc], ebx
je 0x43fb89
cmp dword [0x4a8ccc], ebx
je 0x43fb77
mov eax, dword [0x4a8cc4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a8ccc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a8cdc], ebx
mov dword [0x4a8cc4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push 0x4957f9
push ebx
push str.Out_of_memory.
call fcn.0042cfd0
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4a8cdc], ebx
je 0x43fbe9
cmp dword [0x4a8ccc], ebx
je 0x43fbd7
mov ecx, dword [0x4a8cc4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a8ccc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a8cdc], ebx
mov dword [0x4a8cc4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push 0x4957f9
push ebx
push 0x4959b4
call fcn.0042cfd0
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4a3440]
push esi
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43fc4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
mov dword [ecx + 0x30], eax
jmp 0x43fc4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4a3440]
mov dword [edx + 0x30], eax
cmp dword [0x4a8cdc], ebx
je 0x43fc80
cmp dword [0x4a8ccc], ebx
je 0x43fc6e
mov eax, dword [0x4a8cc4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a8ccc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a8cdc], ebx
mov dword [0x4a8cc4], 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.0042ce00
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
mov dword [ecx + 0x30], eax
cmp dword [0x4a8cdc], ebx
je 0x43fce9
cmp dword [0x4a8ccc], ebx
je 0x43fcd7
mov edx, dword [0x4a8cc4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a8ccc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a8cdc], ebx
mov dword [0x4a8cc4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], bl
jne 0x43fd1b
mov ecx, dword [0x4a7474]
push 1
push ebx
push 0xffffffffffffffff
push 0x496ed0
push ecx
call fcn.004715e0
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
push 0x4957f9
push ebx
push 0x496ed0
call fcn.0042cd10
pop ebp
pop ebx
add esp, 0xc
ret 4