Function at 0x403100
Capabilities:
Access peb ldr_data
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4117dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], ebx
call sub.MFC42.DLL_CString::CString_1
mov al, byte [esp + 0x13]
mov esi, dword [ebp + 0xa4]
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 1
mov byte [esp + 0x2c], 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 edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x30]
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_char_const___unsigned_int_]
lea esi, [ebp + 0x10c]
mov byte [esp + 0x60], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
lea edi, [esi + 8]
push eax
push ecx
mov ecx, edi
call fcn.00407360
mov ecx, edi
call fcn.00407340
lea ecx, [esi + 0x20]
mov dword [esi + 4], eax
mov byte [esi + 0x19], 1
mov dword [esi + 0x1c], ebx
call fcn.004074e0
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], ebx
call fcn.004075c0
mov eax, dword [esi + 0x10]
lea edi, [esi + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, edi
call fcn.00407b00
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push ebx
push eax
push ecx
call fcn.00408b30
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push ebx
push eax
call fcn.00408e30
add esp, 0x14
push ebx
push eax
push ebx
push eax
call fcn.00408e70
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407360
mov ecx, edi
call fcn.00407340
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x4c]
mov dword [esi + 4], eax
mov byte [esp + 0x4c], 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 edi, 0x4172c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4172c0
lea ecx, [esp + 0x50]
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_char_const___unsigned_int_]
mov al, byte [esp + 0x13]
mov bl, 3
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], bl
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 edi, 0x4172c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4172c0
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__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push ecx
push edx
push 1
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.0040b6c0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 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 + 0x4c]
mov byte [esp + 0x64], 2
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 [esi + 0x30]
xor edi, edi
xor ebx, ebx
cmp eax, edi
jle 0x4032c2
mov edx, dword [esi + 0x38]
xor ecx, ecx
add ebx, dword [ecx + edx + 0x10]
add ecx, 0x24
dec eax
jne 0x4032b8
cmp ebx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
jle 0x403391
jmp 0x4032d6
xor edi, edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.00403440
mov eax, dword [eax + 4]
mov byte [esp + 0x60], 5
cmp eax, edi
jne 0x4032f8
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 + 0x1c]
call fcn.00410ce8
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp + 0xa8]
mov ecx, dword [ebp + 0xac]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [ebp + 0xb4]
mov edi, eax
mov eax, dword [ebp + 0xb0]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
test edi, edi
jne 0x403359
test eax, eax
je 0x40337e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40337e
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x4032d4
xor edi, edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push str.Finished___d_files_are_processed__
push ecx
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x30]
add esp, 0xc
push edi
push edi
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call fcn.00410bb6
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4033f5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4033ec
cmp al, 0xff
je 0x4033ec
dec al
mov byte [ecx], al
jmp 0x4033f5
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x60], 0
call fcn.00410bb6
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00410bb6
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret