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

Disassembly:
sub esp, 0x73c
push ebx
push ebp
push esi
push edi
push 0x446244
mov dword [esp + 0x18], ecx
push str.patch.log
call fcn.0041a544
mov edi, eax
add esp, 8
test edi, edi
jne 0x4092e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x73c
ret
lea eax, [esp + 0x23c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test byte [edi + 0xc], 0x10
jne 0x4094ec
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]
lea edx, [esp + 0x13]
push ecx
push edx
push str._c__s_n
push edi
call fcn.0041affd
mov al, byte [esp + 0x23]
add esp, 0x10
cmp al, 0x46
jne 0x4094b5
lea eax, [esp + 0x444]
lea ecx, [esp + 0x23c]
push eax
push ecx
lea edx, [esp + 0x348]
push str._sTemp_s
push edx
call esi
lea eax, [esp + 0x658]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
lea edx, [esp + 0x35c]
push 0
push edx
call fcn.0041ace0
add esp, 0x24
lea eax, [esp + 0x648]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x34]
push eax
push ecx
push 0x4463f4
push edx
call esi
lea eax, [esp + 0x44]
push str.mu.exe
push eax
call fcn.00423800
add esp, 0x18
test eax, eax
jne 0x4093d3
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x138]
push ecx
push str._smu._xe
push edx
call esi
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax + 0x3fab4], 1
jmp 0x40948e
lea ecx, [esp + 0x34]
push str.mumsg.dll
push ecx
call fcn.00423800
add esp, 8
test eax, eax
jne 0x409408
lea edx, [esp + 0x23c]
lea eax, [esp + 0x138]
push edx
push str._smumsg._ll
push eax
call esi
add esp, 0xc
jmp 0x40948e
lea ecx, [esp + 0x34]
push str.wz_zp.dll
push ecx
call fcn.00423800
add esp, 8
test eax, eax
jne 0x40943a
lea edx, [esp + 0x23c]
lea eax, [esp + 0x138]
push edx
push str._swz_zp._ll
push eax
call esi
add esp, 0xc
jmp 0x40948e
lea ecx, [esp + 0x34]
push str.message.wtf
push ecx
call fcn.00423800
add esp, 8
test eax, eax
jne 0x40946c
lea edx, [esp + 0x23c]
lea eax, [esp + 0x138]
push edx
push str._smessage._tf
push eax
call esi
add esp, 0xc
jmp 0x40948e
lea ecx, [esp + 0x444]
lea edx, [esp + 0x23c]
push ecx
push edx
lea eax, [esp + 0x140]
push str._s_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x138]
push 0x80
push ecx
call ebp
lea edx, [esp + 0x138]
push 0
lea eax, [esp + 0x344]
push edx
push eax
call ebx
test eax, eax
je 0x409505
push 1
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4094e2
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]
test byte [edi + 0xc], 0x10
je 0x409310
push edi
call fcn.0041a496
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x73c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x340]
push eax
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
lea eax, [esp + 0x548]
push 0
push 0
push eax
call fcn.0042ca15
push edi
call fcn.0041a496
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x73c
ret