Function at 0x40a817
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x29c
mov eax, 0x43342c
call fcn.00428b99
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ebx, edx
cmp byte [ebx + 0x24], 0
mov dword [ebp - 0x28c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x280], edi
jne 0x40a865
xor al, al
jmp 0x40aaf1
push edi
push eax
push ebx
call fcn.0040ad9b
test al, al
je 0x40a8a1
cmp dword [edi + 0x18], 8
jb 0x40a87c
mov eax, dword [edi + 4]
jmp 0x40a87f
lea eax, [edi + 4]
test esi, esi
je 0x40a894
mov ebx, esi
mov esi, eax
call fcn.0040b0b7
mov ebx, dword [ebp - 0x278]
jmp 0x40a896
xor al, al
test al, al
je 0x40a8a1
mov al, 1
jmp 0x40aaf1
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x274], eax
jb 0x40a8b2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00416e72
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x254], 8
mov esi, dword [ebp - 0x268]
jae 0x40a8da
lea esi, [ebp - 0x268]
call fcn.00415103
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
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__]
push str.XLLiveUDDownload_
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
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__::append_wchar_t_const__]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
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__]
mov esi, dword [ebp - 0x274]
mov byte [ebp - 4], 2
cmp dword [edi + 0x18], 8
jb 0x40a940
mov eax, dword [esi]
jmp 0x40a946
mov eax, dword [ebp - 0x274]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00416d21
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x40a964
mov eax, dword [eax + 4]
jmp 0x40a967
add eax, 4
push eax
lea ecx, [ebp - 0x250]
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__::append_wchar_t_const__]
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 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_]
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x40a999
lea eax, [ebp - 0x230]
push eax
call fcn.00418813
cmp byte [ebp + 0x1c], 0
pop ecx
jne 0x40a9fa
push dword [ebp - 0x288]
mov ecx, dword [ebp - 0x278]
push dword [ebp - 0x284]
lea edi, [ebp - 0x234]
mov byte [ebx + 0x78], 0
call fcn.0040acce
mov byte [ebp - 0x26d], al
test al, al
je 0x40a9ee
mov eax, edi
push eax
lea ecx, [ebp - 0x250]
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 edi, dword [ebp - 0x280]
mov ebx, dword [ebp - 0x278]
jmp 0x40aa2e
mov edi, dword [ebp - 0x280]
mov ebx, dword [ebp - 0x278]
lea esi, [ebx + 0x64]
push esi
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x28c]
mov byte [ebx + 0x78], 1
call fcn.0040aaf9
and dword [esi], 0
add esp, 0xc
mov byte [ebp - 0x26d], al
test al, al
je 0x40aabb
mov esi, dword [ebp - 0x274]
cmp dword [edi + 0x18], 8
jb 0x40aa38
mov ecx, dword [esi]
jmp 0x40aa3a
mov ecx, esi
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x40aa4f
lea eax, [ebp - 0x24c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40aa63
mov byte [ebp - 0x26d], al
cmp dword [edi + 0x18], 8
jb 0x40aa6d
mov eax, dword [esi]
jmp 0x40aa6f
mov eax, esi
cmp dword [ebp - 0x27c], 0
je 0x40aa93
mov ebx, dword [ebp - 0x27c]
mov esi, eax
call fcn.0040b0b7
mov ebx, dword [ebp - 0x278]
mov esi, dword [ebp - 0x274]
jmp 0x40aa95
xor al, al
and byte [ebp - 0x26d], al
je 0x40aabb
cmp byte [ebp + 0x18], 0
je 0x40aabb
cmp dword [edi + 0x18], 8
jb 0x40aaad
mov ecx, dword [esi]
jmp 0x40aaaf
mov ecx, esi
push dword [ebp - 0x284]
push ebx
call fcn.0040aeb3
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 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, [ebp - 0x234]
mov byte [ebp - 4], 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_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
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 al, byte [ebp - 0x26d]
call fcn.00428c1c
ret 0x18