Function at 0x47959e
Capabilities:
Copy file
Delete file

Disassembly:
push 0x300
mov eax, 0x5bd54a
call fcn.00598f94
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], 1
mov edi, edx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x248], ebx
jl 0x479b20
cmp dword [ebp + 0x10], 1
jl 0x479b20
push ebx
push 1
push ebx
push edi
lea ecx, [ebp - 0x274]
call fcn.00479b28
add esp, 0x10
test eax, eax
je 0x479b18
mov esi, dword [ebp - 0x26c]
sub esi, dword [ebp - 0x274]
mov eax, 0x3e8
cmp esi, eax
jle 0x47961e
mov esi, eax
mov eax, esi
imul eax, dword [ebp + 0x10]
cdq
idiv dword [ebp + 0xc]
cmp esi, 0x64
mov dword [ebp - 0x224], eax
jle 0x479b18
cmp eax, 0x64
jle 0x479b18
push edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x22c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0xa
push 0xa
push dword [ebp - 0x22c]
mov dword [ebp - 0x23c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x25c], eax
call fcn.0047db0a
mov edi, eax
mov eax, dword [ebp - 0x224]
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, [ebp - 0x264]
push eax
push ebx
push edi
push dword [ebp - 0x22c]
mov dword [edi + 4], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x264], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x228], eax
cmp eax, ebx
je 0x47988e
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x224]
push 2
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x230]
mov dword [ebp - 0x26c], esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x268], eax
call esi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x244]
push edx
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
cmp dword [ebp - 0x244], ebx
je 0x479781
push dword [ebp - 0x244]
lea eax, [ebp - 0x240]
call fcn.004404fa
cmp dword [ebp - 0x240], ebx
je 0x479781
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x23c]
push 1
push dword [ebp - 0x240]
call dword [sym.imp.ole32.dll_OleDraw]
mov eax, dword [ebp - 0x288]
sub eax, dword [ebp - 0x290]
push 2
push eax
mov eax, dword [ebp - 0x28c]
sub eax, dword [ebp - 0x294]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x230]
call esi
lea eax, [ebp - 0x30c]
push eax
push 0x18
push dword [ebp - 0x228]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x479855
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
call fcn.0047de00
pop ecx
pop ecx
mov dword [ebp - 0x248], eax
cmp eax, ebx
je 0x479855
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x479802
push dword [ebp - 0x248]
mov esi, eax
call fcn.0047a8a0
mov dword [ebp - 0x224], eax
jmp 0x479808
mov dword [ebp - 0x224], ebx
push 0x34
call fcn.0058f82d
pop ecx
cmp eax, ebx
je 0x479825
mov edi, eax
call fcn.00518ff5
mov edi, dword [ebp - 0x258]
mov esi, eax
jmp 0x479827
xor esi, esi
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x479855
cmp dword [ebp - 0x224], ebx
je 0x479855
push esi
call fcn.00519094
mov eax, dword [ebp - 0x224]
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.005192f6
mov edi, dword [ebp - 0x258]
push dword [ebp - 0x24c]
push dword [ebp - 0x23c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x244]
cmp eax, ebx
je 0x47987a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
cmp eax, ebx
je 0x47988e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x23c]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x228], ebx
je 0x4798ae
push dword [ebp - 0x228]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x25c], ebx
je 0x4798c2
push dword [ebp - 0x25c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x238], ebx
je 0x479b08
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x234], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x224], eax
cmp eax, ebx
je 0x479afc
mov esi, dword [ebp + 0xc]
push 0xa
pop ecx
xor eax, eax
push 0x20
lea edi, [ebp - 0x2cc]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
inc eax
mov word [ebp - 0x2c4], ax
pop eax
push ebx
push ebx
mov word [ebp - 0x2c2], ax
lea eax, [ebp - 0x24c]
push eax
push ebx
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x2d0], 0x28
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2c8], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x228], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x234], eax
push ebx
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x298], edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp - 0x238]
call fcn.00519d52
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x25c], eax
add ecx, 0xffffffd8
mov eax, ecx
imul eax, edi
cdq
idiv esi
push ebx
mov dword [ebp - 0x27c], esi
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x278], edi
push eax
push ecx
push 0xa
push 0xa
push 1
lea eax, [ebp - 0x284]
push eax
push esi
call fcn.00519385
push ebx
call fcn.00519094
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
xor ebx, ebx
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.00596530
add esp, 0xc
push dword [ebp - 0x254]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..tmp.png
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push esi
push dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push eax
call fcn.0047def6
add esp, 0xc
push 8
mov dword [ebp - 0x250], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x2f4], ebx
lea edi, [ebp - 0x2f0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x2d4], 0x3e8
jbe 0x479ad2
push ebx
push dword [ebp - 0x254]
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x250], 1
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x234]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x228], ebx
je 0x479af3
push dword [ebp - 0x228]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
mov ecx, dword [ebp - 0x238]
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x248]
cmp eax, ebx
je 0x479b18
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x250]
jmp 0x479b22
xor eax, eax
call fcn.00599017
ret