Function at 0x47b110
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x524], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4f4]
push eax
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0xffffffffffffffff
push 0x535e00
push 0x535e18
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x4f4]
call fcn.0041d100
mov ecx, dword [ebp - 0x524]
cmp dword [ecx + 0x1b0], 0
jne 0x47b6e4
xor edx, edx
mov word [ebp - 0x228], dx
push 0x208
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.004f7580
add esp, 0xc
lea ecx, [ebp - 0x4f8]
push ecx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x104
lea edx, [ebp - 0x228]
push edx
push 0x535e2c
push 0x535e34
push 0x535e50
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x4f8]
call fcn.0041d100
push 0
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.004fe9ea
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
jl 0x47b211
cmp dword [ebp - 0xc], 0
jg 0x47b476
jl 0x47b211
cmp dword [ebp - 0x10], 0
jae 0x47b476
push 0x535e64
lea ecx, [ebp - 0x4fc]
push ecx
call fcn.0044d6f0
add esp, 4
push eax
lea edx, [ebp - 0x22c]
push edx
call fcn.0041bc20
add esp, 0xc
lea ecx, [ebp - 0x4fc]
call fcn.0041d100
lea ecx, [ebp - 0x22c]
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b466
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
lea eax, [ebp - 0x250]
push eax
push 0
lea ecx, [ebp - 0x22c]
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x24c]
push edx
call fcn.00432190
add esp, 8
cmp dword [ebp - 0xc], 0
jg 0x47b338
jl 0x47b2b5
cmp dword [ebp - 0x10], 0
jae 0x47b338
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00432190
add esp, 8
lea ecx, [ebp - 0x274]
call fcn.0041d080
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x535e78
lea ecx, [ebp - 0x274]
push ecx
call fcn.0041e770
add esp, 0x10
lea edx, [ebp - 0x500]
push edx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
lea ecx, [ebp - 0x274]
call fcn.0041d2b0
push eax
push str.LastCloseTime
push 0x535ea0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x500]
call fcn.0041d100
lea ecx, [ebp - 0x274]
call fcn.0041d100
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.00437d50
add esp, 0x10
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jl 0x47b36e
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x254]
call fcn.0041d080
mov edx, dword [ebp - 4]
push edx
push 0x535eb4
lea eax, [ebp - 0x254]
push eax
call fcn.0041e770
add esp, 0xc
lea ecx, [ebp - 0x504]
push ecx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
lea ecx, [ebp - 0x254]
call fcn.0041d2b0
push eax
push 0x535ebc
push 0x535ed4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x504]
call fcn.0041d100
push 0
call fcn.004776a0
add esp, 4
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edx
lea ecx, [ebp - 0x264]
call fcn.0041d080
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x260]
push eax
push 0x535ee8
lea ecx, [ebp - 0x264]
push ecx
call fcn.0041e770
add esp, 0x10
lea edx, [ebp - 0x508]
push edx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
lea ecx, [ebp - 0x264]
call fcn.0041d2b0
push eax
push 0x535ef4
push 0x535f14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x508]
call fcn.0041d100
lea ecx, [ebp - 0x264]
call fcn.0041d100
lea ecx, [ebp - 0x254]
call fcn.0041d100
lea ecx, [ebp - 0x22c]
call fcn.0041d100
jmp 0x47b6df
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0x20a
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004f7580
add esp, 0xc
lea edx, [ebp - 0x50c]
push edx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x535f28
push 0x535f30
push 0x535f50
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x50c]
call fcn.0041d100
push 0
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004fe9ea
add esp, 0xc
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], edx
push 0x20a
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004f7580
add esp, 0xc
lea eax, [ebp - 0x510]
push eax
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0x535f64
push 0x535f6c
push 0x535f88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x510]
call fcn.0041d100
push 0
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004fe9ea
add esp, 0xc
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], edx
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x27c]
jg 0x47b5aa
jl 0x47b58a
mov ecx, dword [ebp - 0x288]
cmp ecx, dword [ebp - 0x280]
ja 0x47b5aa
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x27c]
jl 0x47b6df
jg 0x47b5aa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x280]
jbe 0x47b6df
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.00437d50
add esp, 0x10
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jle 0x47b6df
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x28c]
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x290]
call fcn.0041d080
mov eax, dword [ebp - 4]
push eax
push 0x535f9c
lea ecx, [ebp - 0x290]
push ecx
call fcn.0041e770
add esp, 0xc
lea edx, [ebp - 0x514]
push edx
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
lea ecx, [ebp - 0x290]
call fcn.0041d2b0
push eax
push str.OpenedDays
push 0x535fbc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x514]
call fcn.0041d100
push 0
call fcn.004776a0
add esp, 4
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], edx
lea ecx, [ebp - 0x29c]
call fcn.0041d080
mov eax, dword [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
push str._I64d
lea edx, [ebp - 0x29c]
push edx
call fcn.0041e770
add esp, 0x10
lea eax, [ebp - 0x518]
push eax
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
lea ecx, [ebp - 0x29c]
call fcn.0041d2b0
push eax
push str.UpdateDaysTime
push 0x535ffc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x518]
call fcn.0041d100
lea ecx, [ebp - 0x29c]
call fcn.0041d100
lea ecx, [ebp - 0x290]
call fcn.0041d100
jmp 0x47b89d
push 0
call fcn.004776a0
add esp, 4
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], edx
xor ecx, ecx
mov word [ebp - 0x4b0], cx
push 0x208
push 0
lea edx, [ebp - 0x4ae]
push edx
call fcn.004f7580
add esp, 0xc
lea eax, [ebp - 0x51c]
push eax
call fcn.00419480
add esp, 4
mov ecx, eax
call fcn.0041d2b0
push eax
push 0x104
lea ecx, [ebp - 0x4b0]
push ecx
push 0x536010
push str.LastOpenTime
push 0x536034
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x51c]
call fcn.0041d100
push 0
push 0
lea edx, [ebp - 0x4b0]
push edx
call fcn.004fe9ea
add esp, 0xc
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4b4], edx
cmp dword [ebp - 0x4b4], 0
jl 0x47b799
jg 0x47b78f
cmp dword [ebp - 0x4b8], 0
jb 0x47b799
cmp dword [ebp - 8], 0
jge 0x47b858
push 0x536048
lea eax, [ebp - 0x520]
push eax
call fcn.0044d6f0
add esp, 4
push eax
lea ecx, [ebp - 0x4c4]
push ecx
call fcn.0041bc20
add esp, 0xc
lea ecx, [ebp - 0x520]
call fcn.0041d100
lea ecx, [ebp - 0x4c4]
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47b84b
lea edx, [ebp - 0x4e8]
push edx
push 0
lea ecx, [ebp - 0x4c4]
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x4e4]
push ecx
call fcn.00432190
add esp, 8
mov edx, dword [ebp - 0x4bc]
push edx
mov eax, dword [ebp - 0x4c0]
push eax
mov ecx, dword [ebp - 0x4b4]
push ecx
mov edx, dword [ebp - 0x4b8]
push edx
call fcn.00437d50
add esp, 0x10
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jle 0x47b84b
mov eax, dword [ebp - 0x4ec]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x4c4]
call fcn.0041d100
jmp 0x47b89d
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x4bc]
push edx
mov eax, dword [ebp - 0x4c0]
push eax
mov ecx, dword [ebp - 0x4b4]
push ecx
mov edx, dword [ebp - 0x4b8]
push edx
call fcn.00437d50
add esp, 0x10
mov dword [ebp - 0x4f0], eax
cmp dword [ebp - 0x4f0], 0
jle 0x47b89d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x4f0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret