Function at 0x40c6f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dd28
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x43e028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040dd60
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40c738
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40c75c
cmp dword [ebp - 0x18], edi
jb 0x40c755
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
jmp 0x40cc93
push 0xf
mov eax, str.LogSetting.ini
lea ecx, [ebp - 0x2c]
call fcn.0040b2b0
mov ecx, 7
xor edx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x94]
cmp eax, esi
je 0x40c7c9
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
lea edx, [ebp - 0x64]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.0040b570
push esi
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x48]
call fcn.0040b990
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], edi
jb 0x40c7c9
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x38], esi
je 0x40c9be
mov ecx, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40c7e5
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c7f0
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0xffffffffffffffff
push str.LogLevel
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x20], eax
cmp dword [ebp - 0x18], edi
jae 0x40c80f
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c81a
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ThreadSafeMode
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
cmp dword [ebp - 0x18], edi
jae 0x40c833
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c83e
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpJson
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x40], eax
cmp dword [ebp - 0x18], edi
jae 0x40c857
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c862
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpImage
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x44], eax
cmp dword [ebp - 0x18], edi
jae 0x40c87b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c886
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ModuleIsoration
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x48], eax
cmp dword [ebp - 0x18], edi
jae 0x40c89f
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c8aa
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ModuleSubDir
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x18], edi
jae 0x40c8c3
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c8ce
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DisableTimestampPrefix
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x84], eax
cmp dword [ebp - 0x18], edi
jae 0x40c8ea
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c8f5
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpCommand
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub esp, 0x1c
mov esi, esp
mov dword [ebx + 0x88], eax
mov dword [ebp - 0x70], esp
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 8
mov eax, str.ResetLog
mov word [esi], cx
call fcn.00401590
sub esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x74], esp
push edi
lea eax, [ebp - 0x48]
mov esi, 7
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004011f0
sub esp, 0x1c
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x6c], esp
push edi
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004011f0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040c550
add esp, 0x54
lea esi, [ebx + 0x68]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00408700
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
jb 0x40c9b0
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x40c9be
or edi, 0xffffffff
cmp dword [ebx + 0x20], edi
jne 0x40c9e7
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40c9ca
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 6
push str.LogLevel
push str.Setting
call esi
mov dword [ebx + 0x20], eax
or edi, 0xffffffff
jmp 0x40c9ed
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0x38], 0
je 0x40c9f8
cmp dword [ebx + 0x3c], edi
jne 0x40ca16
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40ca04
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ThreadSafeMode
push str.Setting
call esi
mov dword [ebx + 0x3c], eax
cmp dword [ebp - 0x38], 0
je 0x40ca21
cmp dword [ebx + 0x40], edi
jne 0x40ca3f
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40ca2d
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpJson
push str.Setting
call esi
mov dword [ebx + 0x40], eax
cmp dword [ebp - 0x38], 0
je 0x40ca4a
cmp dword [ebx + 0x44], edi
jne 0x40ca68
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40ca56
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpImage
push str.Setting
call esi
mov dword [ebx + 0x44], eax
cmp dword [ebp - 0x38], 0
je 0x40ca73
cmp dword [ebx + 0x48], edi
jne 0x40ca91
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40ca7f
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleIsoration
push str.Setting
call esi
mov dword [ebx + 0x48], eax
cmp dword [ebp - 0x38], 0
je 0x40ca9e
mov eax, dword [ebp - 0x68]
cmp eax, edi
jne 0x40cab9
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40caaa
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleSubDir
push str.Setting
call esi
cmp eax, 1
jne 0x40cad3
cmp dword [ebx + 0x48], eax
jne 0x40cad3
push 0
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebx + 0x4c]
mov eax, edi
call fcn.004011f0
cmp dword [ebp - 0x38], 0
je 0x40cae1
cmp dword [ebx + 0x84], edi
jne 0x40cb02
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40caed
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DisableTimestampPrefix
push str.Setting
call esi
mov dword [ebx + 0x84], eax
cmp dword [ebp - 0x38], 0
je 0x40cb10
cmp dword [ebx + 0x88], edi
jne 0x40cb31
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cb1c
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpCommand
push str.Setting
call esi
mov dword [ebx + 0x88], eax
cmp dword [ebp - 0x38], 0
je 0x40cb41
cmp dword [ebx + 0x78], 0
jne 0x40cbeb
sub esp, 0x1c
mov esi, esp
xor eax, eax
xor edi, edi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x6c], esp
mov word [esi], ax
push 8
mov eax, str.ResetLog
call fcn.00401590
sub esp, 0x1c
mov byte [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x74], esp
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push 7
mov eax, str.Setting
mov word [esi], cx
call fcn.00401590
sub esp, 0x1c
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x70], esp
push edi
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004011f0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040c550
add esp, 0x54
lea esi, [ebx + 0x68]
mov edi, eax
mov byte [ebp - 4], 8
call fcn.00408700
cmp dword [ebp - 0x50], 8
jb 0x40cbe5
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40cbfb
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpTwain
push str.Setting
call esi
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40cc1b
lea eax, [ebp - 0x2c]
push eax
push 0
push str.PerformanceCheck
push str.Setting
call esi
mov dword [ebx + 0x90], eax
test eax, eax
je 0x40cc3b
mov dword [ebx + 0x20], 6
mov eax, dword [ebx + 0x20]
xor ecx, ecx
cmp eax, 6
jne 0x40cc51
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x8c], ecx
xor edx, edx
cmp eax, 6
setne dl
mov esi, edx
cmp dword [ebp - 0x34], edi
jb 0x40cc6f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x40cc91
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b091
mov esp, ebp
pop ebp
ret