Function at 0x4092f5
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x104
test edi, edi
jne 0x4093b4
push ebx
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409665
cmp eax, ebx
je 0x409665
lea esi, [ebx - 4]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
lea eax, [ebp - 0x63c]
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
push 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.004015f3
mov ecx, eax
call fcn.0040678a
push 5
push 0x40b8c0
lea eax, [ebp - 0x434]
push esi
push eax
call fcn.004013fc
mov ecx, eax
call fcn.0040678a
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x84c]
push ebx
push eax
call fcn.004014cf
add esp, 0x4c
mov ecx, eax
call fcn.0040678a
lea edi, [ebp - 0x84c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40965d
mov esi, dword [0x40d7f4]
test esi, esi
je 0x409665
push edi
push ebx
lea eax, [ebp - 0x234]
mov byte [esi + 0x428], 1
push eax
push 0x40b7a4
push str.Info
push str.Process
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push 1
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x424]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x234]
push str.ModuleCount:_u__Level:_u__Enabled:_c__FuncAndCategoryNames:_c__FileNameAndLineNo:_c
push eax
call fcn.00401338
add esp, 0x28
cmp eax, 5
jne 0x409665
push 0x66
pop ecx
cmp word [ebp - 4], cx
setne al
mov byte [esi + 0x429], al
cmp word [ebp - 8], cx
setne al
mov byte [esi + 0x42a], al
cmp word [ebp - 0xc], cx
setne al
mov byte [esi + 0x42b], al
xor eax, eax
cmp dword [ebp - 0x1c], eax
jbe 0x409658
inc eax
push eax
push str.Module_d
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xa54]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
test eax, eax
js 0x409665
push edi
push ebx
lea eax, [ebp - 0x644]
mov esi, 0x40b7a4
push eax
push esi
lea eax, [ebp - 0xa54]
push eax
push str.Process
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
xor eax, eax
push ebx
mov word [ebp - 0x43e], ax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.Name
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov ecx, 0x40d7d8
mov word [ebp - 0x236], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.004099e2
test al, al
je 0x40964c
push dword [ebp - 0x28]
mov ecx, 0x40d7d8
call fcn.0040997a
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x409647
push edi
push 0x104
lea eax, [ebp - 0x234]
push eax
push esi
push str.Settings
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x234]
push str.CategoryCount:_u__Level:_u__Status:_u
push eax
call fcn.00401338
add esp, 0x14
cmp eax, 3
jne 0x409647
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea ecx, [ebx + 0x414]
call fcn.004092bf
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x409647
inc esi
lea eax, [ebp - 0xa54]
push esi
push str.Category_d
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
test eax, eax
js 0x409665
push edi
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0x40b7a4
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x43c]
push 0x104
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x234]
push str.Level:_u__Status:_u__Name:_s
push eax
call fcn.00401338
add esp, 0x18
cmp eax, 3
jne 0x40963e
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x40963e
push eax
mov ecx, 0x40d7d8
call fcn.004099b4
mov ebx, eax
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x409633
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.004092bf
mov eax, dword [ebx + 0x14]
cmp eax, 0xffffffff
jne 0x409604
mov ebx, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x18]
jb 0x409580
mov ebx, 0x104
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jb 0x40946c
call fcn.00408165
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x409660