Function at 0x65a3a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x7c6aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, dword [esp + 0x74]
xor edi, edi
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x20], 0x2e
call fcn.00609ca0
push 0xffffffffffffffff
inc eax
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004b66d0
mov eax, dword [esp + 0x1c]
mov ebp, 8
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x30], ebp
jae 0x65a431
lea eax, [esp + 0x1c]
push str.jpeg
push eax
call fcn.00723690
add esp, 8
test eax, eax
je 0x65a4d9
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x65a455
lea eax, [esp + 0x1c]
push 0x80fe68
push eax
call fcn.00723690
add esp, 8
test eax, eax
je 0x65a4d9
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x65a475
lea eax, [esp + 0x1c]
push 0x80fe60
push eax
call fcn.00723690
add esp, 8
test eax, eax
jne 0x65a490
push 9
push str.image_png
jmp 0x65a4e0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x65a49e
lea eax, [esp + 0x1c]
push 0x80fe58
push eax
call fcn.00723690
add esp, 8
test eax, eax
jne 0x65a4c0
push str.image_bmp
lea ecx, [esp + 0x38]
call fcn.0041ca30
jmp 0x65a4e9
lea ecx, [esp + 0x18]
call fcn.00403c30
lea ecx, [esp + 0x34]
call fcn.00403c30
xor eax, eax
jmp 0x65a5bf
push 0xa
push str.image_jpeg
lea ecx, [esp + 0x3c]
call fcn.00404850
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x65a4f7
lea eax, [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
push eax
mov ecx, ebx
call fcn.00655df0
cmp eax, 0xffffffff
jne 0x65a546
cmp dword [esp + 0x30], ebp
jb 0x65a51c
mov edx, dword [esp + 0x1c]
push edx
call fcn.00704960
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
cmp dword [esp + 0x4c], ebp
jb 0x65a542
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00704960
add esp, 4
xor eax, eax
jmp 0x65a5bf
lea edi, [esi + 4]
cmp dword [esi + 0x18], ebp
jb 0x65a552
mov eax, dword [edi]
jmp 0x65a554
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x18], ebp
jb 0x65a562
mov edi, dword [edi]
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x54]
push edx
push edi
push eax
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x65a57d
mov dword [esi + 8], eax
cmp dword [esp + 0x30], ebp
jb 0x65a590
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00704960
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], dx
cmp dword [esp + 0x4c], ebp
jb 0x65a5ba
mov eax, dword [esp + 0x38]
push eax
call fcn.00704960
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x5c
ret 4
cmp dword [ecx + 0x10], 0
jne 0x65a5eb
xor eax, eax
ret 4
jmp 0x65a3a0