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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433475
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x443080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x4c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov byte [edi + 0x1c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
movzx eax, byte [ebp + 0x18]
push str.c:config.ini
mov dword [ebp - 4], 0
mov dword [edi + 0x14], ecx
mov dword [edi], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4111e7
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.c:config.ini
push dword [edi + 8]
push str.g_lenovo_global_log_level
push str.config
call esi
push str.c:config.ini
push dword [edi + 0x10]
mov dword [edi + 8], eax
push str.g_lenovo_global_max_size
push str.config
call esi
push str.c:config.ini
push dword [edi]
mov dword [edi + 0x10], eax
push str.g_lenovo_log_encryped
push str.config
mov dword [edi + 0x14], 0
call esi
push str.c:config.ini
push dword [edi + 4]
mov dword [edi], eax
push str.g_lenovo_log_printf
push str.config
call esi
push str.c:config.ini
push eax
push str.g_lenovo_log_outputdebug
push str.config
mov dword [edi + 4], eax
call esi
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x6c]
lea edx, [edi + 0x18]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x41120b
cmp dword [eax - 4], 1
jle 0x411206
push ecx
lea ecx, [edi + 0x6c]
call fcn.0040cc40
lea edx, [edi + 0x18]
mov eax, dword [edi + 0x6c]
jmp 0x41120e
mov eax, dword [ebp - 0x34]
push edx
push dword [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00410ac0
test eax, eax
je 0x4112d3
mov ecx, edi
call fcn.0040b5c0
cmp dword [edi + 0x20], 0
jne 0x4112d3
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [edi + 0x18]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.GlobalPCMLOG_
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0040a540
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
call fcn.0040ae80
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x38]
or esi, 0xffffffff
mov dword [edi + 0x20], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4112d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414ae1
mov esp, ebp
pop ebp
ret 0x18