Function at 0x427840
Capabilities:
Check if file exists
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489a66
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push 8
lea ecx, [ebp - 0x34]
call fcn.00401320
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x48c
call fcn.00401910
mov ecx, eax
call fcn.0040b4e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x458]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsChecked_void_]
mov dword [ebp - 0x58], eax
push 4
lea ecx, [ebp - 0x14]
call fcn.00401320
lea ecx, [ebp - 0x34]
call fcn.00401910
mov ecx, eax
call fcn.00411170
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401bf0
cmp dword [ebp - 0x58], 0
je 0x427b89
mov dword [ebp - 0x3c], 0
mov ecx, 0x4c6d30
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42793a
push 0
mov ecx, 0x4c6d30
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x42793a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040c400
jmp 0x427d67
push 4
lea ecx, [ebp - 0x1c]
call fcn.00401320
lea ecx, [ebp - 0x1c]
call fcn.00401d20
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x28]
call fcn.00401320
lea ecx, [ebp - 0x28]
call fcn.00455ae0
mov byte [ebp - 4], 3
push 4
lea ecx, [ebp - 0x18]
call fcn.00401320
push 0x4c6d30
lea ecx, [ebp - 0x18]
call fcn.00401d00
mov byte [ebp - 4], 4
push 4
lea ecx, [ebp - 0x24]
call fcn.00401320
lea ecx, [ebp - 0x14]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401c80
mov byte [ebp - 4], 5
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00429160
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429140
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00429100
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00429140
lea ecx, [ebp - 0x14]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427a3c
mov ecx, dword [ebp - 0x38]
add ecx, 0x48c
call fcn.00401910
mov ecx, eax
call fcn.0040b4a0
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x48c
call fcn.00401910
mov ecx, eax
call fcn.0040b5e0
mov dword [ebp - 0x5c], eax
push 0
lea ecx, [ebp - 0x18]
call fcn.00401d70
push eax
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x34]
call fcn.00401910
mov eax, dword [eax + 0x3c]
push eax
call dword [sym.imp.FreeImage.dll__FreeImage_SaveU_16]
mov dword [ebp - 0x3c], eax
jmp 0x427a59
push 0
lea ecx, [ebp - 0x18]
call fcn.00401d70
push eax
lea ecx, [ebp - 0x14]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x427a82
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x4c6f74
call fcn.00428810
mov ecx, eax
call fcn.00429160
mov ecx, 0x4c6d28
call fcn.00439da0
push 0x4a06d8
lea ecx, [ebp - 0x48]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 6
push str.CancelCollect
lea ecx, [ebp - 0x44]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 7
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ITranslatorMgr____thiscall_SOUI::SApplication::GetTranslator_void_]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 8
push 0
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.utilities.dll_public:_static_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::SStrCpCvt::CvtW2W_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const___unsigned_int_]
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x6c]
call dword [sym.imp.utilities.dll_public:_wchar_t_const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__void_const]
push eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x458]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x458]
mov edx, dword [eax + 0x40]
call edx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x70]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00401c60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00401c60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401c60
jmp 0x427d4c
push 4
lea ecx, [ebp - 0x2c]
call fcn.00401320
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, 0x4c6f74
call fcn.004016a0
lea edx, [ebp - 0x90]
push edx
mov ecx, 0x4c6f74
call fcn.00401760
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401dc0
movzx eax, al
test eax, eax
je 0x427be6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040c400
jmp 0x427d67
push 4
lea ecx, [ebp - 0x20]
call fcn.00401320
push 0x4c6d30
lea ecx, [ebp - 0x20]
call fcn.00401d00
mov byte [ebp - 4], 0xa
push 0x4a06f8
lea ecx, [ebp - 0x20]
call fcn.00429120
lea ecx, [ebp - 0x2c]
call fcn.00401d80
add eax, 4
push eax
lea ecx, [ebp - 0x20]
call fcn.00429140
lea ecx, [ebp - 0x20]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427c44
lea ecx, [ebp - 0x20]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x4c6f74
call fcn.00428590
mov ecx, 0x4c6d28
call fcn.00439da0
push 0x4a06fc
lea ecx, [ebp - 0x54]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 0xb
push str.CollectImage
lea ecx, [ebp - 0x50]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 0xc
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ITranslatorMgr____thiscall_SOUI::SApplication::GetTranslator_void_]
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [eax + 0x20]
call edx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0xd
push 0
mov ecx, dword [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.utilities.dll_public:_static_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::SStrCpCvt::CvtW2W_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const___unsigned_int_]
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x84]
call dword [sym.imp.utilities.dll_public:_wchar_t_const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__void_const]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x458]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x458]
mov eax, dword [edx + 0x40]
call eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x88]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040c400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fdd
mov esp, ebp
pop ebp
ret