Function at 0x4395d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f218
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x68d9ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 8
shr eax, 0x10
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x5c], eax
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x439b4c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push str.__d_theme.png
push eax
call fcn.00407230
add esp, 0xc
mov ecx, esi
call fcn.0048acf0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004085f0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
test eax, eax
je 0x439b56
mov esi, dword [ebp - 0x50]
mov edx, eax
mov ecx, esi
nop word [eax + eax]
mov di, word [ecx]
cmp di, word [edx]
jne 0x4396a6
test di, di
je 0x4396a2
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x4396a6
add ecx, 4
add edx, 4
test di, di
jne 0x439680
xor ecx, ecx
jmp 0x4396ab
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x439709
add eax, 0xfffffff0
push eax
call fcn.00407060
mov ecx, dword [ebp - 0x3c]
add eax, 0x10
mov edx, dword [ebp - 0x4c]
or edi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov dword [ecx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4396e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x439b18
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x439b18
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
call eax
mov ecx, eax
call fcn.0043ec80
push eax
lea ecx, [ebp - 0x38]
call fcn.004085f0
mov byte [ebp - 4], 2
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x439b60
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 3
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x439b6a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x48]
call fcn.0041aa00
push esi
push str..png
lea ecx, [ebp - 0x48]
call fcn.0040a600
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041aa00
push str._temp.png
push str..png
lea ecx, [ebp - 0x44]
call fcn.0040a600
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push dword [ebp - 0x38]
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0
call sub.gdiplus.dll_GdipGetImageWidth
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push esi
call sub.gdiplus.dll_GdipGetImageHeight
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x58]
mov esi, dword [ebp - 0x28]
push eax
push 0
push 0x26200a
push 0
push edi
push esi
mov dword [ebp - 0x58], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x78]
push eax
push 0x26200a
push 1
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], edi
call sub.gdiplus.dll_GdipBitmapLockBits
lea eax, [ebp - 0xa4]
push eax
push 0x26200a
push 2
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x34]
call sub.gdiplus.dll_GdipBitmapLockBits
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x94]
test edi, edi
jle 0x43989e
nop dword [eax]
test esi, esi
jle 0x439899
mov ecx, dword [ebp - 0x5c]
mov byte [eax], cl
mov ecx, dword [ebp - 0x30]
mov byte [eax + 1], cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + 2], cl
mov cl, byte [edx + 3]
add edx, 4
mov byte [eax + 3], cl
add eax, 4
sub esi, 1
jne 0x439874
mov esi, dword [ebp - 0x28]
sub edi, 1
jne 0x439870
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x34]
call sub.gdiplus.dll_GdipBitmapUnlockBits
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdipBitmapUnlockBits
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push eax
call sub.gdiplus.dll_GdipGetImageEncodersSize
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x439958
push eax
call fcn.005e9c30
mov edi, eax
add esp, 4
mov dword [ebp - 0x40], edi
test edi, edi
je 0x439958
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.gdiplus.dll_GdipGetImageEncoders
xor esi, esi
cmp dword [ebp - 0x28], esi
jbe 0x43994f
add edi, 0x30
mov eax, dword [edi]
mov ecx, str.image_png
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x439936
test dx, dx
je 0x439932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x439936
add eax, 4
add ecx, 4
test dx, dx
jne 0x439910
xor eax, eax
jmp 0x43993b
sbb eax, eax
or eax, 1
test eax, eax
je 0x439b38
inc esi
add edi, 0x4c
cmp esi, dword [ebp - 0x28]
jb 0x439903
mov edi, dword [ebp - 0x40]
push edi
call fcn.005e9c13
add esp, 4
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
push 0
push eax
push edi
push dword [ebp - 0x34]
call sub.gdiplus.dll_GdipSaveImageToFile
push dword [ebp - 0x34]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [edi - 0xc]
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x439a73
cmp dword [esi - 0xc], 0
je 0x439a73
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f9e3f
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x439a73
mov ecx, dword [ebp - 0x30]
add ecx, ecx
push ecx
push 0
push eax
call fcn.005e3240
mov eax, dword [edi - 0xc]
add eax, eax
push eax
push edi
push dword [ebp - 0x2c]
call fcn.005e2740
mov eax, dword [esi - 0xc]
xor ecx, ecx
add eax, 2
mov edx, 2
mov dword [ebp - 0x30], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f9e3f
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x439a73
mov ecx, dword [ebp - 0x30]
add ecx, ecx
push ecx
push 0
push eax
call fcn.005e3240
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebp - 0x24]
call fcn.005e2740
xor eax, eax
mov dword [ebp - 0x64], 0
mov word [ebp - 0x60], ax
xorps xmm0, xmm0
mov dword [ebp - 0x7c], eax
add esp, 0x18
mov eax, 0x614
movlpd qword [ebp - 0x6c], xmm0
or word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push dword [ebp - 0x2c]
call fcn.004f9e48
push dword [ebp - 0x24]
call fcn.004f9e48
add esp, 8
add esi, 0xfffffff0
push esi
call fcn.00407060
mov ecx, dword [ebp - 0x3c]
lea edx, [edi - 0x10]
add eax, 0x10
mov byte [ebp - 4], 3
or edi, 0xffffffff
add esp, 4
mov dword [ecx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x439aa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439abd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x439adb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x439af9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x439b18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f9a43
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x40]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [ebp - 0x20], xmm0
jmp 0x439950
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
int3