Function at 0x10018e20
Capabilities:
Delete file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x10083a74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 0x268]
cmp ecx, ebx
je 0x10018e74
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
push 0x7d1
call dword [eax]
test eax, eax
je 0x10018e74
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x10018e74
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov ecx, dword [ebp + 0x2b8]
mov dword [esp + 0xc], ebx
cmp ecx, ebx
je 0x10018ea2
mov edx, dword [ecx]
lea eax, [esp + 0xc]
push eax
push 0x7d1
call dword [edx]
test eax, eax
je 0x10018ea2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x10018ea2
mov edx, dword [ecx]
push ebx
call dword [edx + 8]
mov ecx, dword [ebp + 0x294]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x24]
push 0x1009fd90
lea ecx, [ebp + 0x2d0]
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x1009fd90
lea ecx, [ebp + 0x310]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x17
mov esi, 0x1009bd7c
lea edi, [esp + 0x48]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x29
lea edi, [esp + 0xa7]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
push ebx
push ecx
push 0x100006
push ebx
push ebx
push 1
lea ecx, [esp + 0x164]
mov dword [esp + 0x368], ebx
stosb byte es:[edi], al
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x14c]
mov byte [esp + 0x350], 1
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x1001928b
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14c]
push edx
call sub.MFC42.DLL_CFileDialog::GetPathName
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
add ebp, 0x2c0
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x354], 2
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10018f9a
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
mov ecx, dword [esp + 0x28]
push 0
mov dl, byte [ecx + 0xf0]
lea esi, [ecx + 0xf0]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 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 ecx, dword [eax]
push ecx
push 0
push esi
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.UploadTempleFile_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
mov byte [esp + 0x350], 3
cmp eax, esi
ja 0x10019000
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x10019047
mov ecx, dword [esp + 0x20]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10019047
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, str.UploadTempleFile_
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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__::_Eos_unsigned_int_]
mov ecx, 0xa9
mov eax, 0x15c
push ecx
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.10002c20
lea ecx, [esp + 0x24]
push str.TempImage.jpg
lea edx, [esp + 0x40]
push ecx
push edx
mov ebp, eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x18
lea eax, [esp + 0x40]
xor ebx, ebx
push eax
mov ecx, ebp
mov byte [esp + 0x354], 4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10003610
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x100190a1
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 edi, str.ThumbImage.jpg
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
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]
mov ecx, dword [esp + 0x20]
sub edx, ecx
cmp edx, esi
ja 0x100190d1
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
jbe 0x1001911b
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebx, [eax + esi]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10019119
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.ThumbImage.jpg
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov byte [ecx + ebx], 0
xor ebx, ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x10019128
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]
mov esi, dword [esp + 0x28]
push eax
mov ecx, dword [esi + 0x268]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x10019145
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.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x10019159
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
mov ecx, ebp
call fcn.10003460
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x1001916e
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
mov ecx, ebp
call fcn.10003460
cmp ebp, ebx
je 0x10019183
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x10019190
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]
mov ecx, dword [esi + 0x268]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
push ebx
push 5
mov ecx, esi
call fcn.1000ca60
mov ecx, dword [esi + 0x298]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
je 0x100191d4
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x7d1
call dword [eax]
test eax, eax
je 0x100191d4
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x100191d4
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov ecx, dword [esi + 0x2bc]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
je 0x10019203
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push 0x7d1
call dword [edx]
test eax, eax
je 0x10019203
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x10019203
mov edx, dword [ecx]
push 1
call dword [edx + 8]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x2b4], 1
cmp eax, ebx
je 0x10019232
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10019229
cmp al, 0xff
je 0x10019229
dec al
mov byte [ecx], al
jmp 0x10019232
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x10019263
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1001925a
cmp al, 0xff
je 0x1001925a
dec al
mov byte [ecx], al
jmp 0x10019263
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x350], 1
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x28]
xor ebx, ebx
jmp 0x1001931c
mov ecx, dword [ebp + 0x298]
mov dword [ebp + 0x2b4], ebx
cmp ecx, ebx
mov dword [esp + 0x10], ebx
je 0x100192c0
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x7d1
call dword [eax]
test eax, eax
je 0x100192c0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x100192c0
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov ecx, dword [ebp + 0x2bc]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
je 0x100192ee
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push 0x7d1
call dword [edx]
test eax, eax
je 0x100192ee
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x100192ee
mov edx, dword [ecx]
push ebx
call dword [edx + 8]
mov ecx, dword [ebp + 0x268]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
je 0x1001931c
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x7d1
call dword [eax]
test eax, eax
je 0x1001931c
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1001931c
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov eax, dword [0x1009fec4]
pop edi
cmp eax, ebx
pop esi
jne 0x1001932c
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.KERNEL32.dll_SetCurrentDirectoryA]
mov ebp, dword [ebp + 0x280]
push 0x1009bd44
push ebx
push ebx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x348], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x144]
mov byte [esp + 0x348], 0
call fcn.1002c3a6
lea ecx, [esp + 0x24]
mov dword [esp + 0x348], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x340]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x344
ret