Function at 0x419cfa
Capabilities:
Get file size
Open clipboard
Read file on windows
Write clipboard data

Disassembly:
mov eax, 0x439908
call fcn.00437bf0
sub esp, 0x810
mov eax, dword [0x444130]
push ebx
push esi
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jne 0x419d22
xor eax, eax
jmp 0x419d2b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.00402dfd
lea ecx, [ebp - 0x10]
call fcn.0041818d
lea ecx, [ebp - 0x10]
call fcn.0041813d
push ebx
lea ecx, [ebp - 0x10]
call fcn.00403003
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x419f0d
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
mov esi, 0x4696c8
mov ecx, esi
call fcn.00404697
cmp dword [0x4696d4], ebx
jne 0x419d92
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402cb3
xor eax, eax
jmp 0x419f24
push edi
mov ecx, esi
call fcn.00404922
mov ecx, esi
call fcn.0040473e
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov eax, dword [0x45689c]
mov dword [ebp - 0x81c], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x818]
rep stosd dword es:[edi], eax
push 0x42
call fcn.004166bc
push eax
lea eax, [ebp - 0x81c]
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x81c]
push 0x4547c4
push eax
call sub.MSVCRT.dll_wcscat
push dword [ebp + 8]
lea eax, [ebp - 0x81c]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x1c
cmp dword [ebp - 0x14], 0xffffffff
mov dword [ebp + 8], ebx
jne 0x419e2c
push 0x10
lea eax, [ebp - 0x81c]
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x419ee9
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x48071c], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
jne 0x419e6e
mov edi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 0x4547bc
call edi
push 0x444304
mov dword [0x480720], eax
call edi
push str.JFIF
mov dword [0x48071c], eax
call edi
mov dword [0x480724], eax
push dword [ebp - 0x18]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x419ee0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
je 0x419ee0
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp - 0x18], 3
jbe 0x419eb1
push edi
call fcn.00419cc6
pop ecx
mov edi, dword [0x480724]
cmp eax, 1
jne 0x419ec2
mov edi, dword [0x480720]
cmp eax, 2
jne 0x419ecd
mov edi, dword [0x48071c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00404922
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp + 8], ebx
pop edi
je 0x419f05
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x14
call fcn.00419a9b
pop ecx
or dword [ebp - 4], 0xffffffff
push 1
pop esi
lea ecx, [ebp - 0x10]
mov dword [0x480680], esi
call fcn.00402cb3
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret