Function at 0x428480
Capabilities:
Get common file path
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x730
push ebx
push eax
xor ebx, ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4289df
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 8
call edi
test eax, eax
je 0x4284e2
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov ebp, 1
test esi, esi
mov dword [esp + 0x18], ebp
jne 0x4286ce
push 2
call edi
test eax, eax
je 0x428538
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x18], 4
jmp 0x428532
push 0xe
call edi
test eax, eax
je 0x4284fc
push 0xe
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x18], 2
jmp 0x428532
push 0xd
call edi
test eax, eax
je 0x428516
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x18], 5
jmp 0x428532
push 1
call edi
test eax, eax
je 0x4289d6
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x18], 3
mov ebp, dword [esp + 0x18]
mov esi, eax
test esi, esi
je 0x4289d6
cmp ebp, 2
jne 0x4286c9
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0x6c
push ecx
push 0x6c
push esi
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
test eax, eax
je 0x4289d6
push 0
push 0
push 0
push 0x598100
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
mov dword [esp + 0x24], eax
push 0xa
fild dword [esp + 0x28]
push edi
fstp dword [esp + 0x30]
call ebx
mov dword [esp + 0x24], eax
push 4
fild dword [esp + 0x28]
push edi
fstp dword [esp + 0x2c]
call ebx
mov dword [esp + 0x14], eax
push 6
fild dword [esp + 0x18]
push edi
fstp dword [esp + 0x18]
call ebx
mov dword [esp + 0x14], eax
push edi
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
fld dword [esp + 0x14]
fmul dword [0x5526e8]
fstp dword [esp + 0x1c]
fild dword [esp + 0x58]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fdiv dword [esp + 0x1c]
call fcn.004d6118
fld dword [esp + 0x10]
fmul dword [0x5526e8]
mov edi, eax
fstp dword [esp + 0x20]
fild dword [esp + 0x54]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x28]
fdiv dword [esp + 0x20]
call fcn.004d6118
fild dword [esp + 0x5c]
mov ebx, eax
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x28]
fdiv dword [esp + 0x20]
call fcn.004d6118
fild dword [esp + 0x60]
mov ebp, eax
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x24]
fdiv dword [esp + 0x1c]
call fcn.004d6118
mov dword [esp + 0x38], eax
mov eax, ebp
sub eax, ebx
cdq
mov ecx, eax
mov eax, dword [esp + 0x38]
xor ecx, edx
sub eax, edi
sub ecx, edx
cdq
xor eax, edx
mov dword [esp + 0x20], ecx
sub eax, edx
mov dword [esp + 0x1c], eax
push eax
push ecx
push esi
call fcn.0040b170
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x428778
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
push ebx
call fcn.004c6f60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push esi
call fcn.0040b170
add esp, 0x20
mov ebx, eax
jmp 0x428770
cmp ebp, 1
jne 0x4286fa
push 0
push esi
call fcn.004c5190
push 0
push esi
mov edi, eax
call fcn.004281e0
add esp, 0x10
mov ebx, eax
test edi, edi
jge 0x428770
push 0
push ebx
call fcn.0041e470
add esp, 8
jmp 0x428770
cmp ebp, 4
jne 0x42870e
push 0
push esi
call fcn.004271f0
add esp, 8
mov ebx, eax
jmp 0x428770
cmp ebp, 3
jne 0x428731
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x428769
mov edx, dword [esp + 0x754]
push edx
push 0x5b9260
push 0
jmp 0x428756
cmp ebp, 5
jne 0x4289d6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x428769
mov eax, dword [esp + 0x754]
push eax
push 0x5b9260
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
call fcn.004109d0
mov ebx, eax
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
je 0x4289d6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x74c]
xor ebp, ebp
mov ecx, dword [edi + 0x10]
mov bp, word [edi + 0xe]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x42879b
mov dword [eax], ebp
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4287cd
mov ax, word [edi + 0xe]
cmp ax, 1
jne 0x4287b3
mov dword [edi + 0x20], 2
cmp ax, 4
jne 0x4287c0
mov dword [edi + 0x20], 0x10
cmp ax, 8
jne 0x4287cd
mov dword [edi + 0x20], pe_nt_image_headers32
cmp word [edi + 0xe], 8
jbe 0x4287db
mov dword [edi + 0x20], 0
cmp dword [esp + 0x18], 1
jne 0x42882c
fild dword [edi + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fdiv dword [0x5526ec]
fmul dword [0x5526e8]
fadd qword [0x5526c8]
call fcn.004d6118
fild dword [edi + 0x1c]
mov dword [edi + 0x18], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fdiv dword [0x5526ec]
fmul dword [0x5526e8]
fadd qword [0x5526c8]
call fcn.004d6118
mov dword [edi + 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x428845
cmp eax, 1
jne 0x428961
lea edx, [esp + 0xa8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xa8]
push eax
call fcn.004d6713
add esp, 4
cmp word [esp + eax*2 + 0xa6], 0x5c
je 0x428888
lea ecx, [esp + 0xa8]
push 0x598458
push ecx
call fcn.004d62f1
add esp, 8
lea edx, [esp + 0xa8]
push str.IrfanView.tmp
push edx
call fcn.004d62f1
lea eax, [esp + 0xb0]
push 0x598078
push eax
call fcn.004d5ece
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42891d
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call ebp
xor ecx, ecx
mov word [esp + 0x2c], 0x4d42
mov word [esp + 0x32], cx
mov word [esp + 0x34], cx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax]
push esi
lea eax, [edx + ecx*4 + 0xe]
mov dword [esp + 0x3a], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xe
lea ecx, [esp + 0x34]
push 1
push ecx
call fcn.004d5f50
add esp, 0x10
push esi
call ebp
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 1
push ebp
call fcn.004d5f50
push edi
call fcn.004d5e20
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call edi
lea edx, [esp + 0x330]
lea eax, [esp + 0x538]
push edx
push eax
lea ecx, [esp + 0xb0]
push 0
push ecx
call fcn.004042e0
lea edx, [esp + 0xb8]
mov ebx, eax
push edx
call fcn.004d7368
push ebx
call fcn.004c52f0
add esp, 0x18
mov ebp, eax
jmp 0x428967
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebp, 0x20
je 0x428971
cmp ebp, 0x10
jne 0x42899e
mov eax, dword [esp + 0x748]
push eax
push ebp
push ebx
call fcn.00423400
mov esi, eax
add esp, 0xc
test esi, esi
je 0x42899e
test ebx, ebx
je 0x428997
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call edi
mov ebx, esi
mov ebp, 0x18
mov eax, dword [esp + 0x750]
test eax, eax
je 0x4289d6
cmp ebp, 0x18
jne 0x4289d6
push 1
push 1
push pe_nt_image_headers32
push ebx
call fcn.00426ca0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4289d6
test ebx, ebx
je 0x4289d4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call edi
mov ebx, esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x730
ret