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

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x49a010]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x4c
mov eax, 0x47a7e8
call fcn.0044b114
mov esi, dword [ebp + 0x40c]
push dword [esi + 0xc0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41df6f
xor eax, eax
push 0x3fe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00449bc0
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.0041bbfa
and dword [ebp - 4], 0
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00413892
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00413892
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00413197
test al, al
jne 0x41df64
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x400
mov eax, dword [esi + 0xc0]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push str.name
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
test eax, eax
jbe 0x41df3c
cmp dword [ebp - 0x10], 2
je 0x41df3c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040e910
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push 0x48062c
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
test eax, eax
jbe 0x41df3c
cmp dword [ebp - 0x10], 2
je 0x41df3c
lea eax, [ebp]
push eax
call fcn.0044aa30
pop ecx
test eax, eax
jbe 0x41df3c
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push str.btnstate
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
test eax, eax
jbe 0x41dca4
cmp dword [ebp - 0x10], 2
jne 0x41dcab
mov dword [ebp - 0x30], 1
push 0x480720
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x41dcc7
mov dword [ebp - 0x30], 1
jmp 0x41dcdd
push 0x480718
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x41dcdd
and dword [ebp - 0x30], eax
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push str.on_info
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040e910
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push str.off_info
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e910
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push 0x480634
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
test eax, eax
jbe 0x41df3c
cmp dword [ebp - 0x10], 2
je 0x41df3c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040e910
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push str.toolids
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040e910
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
lea ecx, [ebp]
push 0x200
push ecx
push 0
push str.smalllogo
push dword [eax]
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp]
push eax
call fcn.0044aa75
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e910
push edi
lea eax, [ebp]
push 0
push eax
call fcn.00449bc0
mov eax, dword [esi + 0xc0]
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
mov eax, dword [eax]
push 0
push str.st_base
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc0]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
mov eax, dword [eax]
push dword [ebp - 0x10]
push 0
push str.size
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc0]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b9ed
push dword [ebp - 0x10]
mov eax, dword [eax]
push 1
push str.checkexpire
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x28], eax
call fcn.00413892
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.004130ff
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x48]
call fcn.0041d8fa
lea ecx, [ebp - 0x18]
call fcn.0041ba19
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00413892
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00413197
test al, al
je 0x41db86
lea ecx, [ebp - 0x50]
call fcn.0041366e
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00449c3a
add ebp, 0x404
leave
ret 4