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

Disassembly:
push 0x29c
mov eax, 0x43379d
call fcn.00428f19
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 0x40ad6b
xor al, al
jmp 0x40aff7
push edi
push eax
push ebx
call fcn.0040b2a1
test al, al
je 0x40ada7
cmp dword [edi + 0x18], 8
jb 0x40ad82
mov eax, dword [edi + 4]
jmp 0x40ad85
lea eax, [edi + 4]
test esi, esi
je 0x40ad9a
mov ebx, esi
mov esi, eax
call fcn.0040b5bd
mov ebx, dword [ebp - 0x278]
jmp 0x40ad9c
xor al, al
test al, al
je 0x40ada7
mov al, 1
jmp 0x40aff7
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x274], eax
jb 0x40adb8
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0041715a
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x254], 8
mov esi, dword [ebp - 0x268]
jae 0x40ade0
lea esi, [ebp - 0x268]
call fcn.004153ea
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 0x40ae46
mov eax, dword [esi]
jmp 0x40ae4c
mov eax, dword [ebp - 0x274]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00417009
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x40ae6a
mov eax, dword [eax + 4]
jmp 0x40ae6d
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 0x40ae9f
lea eax, [ebp - 0x230]
push eax
call fcn.00418abd
cmp byte [ebp + 0x1c], 0
pop ecx
jne 0x40af00
push dword [ebp - 0x288]
mov ecx, dword [ebp - 0x278]
push dword [ebp - 0x284]
lea edi, [ebp - 0x234]
mov byte [ebx + 0x78], 0
call fcn.0040b1d4
mov byte [ebp - 0x26d], al
test al, al
je 0x40aef4
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 0x40af34
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.0040afff
and dword [esi], 0
add esp, 0xc
mov byte [ebp - 0x26d], al
test al, al
je 0x40afc1
mov esi, dword [ebp - 0x274]
cmp dword [edi + 0x18], 8
jb 0x40af3e
mov ecx, dword [esi]
jmp 0x40af40
mov ecx, esi
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x40af55
lea eax, [ebp - 0x24c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40af69
mov byte [ebp - 0x26d], al
cmp dword [edi + 0x18], 8
jb 0x40af73
mov eax, dword [esi]
jmp 0x40af75
mov eax, esi
cmp dword [ebp - 0x27c], 0
je 0x40af99
mov ebx, dword [ebp - 0x27c]
mov esi, eax
call fcn.0040b5bd
mov ebx, dword [ebp - 0x278]
mov esi, dword [ebp - 0x274]
jmp 0x40af9b
xor al, al
and byte [ebp - 0x26d], al
je 0x40afc1
cmp byte [ebp + 0x18], 0
je 0x40afc1
cmp dword [edi + 0x18], 8
jb 0x40afb3
mov ecx, dword [esi]
jmp 0x40afb5
mov ecx, esi
push dword [ebp - 0x284]
push ebx
call fcn.0040b3b9
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.00428f9c
ret 0x18