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

Disassembly:
push 0x29c
mov eax, 0x433633
call fcn.00428df5
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 0x40a9ac
xor al, al
jmp 0x40ac38
push edi
push eax
push ebx
call fcn.0040aee2
test al, al
je 0x40a9e8
cmp dword [edi + 0x18], 8
jb 0x40a9c3
mov eax, dword [edi + 4]
jmp 0x40a9c6
lea eax, [edi + 4]
test esi, esi
je 0x40a9db
mov ebx, esi
mov esi, eax
call fcn.0040b201
mov ebx, dword [ebp - 0x278]
jmp 0x40a9dd
xor al, al
test al, al
je 0x40a9e8
mov al, 1
jmp 0x40ac38
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x274], eax
jb 0x40a9f9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00416fac
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x254], 8
mov esi, dword [ebp - 0x268]
jae 0x40aa21
lea esi, [ebp - 0x268]
call fcn.0041523c
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 0x40aa87
mov eax, dword [esi]
jmp 0x40aa8d
mov eax, dword [ebp - 0x274]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00416e5b
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x40aaab
mov eax, dword [eax + 4]
jmp 0x40aaae
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 0x40aae0
lea eax, [ebp - 0x230]
push eax
call fcn.004189e6
cmp byte [ebp + 0x1c], 0
pop ecx
jne 0x40ab41
push dword [ebp - 0x288]
mov ecx, dword [ebp - 0x278]
push dword [ebp - 0x284]
lea edi, [ebp - 0x234]
mov byte [ebx + 0x78], 0
call fcn.0040ae15
mov byte [ebp - 0x26d], al
test al, al
je 0x40ab35
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 0x40ab75
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.0040ac40
and dword [esi], 0
add esp, 0xc
mov byte [ebp - 0x26d], al
test al, al
je 0x40ac02
mov esi, dword [ebp - 0x274]
cmp dword [edi + 0x18], 8
jb 0x40ab7f
mov ecx, dword [esi]
jmp 0x40ab81
mov ecx, esi
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x40ab96
lea eax, [ebp - 0x24c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40abaa
mov byte [ebp - 0x26d], al
cmp dword [edi + 0x18], 8
jb 0x40abb4
mov eax, dword [esi]
jmp 0x40abb6
mov eax, esi
cmp dword [ebp - 0x27c], 0
je 0x40abda
mov ebx, dword [ebp - 0x27c]
mov esi, eax
call fcn.0040b201
mov ebx, dword [ebp - 0x278]
mov esi, dword [ebp - 0x274]
jmp 0x40abdc
xor al, al
and byte [ebp - 0x26d], al
je 0x40ac02
cmp byte [ebp + 0x18], 0
je 0x40ac02
cmp dword [edi + 0x18], 8
jb 0x40abf4
mov ecx, dword [esi]
jmp 0x40abf6
mov ecx, esi
push dword [ebp - 0x284]
push ebx
call fcn.0040affd
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.00428e78
ret 0x18