Function at 0x490570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], ecx
cmp dword [ebp + 0xc], 0
jne 0x490586
xor eax, eax
jmp 0x4907cc
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x14]
call fcn.00491b60
lea ecx, [ebp - 0x3c]
call fcn.00491ba0
push 0x104
lea ecx, [ebp - 0x44]
call fcn.00491da0
mov ecx, dword [ebp + 8]
call fcn.0044ea20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f510
lea ecx, [ebp - 0x18]
call fcn.0044ea20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040f510
lea ecx, [ebp - 0x2c]
call fcn.00418350
push str..jpg
lea ecx, [ebp - 0x30]
call fcn.0041d430
test eax, eax
jne 0x490604
push str.image_jpeg
lea ecx, [ebp - 0x2c]
call fcn.0040f550
jmp 0x49062e
push 1
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x30]
call fcn.00433660
mov eax, dword [eax]
push eax
push 0x516c28
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00418ae0
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004335b0
mov ecx, dword [ebp + 8]
call fcn.0044ea20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x20]
call fcn.0046e300
lea ecx, [ebp - 0x2c]
call fcn.0044ea20
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e300
push 0x516c24
push 0x104
lea ecx, [ebp - 0x44]
call fcn.0044ea20
push eax
call fcn.00491e80
mov ecx, dword [ebp + 8]
call fcn.0044ea20
push eax
lea ecx, [ebp - 0x3c]
call fcn.00491c00
test eax, eax
jne 0x4906cb
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x28]
call fcn.0046e330
lea ecx, [ebp - 0x20]
call fcn.0046e330
lea ecx, [ebp - 0x2c]
call fcn.004335b0
lea ecx, [ebp - 0x30]
call fcn.004335b0
lea ecx, [ebp - 0x18]
call fcn.004335b0
lea ecx, [ebp - 0x44]
call fcn.00491dc0
lea ecx, [ebp - 0x3c]
call fcn.00491bd0
mov eax, dword [ebp - 0x4c]
jmp 0x4907cc
lea ecx, [ebp - 0x44]
call fcn.0044ea20
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x3c]
call fcn.00491cd0
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x3c]
call fcn.00491cb0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
call fcn.0044ea20
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x20]
call fcn.0044ea20
mov dword [ebp - 0xc], eax
push 0x516bd8
lea ecx, [ebp - 0x54]
call fcn.0040f510
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0048f1d0
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x4d], al
lea ecx, [ebp - 0x54]
call fcn.004335b0
movzx ecx, byte [ebp - 0x4d]
test ecx, ecx
je 0x49077d
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x28]
call fcn.0046e330
lea ecx, [ebp - 0x20]
call fcn.0046e330
lea ecx, [ebp - 0x2c]
call fcn.004335b0
lea ecx, [ebp - 0x30]
call fcn.004335b0
lea ecx, [ebp - 0x18]
call fcn.004335b0
lea ecx, [ebp - 0x44]
call fcn.00491dc0
lea ecx, [ebp - 0x3c]
call fcn.00491bd0
mov eax, dword [ebp - 0x58]
jmp 0x4907cc
lea ecx, [ebp - 0x28]
call fcn.0046e330
lea ecx, [ebp - 0x20]
call fcn.0046e330
lea ecx, [ebp - 0x2c]
call fcn.004335b0
lea ecx, [ebp - 0x30]
call fcn.004335b0
lea ecx, [ebp - 0x18]
call fcn.004335b0
lea ecx, [ebp - 0x44]
call fcn.00491dc0
lea ecx, [ebp - 0x3c]
call fcn.00491bd0
mov ecx, dword [ebp + 8]
call fcn.0044ea20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x5c]
call fcn.0048f270
mov esp, ebp
pop ebp
ret 8