Function at 0x10045e80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077f87
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100a800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push 0x130b
mov dword [ebp - 0x24], 0
push dword [edi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call sym.Z_SupportUi.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_Z_PartImageDlg::GetImageFilePathFromUser_void_
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x10046304
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call sym.Z_SupportUi.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_Z_PartImageDlg::GetImageCacheFilePath_void_
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x1c], edx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
add eax, esi
lea ecx, [ebp - 0x2c]
test ebx, ebx
mov dword [ebp - 0x14], eax
sete bl
mov byte [ebp - 0x35], bl
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x24], 0
push dword [ebp - 0x14]
jne 0x10045f51
push str.ImageThum_d.jpg
jmp 0x10045f56
push str.Image_d.jpg
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
add esp, 0xc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 1
push dword [ecx - 0xc]
push ecx
push dword [edx - 0xc]
push edx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x28]
push esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10045fd1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
cmp byte [edi + 0x3a0], 0
je 0x100460f3
mov eax, dword [edi + 0x3a4]
lea ecx, [edi + 0x3a8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10008d50
mov eax, dword [ebp - 0x24]
cmp eax, dword [edi + 0x3a8]
jne 0x100460a3
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
test bl, bl
je 0x10046040
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push 0x1007f32c
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
jmp 0x10046058
push 0x1007f32c
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x3a8]
call fcn.10047430
mov esi, eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ebx, [edi + 0x3b0]
jmp 0x10046201
cmp byte [ebp - 0x35], 0
lea ebx, [eax + 0x14]
je 0x100460b4
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
jmp 0x100460bb
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebx + 4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x3a8]
call fcn.10047430
mov esi, eax
push ebx
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebx + 4]
push eax
lea ecx, [esi + 4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ebx, [edi + 0x3b0]
jmp 0x10046201
mov eax, dword [edi + 0x39c]
lea ebx, [edi + 0x3b0]
mov dword [ebp - 0x14], eax
mov ecx, ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10008d50
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebx]
jne 0x100461ab
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
cmp byte [ebp - 0x35], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
je 0x10046155
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push 0x1007f32c
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
jmp 0x1004616d
push 0x1007f32c
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10047430
mov esi, eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x10046201
cmp byte [ebp - 0x35], 0
lea esi, [eax + 0x14]
mov dword [ebp - 0x1c], esi
je 0x100461cb
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
jmp 0x100461dd
lea eax, [esi + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], eax
push ecx
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10047430
push dword [ebp - 0x1c]
mov esi, eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push dword [ebp - 0x24]
lea ecx, [esi + 4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
cmp dword [edi + 0x398], 0
push dword [edi + 0x20]
je 0x10046241
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::FromHandle]
test eax, eax
jne 0x1004622f
push ebx
lea eax, [edi + 0x3a8]
xor ecx, ecx
push eax
push 0x469
jmp 0x10046266
mov ecx, dword [eax + 0x20]
lea eax, [edi + 0x3a8]
push ebx
push eax
push 0x469
jmp 0x10046266
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::FromHandle]
test eax, eax
jne 0x10046256
xor ecx, ecx
jmp 0x10046259
mov ecx, dword [eax + 0x20]
push ebx
lea eax, [edi + 0x3a8]
push eax
push 0x46b
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
call eax
push 1
push 0
mov dword [edi + 0x364], 0
mov dword [edi + 0x368], 0
mov dword [edi + 0x36c], 0
mov dword [edi + 0x370], 0
mov dword [edi + 0x378], 0
mov dword [edi + 0x374], 0
mov dword [edi + 0x380], 0xffffffff
mov dword [edi + 0x384], 0xffffffff
mov word [edi + 0x37c], 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp - 0x18]
lea ecx, [edi + 0x360]
call fcn.10044770
mov ecx, edi
call sym.Z_SupportUi.dll_public:_void___thiscall_Z_PartImageDlg::OnPaint_void_
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100702c8
mov esp, ebp
pop ebp
ret