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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
call dword [sym.imp.DENKIPM.dll_Ordinal_1396]
movzx eax, al
test eax, eax
jne 0x40f556
call dword [sym.imp.DENKIPM.dll_Ordinal_1398]
movzx ecx, al
test ecx, ecx
jne 0x40f556
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x40f551
push 0x10
push 0xbd4
push 0x41b
push 0
call fcn.00428bd0
add esp, 0x10
jmp 0x40f7de
cmp dword [ebp + 8], 0
jne 0x40f561
jmp 0x40f7de
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.DENKIPM.dll_Ordinal_1175]
add esp, 4
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
call dword [sym.imp.DENKIPM.dll_Ordinal_1168]
movzx ecx, al
test ecx, ecx
jne 0x40f58c
jmp 0x40f7de
mov edx, dword [ebp - 0x118]
push edx
call fcn.0040f360
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f5ae
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40f5b3
jmp 0x40f7de
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f5e1
mov eax, dword [ebp - 0xc]
push eax
push 0x10
push 0xbd4
push 0x414
push 0
call fcn.00428bd0
add esp, 0x14
jmp 0x40f7de
mov ecx, dword [ebp - 0xc]
push ecx
push 0x100
lea edx, [ebp - 0x110]
push edx
mov eax, dword [str.AdminMembers]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f652
mov ecx, dword [ebp - 0xc]
push ecx
push 0x100
lea edx, [ebp - 0x110]
push edx
mov eax, dword [str.EngineerMembers]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f652
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x40f64d
mov edx, dword [ebp - 0xc]
push edx
push 0x10
push 0xbd4
push 0x80c
push 0
call fcn.00428bd0
add esp, 0x14
jmp 0x40f7de
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x410
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [str.AdminMembers]
push edx
lea ecx, [ebp - 0x11c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1388]
push eax
mov eax, dword [sym.imp.DENKIPM.dll_Ordinal_1303]
push eax
mov ecx, dword [sym.imp.DENKIPM.dll_Ordinal_1302]
push ecx
mov edx, dword [sym.imp.DENKIPM.dll_Ordinal_1304]
push edx
mov eax, dword [sym.imp.DENKIPM.dll_Ordinal_1379]
push eax
call fcn.0040f7f0
add esp, 0x24
lea ecx, [ebp - 0x11c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1389]
mov dword [ebp - 0x114], 0
lea ecx, [ebp - 0x114]
push ecx
push 0x411
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [str.EngineerMembers]
push eax
lea ecx, [ebp - 0x120]
call dword [sym.imp.DENKIPM.dll_Ordinal_1390]
push eax
mov ecx, dword [sym.imp.DENKIPM.dll_Ordinal_1348]
push ecx
mov edx, dword [sym.imp.DENKIPM.dll_Ordinal_1347]
push edx
mov eax, dword [sym.imp.DENKIPM.dll_Ordinal_1349]
push eax
mov ecx, dword [sym.imp.DENKIPM.dll_Ordinal_1380]
push ecx
call fcn.0040f7f0
add esp, 0x24
lea ecx, [ebp - 0x120]
call dword [sym.imp.DENKIPM.dll_Ordinal_1391]
cmp dword [ebp - 4], 0
je 0x40f750
cmp dword [ebp - 0x114], 0
je 0x40f750
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x10
push 0xbd4
push 0x413
push 0
call fcn.00428bd0
add esp, 0x18
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40f7de
cmp dword [ebp - 4], 0
je 0x40f785
cmp dword [ebp - 0x114], 0
jne 0x40f785
mov eax, dword [ebp - 4]
push eax
push 0x10
push 0xbd4
push 0x412
push 0
call fcn.00428bd0
add esp, 0x14
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40f7de
cmp dword [ebp - 4], 0
jne 0x40f7c0
cmp dword [ebp - 0x114], 0
je 0x40f7c0
mov edx, dword [ebp - 0x114]
push edx
push 0x10
push 0xbd4
push 0x412
push 0
call fcn.00428bd0
add esp, 0x14
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40f7de
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x40f7de
push 0x40
push 0xbd4
push 0x7fa
push 0
call fcn.00428bd0
add esp, 0x10
mov esp, ebp
pop ebp
ret