Function at 0x407550
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40abda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 0x100]
mov ebx, 1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::operator_1
push 0x410268
push 0x410264
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x410260
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x41025c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x410258
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x410254
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x410250
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x41024c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push str.____:__
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x410048
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x410268
push 0x4100c0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x30], esi
je 0x4076ef
push 0x1fc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, esi
mov byte [esp + 0x28], 2
je 0x40769c
mov ecx, dword [esp + 0xc]
push esi
push str.Bmp_File_.bmp_.bmp
push 2
push ecx
push 0x410210
push esi
mov ecx, eax
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov esi, eax
mov edx, dword [esi]
push edi
mov ecx, esi
mov byte [esp + 0x2c], bl
call dword [edx + 0xc0]
mov edi, eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.00409c3c
test esi, esi
je 0x4076e1
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
cmp edi, ebx
pop edi
je 0x4077c9
jmp 0x40781d
lea eax, [esp + 0x14]
push esi
push eax
mov ecx, 0x4103a0
call fcn.00402750
push str.SaveScrap
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x30]
call fcn.00409c3c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00409c3c
lea edx, [esp + 0x1c]
push esi
push edx
mov ecx, 0x4103a0
call fcn.00402750
push str.SaveScrap_
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x30], 5
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x34], 6
call sub.MFC42.DLL_operator
push str..bmp
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x30], 7
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 7
call fcn.00409c3c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call fcn.00409c3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call fcn.00409c3c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.00409c3c
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x1f8]
push ecx
push edx
mov ecx, 0x4103a0
call fcn.00402d30
test eax, eax
je 0x407852
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x30]
push 0x10
push 0x40d5e8
push edx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00409c3c
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409c3c
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00409c3c
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409c3c
mov ecx, dword [esp + 0x20]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4