Function at 0x4395c0
Capabilities:
Copy file
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f9cf4
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x52ec00]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], 1
mov edi, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
jl 0x439afc
cmp dword [ebp + 0x10], 1
jl 0x439afc
push 1
lea ecx, [esp + 0x58]
push ecx
push ebx
push edi
call fcn.00439b22
add esp, 0x10
test eax, eax
je 0x439af6
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x54]
mov eax, 0x3e8
cmp esi, eax
jle 0x43965f
mov esi, eax
mov eax, esi
imul eax, dword [ebp + 0x10]
cdq
idiv dword [ebp + 0xc]
cmp esi, 0x64
mov dword [esp + 0x14], eax
jle 0x439af6
cmp eax, 0x64
jle 0x439af6
push edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0xa
push 0xa
push dword [esp + 0x34]
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x20], eax
call fcn.0043d71c
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [edi + 8], eax
movzx eax, word [edi + 0xe]
shr eax, 3
imul eax, esi
imul eax, esi
pop ecx
push ebx
push ebx
mov dword [edi + 0x14], eax
lea eax, [esp + 0x58]
push eax
push ebx
push edi
push dword [esp + 0x40]
mov dword [edi + 4], esi
mov dword [esp + 0x68], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4398a4
push eax
push dword [esp + 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
push 2
push eax
push esi
push ebx
push ebx
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x78], esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], eax
call esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x320], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x324], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
cmp dword [esp + 0x34], ebx
je 0x439789
push dword [esp + 0x34]
lea eax, [esp + 0x34]
call fcn.00421ca3
cmp dword [esp + 0x30], ebx
je 0x439789
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x3c]
push 1
push dword [esp + 0x3c]
call dword [sym.imp.ole32.dll_OleDraw]
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x88]
push 2
push eax
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x8c]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x3c]
call esi
lea eax, [esp + 0xe4]
push eax
push 0x18
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x43986b
push dword [esp + 0x2c]
push dword [esp + 0x1c]
call fcn.0043da12
pop ecx
pop ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x43986b
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x439805
push dword [esp + 0x3c]
mov esi, eax
call fcn.00439ff8
mov dword [esp + 0x14], eax
jmp 0x439809
mov dword [esp + 0x14], ebx
push 0x238
call fcn.004d6661
pop ecx
cmp eax, ebx
je 0x439827
mov esi, eax
call fcn.00470554
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x43982d
mov dword [esp + 0x20], ebx
mov esi, ebx
mov dword [esp + 0x28], esi
cmp esi, ebx
je 0x43986b
cmp dword [esp + 0x14], ebx
je 0x43986b
push esi
call fcn.004705f8
mov eax, dword [esp + 0x14]
mov dword [esi + 0x21c], eax
mov esi, eax
call fcn.004704dd
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + 0x21c]
mov dword [ecx + 4], eax
call fcn.004704fd
mov ecx, dword [esp + 0x20]
mov dword [ecx + 8], eax
push dword [esp + 0x40]
push dword [esp + 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esp + 0x320], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x43988e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x320], 0xffffffff
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4398a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x18], ebx
je 0x4398be
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x1c], ebx
je 0x4398ce
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x28], ebx
je 0x439ae8
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x439ade
mov esi, dword [ebp + 0xc]
push 0xa
pop ecx
xor eax, eax
push 0x20
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
inc eax
mov word [esp + 0xa4], ax
pop eax
push ebx
push ebx
mov word [esp + 0xaa], ax
lea eax, [esp + 0x48]
push eax
push ebx
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x58], ebx
mov dword [esp + 0xac], 0x28
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x28]
call fcn.00470d58
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
add ecx, 0xffffffd8
mov eax, ecx
imul eax, edi
cdq
idiv esi
push ebx
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x84], edi
push eax
push ecx
push 0xa
push 0xa
push 1
lea eax, [esp + 0x8c]
push eax
push esi
call fcn.0047099a
push ebx
call fcn.004705f8
xor eax, eax
push 0x208
mov word [esp + 0x100], ax
xor ebx, ebx
lea eax, [esp + 0x102]
push ebx
push eax
call fcn.004dbcc0
add esp, 0xc
push dword [esp + 0x44]
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..tmp.png
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push esi
push dword [esp + 0x1c]
lea eax, [esp + 0x104]
push eax
call fcn.0043db08
add esp, 0xc
push 8
mov dword [esp + 0x4c], eax
pop ecx
xor eax, eax
mov dword [esp + 0xc0], ebx
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc0]
push eax
push ebx
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [esp + 0xe0], 0x3e8
jbe 0x439aba
push ebx
push dword [esp + 0x48]
lea eax, [esp + 0x104]
push eax
mov dword [esp + 0x54], 1
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x18], ebx
je 0x439ad5
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x439af6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x48]
jmp 0x439afe
xor eax, eax
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.004d5a7d
mov esp, ebp
pop ebp
ret