Function at 0x407530
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x740
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x73c], eax
push edi
push 0x44c214
push str.patch.log
mov dword [esp + 0x10], ecx
call fcn.0042f845
mov edi, eax
add esp, 8
test edi, edi
jne 0x407577
pop edi
mov ecx, dword [esp + 0x73c]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x740
ret
push ebx
push ebp
push esi
lea eax, [esp + 0x23c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.0043224d
add esp, 4
test eax, eax
jne 0x40777c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x17]
push edx
push str._c__s_n
push edi
call fcn.00432230
add esp, 0x10
cmp byte [esp + 0x13], 0x46
jne 0x40773e
lea eax, [esp + 0x444]
push eax
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x348]
push str._sTemp_s
push edx
call esi
lea eax, [esp + 0x658]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0
lea edx, [esp + 0x35c]
push 0
push edx
call fcn.0043207f
lea eax, [esp + 0x66c]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov edx, ecx
push str._s_s
push edx
call esi
lea eax, [esp + 0x68]
push str.mu.exe
push eax
call fcn.00443b90
add esp, 0x3c
test eax, eax
jne 0x40766d
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x13c]
push str._smu._xe
push edx
call esi
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax + 0x3fafc], 1
jmp 0x407717
lea ecx, [esp + 0x34]
push 0x44c308
push ecx
call fcn.00443b90
add esp, 8
test eax, eax
jne 0x40769f
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x13c]
push str._smumsg._ll
push eax
call esi
add esp, 0xc
jmp 0x407717
lea ecx, [esp + 0x34]
push 0x44c2ec
push ecx
call fcn.00443b90
add esp, 8
test eax, eax
jne 0x4076d1
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x13c]
push str._swz_zp._ll
push eax
call esi
add esp, 0xc
jmp 0x407717
lea ecx, [esp + 0x34]
push str.message.wtf
push ecx
call fcn.00443b90
add esp, 8
test eax, eax
lea edx, [esp + 0x23c]
lea eax, [esp + 0x138]
jne 0x407703
push edx
push str._smessage._tf
push eax
call esi
add esp, 0xc
jmp 0x407717
lea ecx, [esp + 0x444]
push ecx
push edx
push 0x44c2c4
push eax
call esi
add esp, 0x10
push 0x80
lea ecx, [esp + 0x13c]
push ecx
call ebp
push 0
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x348]
push eax
call ebx
test eax, eax
je 0x4077a3
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40776b
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
call fcn.0043224d
add esp, 4
test eax, eax
je 0x4075b0
push edi
call fcn.0042f705
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x74c]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0042fc1f
add esp, 0x740
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x344]
push ecx
lea edx, [esp + 0x550]
push str.Patch_Install_Error__File_:__s___d_
push edx
call esi
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0
push 0
lea eax, [esp + 0x550]
push eax
call fcn.004178a2
push edi
call fcn.0042f705
add esp, 4
xor eax, eax
jmp 0x40778a