Function at 0x401ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411618
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4187e4]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [esp + 0x18], edi
mov esi, edx
call fcn.0040ac70
add esp, 4
test eax, eax
jne 0x401d23
push edi
push str._s_is_not_exist
push 0x111
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 2
push 0x418bd8
call fcn.00407780
add esp, 0x1c
mov eax, 2
jmp 0x4025b6
push esi
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edx, edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x320], 0
call fcn.004025e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x320], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0x320], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x320], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x320], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x320], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov byte [esp + 0x320], 6
mov ecx, 0x82
lea edi, [esp + 0x104]
push 0
rep stosd dword es:[edi], eax
push 0x413030
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, 8
cmp eax, dword [ecx]
je 0x401f79
cmp eax, 5
jae 0x401f79
cmp eax, 0xffffffff
je 0x401f79
lea esi, [esp + 0x5c]
call fcn.00402a40
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], ebx
jae 0x401e19
lea eax, [esp + 0x60]
push eax
push str.strDesExePath___s
push 0x12b
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 5
push 0x418bd8
call fcn.00407780
mov eax, dword [esp + 0x7c]
add esp, 0x1c
cmp dword [esp + 0x74], ebx
jae 0x401e4b
lea eax, [esp + 0x60]
push eax
call fcn.00402ab0
add esp, 4
cmp eax, 0x1777
jne 0x401f45
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x412cec
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x78]
lea edi, [esp + 0x40]
call fcn.00401930
add esp, 0x1c
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x324], 7
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x412cec
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x33c], bl
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebx
jae 0x401ed8
lea eax, [esp + 0x98]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x358], 9
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], ebx
jae 0x401f01
lea eax, [esp + 0x7c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edx, dword [esp + 0x68]
sub esp, 0x1c
mov byte [esp + 0x390], 0xa
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x390], 6
call fcn.00402ba0
add esp, 0x70
jmp 0x40251c
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x60]
call fcn.00401b70
add esp, 4
push eax
mov ecx, esi
mov byte [esp + 0x324], 0xb
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x24]
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], ebx
jae 0x401f87
lea eax, [esp + 0x60]
push eax
call fcn.0040ac70
add esp, 4
cmp eax, 1
jne 0x40207b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x412cec
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x78]
lea edi, [esp + 0x40]
call fcn.00401930
add esp, 0x1c
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x324], 0xc
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x412cec
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x33c], 0xd
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebx
jae 0x402013
lea eax, [esp + 0x98]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x358], 0xe
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], ebx
jae 0x40203c
lea eax, [esp + 0x7c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edx, dword [esp + 0x68]
sub esp, 0x1c
mov byte [esp + 0x390], 0xf
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x390], 6
call fcn.00402ba0
add esp, 0x70
call fcn.004032a0
mov edi, eax
cmp edi, 2
je 0x40251c
push edi
lea esi, [esp + 0x28]
call fcn.00403380
add esp, 4
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x324], 0x10
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0xa8], 0
jne 0x4020f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Get_SD_dll_Path_sd_d__err_u
push 0x14c
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 2
push 0x418bd8
call fcn.00407780
add esp, 0x20
jmp 0x40251c
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebx
jae 0x40210f
lea eax, [esp + 0x98]
push eax
push str.strSDModulePath___s
push 0x151
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 5
push 0x418bd8
call fcn.00407780
mov eax, dword [esp + 0xb4]
add esp, 0x1c
cmp dword [esp + 0xac], ebx
jae 0x40214a
lea eax, [esp + 0x98]
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x402170
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.LoadLibraryW_Error_sd_d__err_u
push 0x15b
jmp 0x4020da
push str.GetSDName
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4021a8
push str.failed_to_GetProcAddress_of_GetSDName
push 0x16c
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 5
push 0x418bd8
call fcn.00407780
add esp, 0x18
jmp 0x40251c
lea ecx, [esp + 0x104]
push 0x104
push ecx
call eax
add esp, 8
test eax, eax
jne 0x4021ca
push str.failed_to_GetSDName
push 0x171
jmp 0x40218a
lea edx, [esp + 0x104]
push edx
push str.strSDName___s
push 0x176
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 5
push 0x418bd8
call fcn.00407780
lea eax, [esp + 0x120]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x78]
lea edi, [esp + 0x40]
call fcn.00401930
add esp, 0x1c
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x324], 0x11
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x412cec
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x33c], 0x12
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebx
jae 0x40226c
lea eax, [esp + 0x98]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x358], 0x13
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], ebx
jae 0x402295
lea eax, [esp + 0x7c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edx, dword [esp + 0x68]
sub esp, 0x1c
mov byte [esp + 0x390], 0x14
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x390], 6
call fcn.00402ba0
add esp, 0x70
test eax, eax
je 0x4022f1
cmp eax, 3
je 0x40251c
push eax
push str.SDCopyFile_Error___u
push 0x181
jmp 0x402503
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0xd0]
call dword [0x412168]
push 0x413280
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str._REDIR_
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
sub esp, 0x1c
lea edx, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x78]
lea edi, [esp + 0x40]
call fcn.00401930
add esp, 0x1c
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x324], 0x15
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.___
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xc8], ebx
jae 0x4023a0
lea eax, [esp + 0xb4]
push 0
push 0x80
push 2
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4023c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push str..dll
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [edx]
je 0x40251c
mov ecx, str..dll
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4023f2
sub ecx, esi
sar ecx, 1
sub eax, ecx
inc eax
push eax
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x324], 0x16
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x24]
mov byte [esp + 0x320], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str._SDAC
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str..dll
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x412cec
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x33c], 0x17
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebx
jae 0x40248c
lea eax, [esp + 0x98]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x358], 0x18
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], ebx
jae 0x4024b5
lea eax, [esp + 0x7c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edx, dword [esp + 0x68]
sub esp, 0x1c
mov byte [esp + 0x390], 0x19
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x390], 6
call fcn.00402ba0
add esp, 0x70
test eax, eax
je 0x40251c
push eax
push str.SDCopyFile2_Error___u
push 0x1a8
push str.CpFromDefaultToSD
push str..CP2IM.cpp
push 2
push 0x418bd8
call fcn.00407780
add esp, 0x1c
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x320], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x320], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x320], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0x320], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x320], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0x320], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x320], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0040f466
mov esp, ebp
pop ebp
ret