Function at 0x47ffd6
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4d2456
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x50d4cc]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x220], eax
mov ecx, dword [eax + 0x424]
test ecx, ecx
je 0x47ff8b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x47ff8b
lea eax, [esi + 1]
jmp 0x4802d0
test edi, edi
jne 0x47ff99
mov eax, 0x80070057
jmp 0x4802d0
mov eax, dword [edi]
dec eax
cmp eax, 5
ja case.0x47ffa5.4
jmp dword [eax*4 + 0x4802f8]
push dword [edi + 4]
push str.WIA_TRANSFER_MSG_STATUS____ld___complete
call fcn.004265f0
add esp, 8
jmp 0x4802ce
push dword [edi + 4]
push str.WIA_TRANSFER_MSG_NEW_PAGE____ld___complete
call fcn.004265f0
add esp, 8
jmp 0x4802ce
push 0x34
lea eax, [esp + 0x250]
push 0
push eax
call fcn.0048f5e0
add esp, 0xc
lea ecx, [esp + 0x24c]
call fcn.0041b030
mov dword [esp + 0x290], 0
lea ecx, [esp + 0x21c]
mov edi, dword [esp + 0x220]
mov dword [esp + 0x21c], 0
lea esi, [edi + 0x18]
push esi
call fcn.00406580
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x21c]
cmp dword [eax - 4], 1
jle 0x48004e
push dword [eax - 0xc]
lea ecx, [esp + 0x220]
call fcn.004075f0
mov eax, dword [esp + 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push 0xffffffffffffffff
lea ecx, [esp + 0x220]
call fcn.00406e30
push str..jpg
lea ecx, [esp + 0x220]
call fcn.00406690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4801a7
push 3
xorps xmm0, xmm0
lea eax, [esp + 0x14]
push esi
lea ecx, [esp + 0x14]
movdqa xmmword [esp + 0x22c], xmm0
mov dword [esp + 0x14], eax
call fcn.0040f450
mov byte [esp + 0x290], 2
push ecx
push dword [esp + 0x10]
lea ecx, [esp + 0x22c]
call fcn.0040f130
mov byte [esp + 0x290], 4
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x4800d9
push eax
call fcn.0048b8d4
add esp, 4
lea edx, [esp + 0x23c]
call fcn.0047fe10
push 3
push dword [esp + 0x220]
lea eax, [esp + 0x120]
lea ecx, [esp + 0x11c]
mov dword [esp + 0x11c], eax
call fcn.0040f450
mov byte [esp + 0x290], 5
lea eax, [esp + 0x23c]
push 0
push eax
push dword [esp + 0x11c]
push dword [esp + 0x234]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
mov esi, dword [esp + 0x22c]
test eax, eax
cmovne esi, eax
mov dword [esp + 0x22c], esi
mov byte [esp + 0x290], 4
lea ecx, [esp + 0x118]
mov eax, dword [esp + 0x114]
cmp eax, ecx
je 0x480164
push eax
call fcn.0048b8d4
add esp, 4
mov dword [esp + 0x22c], 0
test esi, esi
je 0x480188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x480188
movzx esi, si
or esi, 0x80070000
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x224]
call fcn.0040d5e0
test esi, esi
js 0x480253
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0x224]
mov dword [esp + 0x224], 0
call fcn.00425d40
mov byte [esp + 0x290], 6
lea edx, [esp + 0x220]
mov ecx, dword [esp + 0x21c]
call fcn.0047f5d0
mov esi, eax
test esi, esi
js 0x48023f
mov ecx, dword [esp + 0x220]
call fcn.0047f570
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x48023a
mov ecx, dword [esp + 0x220]
test ecx, ecx
jne 0x480213
mov esi, 0x80004003
jmp 0x48021d
push ecx
mov ecx, eax
call fcn.0047f790
mov esi, eax
push dword [esp + 0x21c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
push str.DELETE_TMP_FILE__RET___d
call fcn.004265f0
add esp, 8
jmp 0x48023f
mov esi, 0x8007000e
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x220]
call fcn.0040e660
push str.WIA_TRANSFER_MSG_END_OF_STREAM
call fcn.004265f0
add esp, 4
mov byte [esp + 0x290], 0
lea ecx, [esp + 0x21c]
call fcn.00406630
mov dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x24c]
call fcn.0041af30
jmp 0x4802ce
push str.WIA_TRANSFER_MSG_END_OF_TRANSFER
call fcn.004265f0
mov eax, dword [esp + 0x224]
add esp, 4
add eax, 0x18
push eax
push str.Image_Transferred_to_file__s
call fcn.004265f0
mov ecx, dword [esp + 0x228]
add esp, 8
mov eax, dword [ecx]
push edi
call dword [eax + 0x18]
jmp 0x4802ce
push str.Other_msg
call fcn.004265f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc