Function at 0x40c860
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dd98
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.0040ded0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40c8a8
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40c8cc
cmp dword [ebp - 0x18], edi
jb 0x40c8c5
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
jmp 0x40ce03
push 0xf
mov eax, str.LogSetting.ini
lea ecx, [ebp - 0x2c]
call fcn.0040b480
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 0x40c939
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.0040b730
push esi
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x48]
call fcn.0040bb50
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], edi
jb 0x40c939
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 0x40cb2e
mov ecx, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40c955
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c960
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 0x40c97f
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c98a
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 0x40c9a3
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c9ae
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 0x40c9c7
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c9d2
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 0x40c9eb
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c9f6
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 0x40ca0f
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40ca1a
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 0x40ca33
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40ca3e
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 0x40ca5a
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40ca65
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.0040c6c0
add esp, 0x54
lea esi, [ebx + 0x68]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00408940
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
jb 0x40cb20
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x40cb2e
or edi, 0xffffffff
cmp dword [ebx + 0x20], edi
jne 0x40cb57
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cb3a
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 0x40cb5d
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0x38], 0
je 0x40cb68
cmp dword [ebx + 0x3c], edi
jne 0x40cb86
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cb74
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 0x40cb91
cmp dword [ebx + 0x40], edi
jne 0x40cbaf
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cb9d
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 0x40cbba
cmp dword [ebx + 0x44], edi
jne 0x40cbd8
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cbc6
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 0x40cbe3
cmp dword [ebx + 0x48], edi
jne 0x40cc01
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cbef
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 0x40cc0e
mov eax, dword [ebp - 0x68]
cmp eax, edi
jne 0x40cc29
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cc1a
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleSubDir
push str.Setting
call esi
cmp eax, 1
jne 0x40cc43
cmp dword [ebx + 0x48], eax
jne 0x40cc43
push 0
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebx + 0x4c]
mov eax, edi
call fcn.004011f0
cmp dword [ebp - 0x38], 0
je 0x40cc51
cmp dword [ebx + 0x84], edi
jne 0x40cc72
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cc5d
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 0x40cc80
cmp dword [ebx + 0x88], edi
jne 0x40cca1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40cc8c
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 0x40ccb1
cmp dword [ebx + 0x78], 0
jne 0x40cd5b
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.0040c6c0
add esp, 0x54
lea esi, [ebx + 0x68]
mov edi, eax
mov byte [ebp - 4], 8
call fcn.00408940
cmp dword [ebp - 0x50], 8
jb 0x40cd55
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 0x40cd6b
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 0x40cd8b
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 0x40cdab
mov dword [ebx + 0x20], 6
mov eax, dword [ebx + 0x20]
xor ecx, ecx
cmp eax, 6
jne 0x40cdc1
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 0x40cddf
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 0x40ce01
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.0042b0b1
mov esp, ebp
pop ebp
ret