Function at 0x404b90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x42e028]
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
lea eax, [ebp - 0x2c]
push eax
call fcn.00406240
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x404bd9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404bfd
cmp dword [ebp - 0x18], edi
jb 0x404bf6
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
jmp 0x405155
push 0xf
mov eax, str.LogSetting.ini
lea ecx, [ebp - 0x2c]
call fcn.00408650
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 [0x430bdc]
cmp eax, esi
je 0x404c69
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.0041e6d0
push esi
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x48]
call fcn.0041ea10
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], edi
jb 0x404c69
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x38], esi
je 0x404e67
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x404c8b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404c96
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.LogLevel
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x430b68], eax
cmp dword [ebp - 0x18], esi
jae 0x404cb1
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404cbc
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ThreadSafeMode
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x430b84], eax
cmp dword [ebp - 0x18], esi
jae 0x404cd7
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404ce2
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpJson
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x430b88], eax
cmp dword [ebp - 0x18], esi
jae 0x404cfd
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404d08
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpImage
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x430b8c], eax
cmp dword [ebp - 0x18], esi
jae 0x404d23
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404d2e
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ModuleIsoration
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x430b90], eax
cmp dword [ebp - 0x18], esi
jae 0x404d49
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404d54
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ModuleSubDir
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x18], esi
jae 0x404d6d
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404d78
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DisableTimestampPrefix
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x430bcc], eax
cmp dword [ebp - 0x18], esi
jae 0x404d93
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x404d9e
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpCommand
push eax
call ebx
sub esp, 0x1c
mov esi, esp
mov dword [0x430bd0], 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.004016a0
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.00401420
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.00401420
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004049f0
add esp, 0x54
mov edi, eax
mov esi, 0x430bb0
mov byte [ebp - 4], 5
call fcn.00407c10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
jb 0x404e56
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x404e67
or esi, 0xffffffff
cmp dword [0x430b68], esi
jne 0x404e90
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x404e77
lea eax, [ebp - 0x2c]
push eax
push 6
push str.LogLevel
push str.Setting
call ebx
mov dword [0x430b68], eax
or esi, 0xffffffff
jmp 0x404e95
mov edi, 8
cmp dword [ebp - 0x38], 0
je 0x404ea3
cmp dword [0x430b84], esi
jne 0x404ec2
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404eae
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ThreadSafeMode
push str.Setting
call ebx
mov dword [0x430b84], eax
cmp dword [ebp - 0x38], 0
je 0x404ed0
cmp dword [0x430b88], esi
jne 0x404eef
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404edb
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpJson
push str.Setting
call ebx
mov dword [0x430b88], eax
cmp dword [ebp - 0x38], 0
je 0x404efd
cmp dword [0x430b8c], esi
jne 0x404f1c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404f08
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpImage
push str.Setting
call ebx
mov dword [0x430b8c], eax
cmp dword [ebp - 0x38], 0
je 0x404f2a
cmp dword [0x430b90], esi
jne 0x404f49
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404f35
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleIsoration
push str.Setting
call ebx
mov dword [0x430b90], eax
cmp dword [ebp - 0x38], 0
je 0x404f56
mov eax, dword [ebp - 0x68]
cmp eax, esi
jne 0x404f70
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404f61
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleSubDir
push str.Setting
call ebx
cmp eax, 1
jne 0x404f8f
cmp dword [0x430b90], eax
jne 0x404f8f
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, esi
mov ecx, 0x430b94
call fcn.00401420
cmp dword [ebp - 0x38], 0
je 0x404f9d
cmp dword [0x430bcc], esi
jne 0x404fbc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404fa8
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DisableTimestampPrefix
push str.Setting
call ebx
mov dword [0x430bcc], eax
cmp dword [ebp - 0x38], 0
je 0x404fca
cmp dword [0x430bd0], esi
jne 0x404fe9
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404fd5
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpCommand
push str.Setting
call ebx
mov dword [0x430bd0], eax
cmp dword [ebp - 0x38], 0
je 0x404ffc
cmp dword [0x430bc0], 0
jne 0x4050a7
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.004016a0
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.004016a0
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.00401420
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004049f0
add esp, 0x54
mov edi, eax
mov esi, 0x430bb0
mov byte [ebp - 4], 8
call fcn.00407c10
cmp dword [ebp - 0x50], 8
jb 0x4050a2
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov edi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4050b2
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push esi
push str.DumpTwain
push str.Setting
call ebx
mov dword [0x430bd4], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4050d2
lea eax, [ebp - 0x2c]
push eax
push esi
push str.PerformanceCheck
push str.Setting
call ebx
mov dword [0x430bd8], eax
cmp eax, esi
je 0x4050f5
mov eax, 6
mov dword [0x430b68], eax
jmp 0x4050ff
mov eax, dword [0x430b68]
cmp eax, 6
jne 0x405111
mov dword [0x430b88], esi
mov dword [0x430b8c], esi
mov dword [0x430bd4], esi
xor edx, edx
cmp eax, 6
setne dl
mov esi, edx
cmp dword [ebp - 0x34], edi
jb 0x40512d
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x405153
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f822
mov esp, ebp
pop ebp
ret