Function at 0x4740e0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x521234
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
push ebx
push edi
mov edi, dword [esp + 0x310]
xor ebx, ebx
cmp edi, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
jl 0x47467a
cmp dword [esp + 0x314], 1
jl 0x47467a
mov ecx, dword [esp + 0x308]
push ebp
mov ebp, dword [esp + 0x308]
push esi
lea eax, [esp + 0x48]
push 1
push eax
push ebx
push ecx
push ebp
call fcn.004746a0
add esp, 0x14
test eax, eax
je 0x47465d
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub esi, ecx
cmp esi, 0x3e8
jle 0x47416a
mov esi, 0x3e8
mov eax, esi
imul eax, dword [esp + 0x31c]
cdq
idiv edi
cmp esi, 0x64
mov edi, eax
jle 0x47465d
cmp edi, 0x64
jle 0x47465d
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0xa
push 0xa
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x28], eax
call fcn.00494680
mov ebp, eax
xor edx, edx
mov ecx, dword [esp + 0x20]
add esp, 4
mov dx, word [ebp + 0xe]
lea eax, [esp + 0x40]
shr edx, 3
imul edx, esi
imul edx, esi
push ebx
push ebx
push eax
push ebx
push ebp
mov dword [ebp + 4], esi
mov dword [ebp + 8], edi
mov dword [ebp + 0x14], edx
push ecx
mov dword [esp + 0x58], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x4743ef
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x30c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30c]
push 2
push edi
push esi
push ebx
push ebx
mov dword [esp + 0x64], esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], edi
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x310]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
mov dword [esp + 0x30c], 1
mov dword [esp + 0x38], ebx
call dword [ecx + 0x48]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4742e2
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push 0x55ddb0
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jge 0x474297
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x474293
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4742b1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x38], edx
je 0x4742ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
cmp edi, ebx
mov dword [esp + 0x10], eax
jge 0x4742cb
cmp edi, 0x80004002
je 0x4742cb
push edi
call fcn.0051e127
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4742e2
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push ecx
push 1
push eax
call dword [sym.imp.ole32.dll_OleDraw]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
sub edx, eax
mov eax, dword [esp + 0x80]
push 2
mov ecx, dword [esp + 0x310]
push edx
mov edx, dword [esp + 0x80]
sub eax, edx
push eax
push ebx
push ebx
push ebx
push ecx
call esi
mov esi, dword [esp + 0x34]
lea edx, [esp + 0xd8]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4743b1
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.00494a90
add esp, 8
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4743b1
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x47436b
mov ecx, dword [esp + 0x28]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x527864
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x47436d
xor esi, esi
push 0x234
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x304], 2
je 0x474393
mov ecx, eax
call fcn.004933f0
jmp 0x474395
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x304], 1
mov dword [esp + 0x18], eax
je 0x4743b1
cmp esi, ebx
je 0x4743b1
push esi
mov ecx, eax
call fcn.00493aa0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x304], bl
cmp eax, ebx
je 0x4743d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x304], 0xffffffff
cmp eax, ebx
je 0x4743ef
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x474409
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x474418
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, ebx
je 0x474436
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x47464f
mov eax, dword [esp + 0x30c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
cmp esi, ebx
je 0x474647
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x8c]
mov edx, dword [esp + 0x31c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x318]
push ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x90], ecx
push ebx
push eax
lea ecx, [esp + 0x94]
push ebx
push ecx
push ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0xa0], 0x28
mov dword [esp + 0xa8], edx
mov word [esp + 0xac], 1
mov word [esp + 0xae], 0x20
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x318]
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x31c]
push ebx
push ecx
push esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00494650
mov ecx, dword [eax]
push 1
add ecx, 0xffffffd8
push ebx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x320]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x324]
mov dword [esp + 0x78], eax
mov eax, ecx
imul eax, edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x70], ebx
cdq
idiv dword [esp + 0x320]
mov dword [esp + 0x74], ebx
push eax
push ecx
push 0xa
push 0xa
lea ecx, [esp + 0x80]
push 1
push ecx
push esi
mov ecx, edi
call fcn.00493ba0
mov ecx, edi
call fcn.004935d0
mov edx, dword [esp + 0x314]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xf2]
mov word [esp + 0xf0], bx
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0xf0]
push 0x564c98
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push esi
lea edx, [esp + 0xf4]
push ebp
push edx
call fcn.00494bc0
mov dword [esp + 0x2c], eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc4]
mov dword [esp + 0xc0], ebx
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb4]
lea ecx, [esp + 0xf0]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [esp + 0xd4], 0x3e8
jbe 0x474625
mov edx, dword [esp + 0x314]
push ebx
lea eax, [esp + 0xf4]
push edx
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebp, ebx
je 0x47463c
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x47465d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
add esp, 0x2f8
ret
mov ecx, dword [esp + 0x2f4]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f8
ret