Function at 0x477090
Capabilities:
Get common file path
Read .ini file
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x105
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.00504c70
add esp, 0xc
call fcn.00407680
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x477105
movaps xmm0, xmmword [0x565ac0]
lea ecx, [ebp - 0x30]
push ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x61507265
mov dword [ebp - 0x1c], 0x416874
call edi
mov dword [esi + 0x28], eax
push 0
push 0x23
lea eax, [ebp - 0x270]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4773bc
push 0x105
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x168]
push 0x105
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [ebp - 0x168]
push str._roundinfo.ini
push 0x105
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x27a]
xorps xmm0, xmm0
push eax
movzx eax, word [ebp - 0x27e]
push eax
movzx eax, word [ebp - 0x280]
push eax
push str._d__d__d
lea eax, [ebp - 0x60]
movaps xmmword [ebp - 0x60], xmm0
push 0x14
push eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
call fcn.00477790
add esp, 0x18
call fcn.00407550
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4771d7
movaps xmm0, xmmword [str.PathFileExistsA]
lea ecx, [ebp - 0x40]
push ecx
push eax
movups xmmword [ebp - 0x40], xmm0
call edi
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x168]
push eax
mov eax, dword [esi + 0x18]
call eax
test eax, eax
lea eax, [ebp - 0x168]
je 0x47733a
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x168]
mov dword [ebp - 0x20], 0
push eax
push 0x14
lea eax, [ebp - 0x30]
mov byte [ebp - 0x1c], 0
push eax
push 0
push str.time
xorps xmm0, xmm0
push str.info
movaps xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x60]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x477254
test dl, dl
je 0x477250
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x477254
add eax, 2
add ecx, 2
test dl, dl
jne 0x477234
xor eax, eax
jmp 0x477259
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x168]
push eax
jne 0x477366
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.install
push str.info
call esi
mov edi, eax
lea eax, [ebp - 0x168]
push eax
push 1
push str.round
push str.info
call esi
mov word [ebp - 0x34], 0
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
mov esi, eax
mov byte [ebp - 0x32], 0
cmp edi, 1
jne 0x4772ad
inc esi
push esi
push 0x564bdc
lea eax, [ebp - 0x3c]
push 0xa
push eax
call fcn.004777c0
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x168]
add esp, 0x10
push eax
lea eax, [ebp - 0x3c]
push eax
push str.round
push str.info
call edi
cmp dword [0x5816b4], 0
lea eax, [ebp - 0x168]
push eax
je 0x477314
push 0x564bd0
push str.install
push str.info
call edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x564760
push str.install
push str.info
call edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4773bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x168]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x60]
push eax
push str.time
push str.info
call esi
lea eax, [ebp - 0x168]
push eax
push 0x564bd0
push str.round
push str.info
call esi
cmp dword [0x5816b4], 0
lea eax, [ebp - 0x168]
push eax
je 0x4773ab
push 0x564bd0
jmp 0x4773b0
push 0x564760
push str.install
push str.info
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00501e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret