Function at 0x401519
Capabilities:
Execute command
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x8d0
call sym.___main
mov dword [esp], 0
call sym._time
mov dword [esp + 0x8b8], eax
lea eax, [esp + 0x8b8]
mov dword [esp], eax
call sym._localtime
mov edx, dword [eax]
mov dword [esp + 0x894], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x898], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x89c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x8a0], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x8a4], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x8a8], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x8ac], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x8b0], edx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x8b4], eax
mov ebx, dword [esp + 0x894]
mov ecx, dword [esp + 0x898]
mov edx, dword [esp + 0x89c]
mov eax, dword [esp + 0x8a8]
lea edi, [eax + 0x76c]
mov eax, dword [esp + 0x8a4]
lea esi, [eax + 1]
mov eax, dword [esp + 0x8a0]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._02d__02d__04d__02d._02d._02d
mov dword [esp + 4], 0x64
lea eax, [esp + 0x830]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp], str.USERNAME
call sym._getenv
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40b0a4
mov dword [esp + 4], 0x100
lea eax, [esp + 0x730]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [esp + 0x730]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.C:Users_sAppDataRoamingEldenRing
mov dword [esp + 4], 0x200
lea eax, [esp + 0x530]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [esp + 0x530]
mov dword [esp + 0x8c4], eax
mov eax, dword [esp + 0x8c4]
mov dword [esp], eax
call sym.___mingw_opendir
mov dword [esp + 0x8cc], eax
cmp dword [esp + 0x8cc], 0
jne 0x4017b1
mov dword [esp], str.opendir
call sym._perror
mov eax, 1
jmp 0x40181d
mov eax, dword [esp + 0x8c8]
mov eax, dword [eax + 8]
cmp eax, 0x10
jne 0x4017b1
mov eax, dword [esp + 0x8c8]
add eax, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40b0a4
mov dword [esp + 4], 0x100
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp + 4], 0x40b0d6
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4017b1
mov dword [esp + 4], 0x40b0d8
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4017b1
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x730]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.C:Users_sAppDataRoamingEldenRing_sER0000.sl2
mov dword [esp + 4], 0x200
lea eax, [esp + 0x130]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [esp + 0x830]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x730]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.C:Users_sAppDataRoamingEldenRing_sBACKUP__s_ER0000.sl2
mov dword [esp + 4], 0x200
lea eax, [esp + 0x330]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [esp + 0x330]
mov dword [esp + 4], eax
lea eax, [esp + 0x130]
mov dword [esp], eax
call dbg.copy_file
mov eax, dword [esp + 0x8cc]
mov dword [esp + 0x8c0], eax
mov eax, dword [esp + 0x8c0]
mov dword [esp], eax
call sym.___mingw_readdir
mov dword [esp + 0x8c8], eax
cmp dword [esp + 0x8c8], 0
jne 0x4016b3
mov eax, dword [esp + 0x8cc]
mov dword [esp + 0x8bc], eax
mov eax, dword [esp + 0x8bc]
mov dword [esp], eax
call sym.___mingw_closedir
mov dword [esp], 1
call sym._sleep
mov dword [esp], str._C:Program_Files__x86_Steam_steamappscommonELDEN_RINGGameeldenring.exe_
call sym._system
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret