Function at 0x424a50
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48921c
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x4c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
push 8
lea ecx, [ebp - 0x23c]
call fcn.00401320
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x28c]
add ecx, 0x48c
call fcn.00401910
mov ecx, eax
call fcn.0040b4e0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0040dff0
add esp, 8
movzx edx, al
test edx, edx
je 0x424ae4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040c400
jmp 0x425574
push 4
lea ecx, [ebp - 0x21c]
call fcn.00401320
lea ecx, [ebp - 0x21c]
call fcn.00401d20
mov byte [ebp - 4], 1
push 4
lea ecx, [ebp - 0x228]
call fcn.00401320
lea ecx, [ebp - 0x228]
call fcn.00401d20
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x220]
call fcn.00401320
lea ecx, [ebp - 0x23c]
call fcn.00401910
mov ecx, eax
call fcn.00411170
push eax
lea ecx, [ebp - 0x220]
call fcn.00401c80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424ba5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040c400
jmp 0x425574
push 8
lea ecx, [ebp - 0x264]
call fcn.00401320
mov dword [ebp - 0x2d4], 2
lea eax, [ebp - 0x2d4]
push eax
push 0x4a0014
lea ecx, [ebp - 0x318]
call fcn.004041c0
mov byte [ebp - 4], 4
mov dword [ebp - 0x2d0], 0xd
lea ecx, [ebp - 0x2d0]
push ecx
push 0x4a001c
lea ecx, [ebp - 0x310]
call fcn.004041c0
mov byte [ebp - 4], 5
mov dword [ebp - 0x2cc], 0
lea edx, [ebp - 0x2cc]
push edx
push 0x4a0024
lea ecx, [ebp - 0x308]
call fcn.004041c0
mov byte [ebp - 4], 6
mov dword [ebp - 0x2d8], 0x19
lea eax, [ebp - 0x2d8]
push eax
push 0x4a002c
lea ecx, [ebp - 0x300]
call fcn.004041c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2f8]
push ecx
lea edx, [ebp - 0x318]
push edx
lea ecx, [ebp - 0x320]
call fcn.00401630
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x264]
call fcn.00401840
mov byte [ebp - 4], 9
push fcn.004012e0
push 4
push 8
lea eax, [ebp - 0x318]
push eax
call fcn.00458ffd
push 0xc
lea ecx, [ebp - 0x258]
call fcn.00401320
lea ecx, [ebp - 0x258]
call fcn.00401bb0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x290], ecx
push 4
lea ecx, [ebp - 0x240]
call fcn.00401320
lea edx, [ebp - 0x240]
push edx
mov ecx, dword [ebp - 0x290]
call fcn.00427f80
push 4
lea ecx, [ebp - 0x268]
call fcn.00401320
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x290]
call fcn.00427f20
jmp 0x424cfd
lea ecx, [ebp - 0x240]
call fcn.00403850
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00401660
movzx edx, al
test edx, edx
je 0x424d54
lea ecx, [ebp - 0x240]
call fcn.00402bf0
push eax
lea ecx, [ebp - 0x27c]
call fcn.00406500
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x258]
call fcn.004286a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x27c]
call fcn.004012e0
jmp 0x424cf2
lea ecx, [ebp - 0x220]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401c40
push eax
lea ecx, [ebp - 0x228]
call fcn.00429160
lea ecx, [ebp - 0x21c]
call fcn.004022c0
test eax, eax
jle 0x424fbe
push 1
push 0
lea ecx, [ebp - 0x21c]
call fcn.00429010
lea ecx, [ebp - 0x21c]
call fcn.00428de0
lea ecx, [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x258]
call fcn.00401930
push eax
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x258]
call fcn.00401930
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x2e4]
push edx
lea ecx, [ebp - 0x258]
call fcn.00401990
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
call fcn.0042d130
add esp, 0x10
mov ecx, eax
call fcn.00401fc0
movzx edx, al
test edx, edx
je 0x424fbe
push 4
lea ecx, [ebp - 0x25c]
call fcn.00401320
lea eax, [ebp - 0x228]
push eax
push 0x2a
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00428a10
add esp, 0xc
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x298], 0
lea edx, [ebp - 0x258]
mov dword [ebp - 0x294], edx
push 4
lea ecx, [ebp - 0x244]
call fcn.00401320
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x294]
call fcn.00401990
push 4
lea ecx, [ebp - 0x274]
call fcn.00401320
lea ecx, [ebp - 0x274]
push ecx
mov ecx, dword [ebp - 0x294]
call fcn.00401930
jmp 0x424e9a
lea ecx, [ebp - 0x244]
call fcn.004018f0
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x244]
call fcn.004018b0
movzx eax, al
test eax, eax
je 0x424f94
push 4
lea ecx, [ebp - 0x248]
call fcn.00401320
lea ecx, [ebp - 0x244]
call fcn.00401910
push eax
lea ecx, [ebp - 0x248]
call fcn.00401d00
mov byte [ebp - 4], 0xd
push 8
lea ecx, [ebp - 0x270]
call fcn.00401320
lea ecx, [ebp - 0x248]
push ecx
mov ecx, 0x4c6d38
call fcn.00428840
push eax
lea ecx, [ebp - 0x270]
call fcn.00428870
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2e8]
push edx
lea ecx, [ebp - 0x270]
call fcn.00427f20
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
lea ecx, [ebp - 0x270]
call fcn.00427e60
mov ecx, eax
call fcn.00401660
movzx edx, al
test edx, edx
je 0x424f71
mov dword [ebp - 0x298], 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x270]
call fcn.00424970
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x248]
call fcn.00401c60
jmp 0x424f94
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x270]
call fcn.00424970
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x248]
call fcn.00401c60
jmp 0x424e8f
cmp dword [ebp - 0x298], 0
jne 0x424faf
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x258]
call fcn.004286a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x25c]
call fcn.00401c60
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004720a0
add esp, 0xc
mov dword [ebp - 0x288], 0xffffffff
push 4
lea ecx, [ebp - 0x234]
call fcn.00401320
push 0x4a0034
lea ecx, [ebp - 0x2a4]
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], 0xf
push str.SaveAs
lea ecx, [ebp - 0x2a0]
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], 0x10
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 - 0x29c], eax
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2bc]
push edx
mov eax, dword [ebp - 0x29c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x29c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], ecx
mov byte [ebp - 4], 0x11
push 0
mov edx, dword [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x2b8]
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 - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], ecx
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x2b4]
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
lea ecx, [ebp - 0x234]
call fcn.00401c80
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2a0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2a4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 4
lea ecx, [ebp - 0x22c]
call fcn.00401320
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.00423e10
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x22c]
call fcn.004022c0
cmp eax, 1
jge 0x4251b5
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x22c]
call fcn.00401c60
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x234]
call fcn.00401c60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x258]
call fcn.004019f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.00401300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040c400
jmp 0x425574
lea ecx, [ebp - 0x220]
call fcn.00429180
push eax
push 0x4a0048
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00436f30
add esp, 0x10
push 0x104
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401d70
push eax
lea ecx, [ebp - 0x234]
call fcn.00401d70
mov edx, eax
mov ecx, dword [ebp - 0x28c]
mov ecx, dword [ecx + 0x25c]
call fcn.00455980
add esp, 0x10
test eax, eax
je 0x4254f9
cmp dword [ebp - 0x288], 1
jb 0x425242
lea ecx, [ebp - 0x258]
call fcn.00402900
cmp dword [ebp - 0x288], eax
jbe 0x4252c2
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x22c]
call fcn.00401c60
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x234]
call fcn.00401c60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x258]
call fcn.004019f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.00401300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040c400
jmp 0x425574
push 4
lea ecx, [ebp - 0x224]
call fcn.00401320
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401c80
mov byte [ebp - 4], 0x19
push 4
lea ecx, [ebp - 0x230]
call fcn.00401320
mov eax, dword [ebp - 0x288]
sub eax, 1
push eax
lea ecx, [ebp - 0x258]
call fcn.0040c4d0
push eax
lea ecx, [ebp - 0x230]
call fcn.00401d00
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x224]
call fcn.004022c0
cmp eax, 1
jge 0x4253c1
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00429160
lea ecx, [ebp - 0x224]
call fcn.00401bf0
lea edx, [ebp - 0x224]
push edx
push 0x4a0050
lea eax, [ebp - 0x2c8]
push eax
call fcn.00428ad0
add esp, 0xc
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x224]
call fcn.00429160
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2c8]
call fcn.00401c60
lea ecx, [ebp - 0x224]
call fcn.00401d70
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0047632c
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.004289e0
add esp, 8
movzx eax, al
test eax, eax
je 0x4253fe
push 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4254db
push 4
lea ecx, [ebp - 0x24c]
call fcn.00401320
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00427e60
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00427f20
push eax
lea ecx, [ebp - 0x24c]
call fcn.00401dc0
movzx edx, al
test edx, edx
je 0x425466
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4254db
lea ecx, [ebp - 0x24c]
call fcn.00427e40
mov esi, eax
lea ecx, [ebp - 0x23c]
call fcn.00401910
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0x3c]
jne 0x4254a3
push 0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x220]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4254db
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00427e40
add eax, 4
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0x4261d0
lea ecx, [ebp - 0x284]
call fcn.0042d180
lea ecx, [ebp - 0x284]
call fcn.0040a510
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x230]
call fcn.00401c60
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x224]
call fcn.00401c60
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x22c]
call fcn.00401c60
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x234]
call fcn.00401c60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x258]
call fcn.004019f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.00401300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040c400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fdd
mov esp, ebp
pop ebp
ret