Function at 0x1000e0f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100829d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov al, byte [0x1009fec0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x38]
push edx
push ebx
push 0x1009fec0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, str.loginInfo_
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x7c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.loginInfo_
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x1000e16c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.IMAGEHLP.dll_MakeSureDirectoryPathExists]
mov eax, dword [esi + 0x80]
push ebx
push ebx
push 0x1887
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
mov byte [esp + 0x2c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x7c], 2
mov ecx, dword [eax]
push ecx
push ebx
push 0x1009fec0
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, str.loginInfohead_new.jpg
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.loginInfohead_new.jpg
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x1000e1fe
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push str.head.jpg
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x58]
call fcn.1002c250
mov edx, dword [esp + 0x10]
push ebx
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x84], 4
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000e278
cmp edi, ebx
je 0x1000e278
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x1000e260
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x14]
call fcn.1002c27a
push str.head.jpg
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx - 8]
cmp edi, ebx
je 0x1000e542
cmp dword [esi + 0x368], ebx
je 0x1000e542
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
sub edi, eax
lea edx, [esp + 0x14]
dec edi
lea ecx, [esp + 0x10]
push edi
push edx
call sub.MFC42.DLL_CString::Right
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push 0x1009967c
push eax
mov byte [esp + 0x84], 5
call edi
add esp, 8
test eax, eax
jne 0x1000e2dd
lea ecx, [esp + 0x48]
push ecx
push str.image_jpeg
jmp 0x1000e35b
mov edx, dword [esp + 0x14]
push str.jpeg
push edx
call edi
add esp, 8
test eax, eax
jne 0x1000e2fc
lea eax, [esp + 0x48]
push eax
push str.image_jpeg
jmp 0x1000e35b
mov ecx, dword [esp + 0x14]
push 0x10099678
push ecx
call edi
add esp, 8
test eax, eax
jne 0x1000e31b
lea edx, [esp + 0x48]
push edx
push str.image_jpeg
jmp 0x1000e35b
mov eax, dword [esp + 0x14]
push 0x10099680
push eax
call edi
add esp, 8
test eax, eax
jne 0x1000e33a
lea ecx, [esp + 0x48]
push ecx
push str.image_png
jmp 0x1000e35b
mov edx, dword [esp + 0x14]
push 0x1009966c
push edx
call dword [sym.imp.MSVCRT.dll__mbsicoll]
add esp, 8
test eax, eax
jne 0x1000e36a
lea eax, [esp + 0x48]
push eax
push str.image_bmp
mov ecx, esi
call fcn.1000e5b0
cmp eax, ebx
jne 0x1000e442
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x1000e3b8
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000e3ae
cmp al, 0xff
je 0x1000e3ae
dec al
mov byte [ecx - 1], al
jmp 0x1000e3b8
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x1000e3e8
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000e3de
cmp al, 0xff
je 0x1000e3de
dec al
mov byte [ecx - 1], al
jmp 0x1000e3e8
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x1000e59c
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000e424
cmp al, 0xff
je 0x1000e424
dec al
pop edi
mov byte [ecx - 1], al
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::AllocSysString
mov esi, dword [esi + 0x368]
lea ecx, [esp + 0x48]
push ebx
push ecx
mov edx, dword [esi + 4]
push eax
push edx
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x1000e468
mov dword [esi + 8], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x1000e4b6
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000e4ac
cmp al, 0xff
je 0x1000e4ac
dec al
mov byte [ecx - 1], al
jmp 0x1000e4b6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x1000e4e6
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000e4dc
cmp al, 0xff
je 0x1000e4dc
dec al
mov byte [ecx - 1], al
jmp 0x1000e4e6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x1000e52b
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000e521
cmp al, 0xff
je 0x1000e521
dec al
pop edi
mov byte [ecx - 1], al
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret