Function at 0x4167d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b88
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x442018]
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.00417e80
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x416819
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41683d
cmp dword [ebp - 0x18], edi
jb 0x416836
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x416d95
push 0xf
mov eax, str.LogSetting.ini
lea ecx, [ebp - 0x2c]
call fcn.00404b10
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 [0x445f04]
cmp eax, esi
je 0x4168a9
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.0042ddf0
push esi
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x48]
call fcn.0042e170
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], edi
jb 0x4168a9
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x38], esi
je 0x416aa7
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x4168cb
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4168d6
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.LogLevel
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x445e90], eax
cmp dword [ebp - 0x18], esi
jae 0x4168f1
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4168fc
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ThreadSafeMode
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x445eac], eax
cmp dword [ebp - 0x18], esi
jae 0x416917
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x416922
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpJson
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x445eb0], eax
cmp dword [ebp - 0x18], esi
jae 0x41693d
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x416948
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpImage
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x445eb4], eax
cmp dword [ebp - 0x18], esi
jae 0x416963
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x41696e
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.ModuleIsoration
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x445eb8], eax
cmp dword [ebp - 0x18], esi
jae 0x416989
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x416994
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 0x4169ad
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4169b8
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DisableTimestampPrefix
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [0x445ef4], eax
cmp dword [ebp - 0x18], esi
jae 0x4169d3
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4169de
lea eax, [ebp - 0x48]
push ecx
push 0xffffffffffffffff
push str.DumpCommand
push eax
call ebx
sub esp, 0x1c
mov esi, esp
mov dword [0x445ef8], 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.00401890
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.00401cf0
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.00401cf0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00416630
add esp, 0x54
mov edi, eax
mov esi, 0x445ed8
mov byte [ebp - 4], 5
call fcn.00403820
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
jb 0x416a96
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x416aa7
or esi, 0xffffffff
cmp dword [0x445e90], esi
jne 0x416ad0
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x416ab7
lea eax, [ebp - 0x2c]
push eax
push 6
push str.LogLevel
push str.Setting
call ebx
mov dword [0x445e90], eax
or esi, 0xffffffff
jmp 0x416ad5
mov edi, 8
cmp dword [ebp - 0x38], 0
je 0x416ae3
cmp dword [0x445eac], esi
jne 0x416b02
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416aee
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ThreadSafeMode
push str.Setting
call ebx
mov dword [0x445eac], eax
cmp dword [ebp - 0x38], 0
je 0x416b10
cmp dword [0x445eb0], esi
jne 0x416b2f
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416b1b
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpJson
push str.Setting
call ebx
mov dword [0x445eb0], eax
cmp dword [ebp - 0x38], 0
je 0x416b3d
cmp dword [0x445eb4], esi
jne 0x416b5c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416b48
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpImage
push str.Setting
call ebx
mov dword [0x445eb4], eax
cmp dword [ebp - 0x38], 0
je 0x416b6a
cmp dword [0x445eb8], esi
jne 0x416b89
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416b75
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleIsoration
push str.Setting
call ebx
mov dword [0x445eb8], eax
cmp dword [ebp - 0x38], 0
je 0x416b96
mov eax, dword [ebp - 0x68]
cmp eax, esi
jne 0x416bb0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416ba1
lea eax, [ebp - 0x2c]
push eax
push 0
push str.ModuleSubDir
push str.Setting
call ebx
cmp eax, 1
jne 0x416bcf
cmp dword [0x445eb8], eax
jne 0x416bcf
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, esi
mov ecx, 0x445ebc
call fcn.00401cf0
cmp dword [ebp - 0x38], 0
je 0x416bdd
cmp dword [0x445ef4], esi
jne 0x416bfc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416be8
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DisableTimestampPrefix
push str.Setting
call ebx
mov dword [0x445ef4], eax
cmp dword [ebp - 0x38], 0
je 0x416c0a
cmp dword [0x445ef8], esi
jne 0x416c29
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416c15
lea eax, [ebp - 0x2c]
push eax
push 0
push str.DumpCommand
push str.Setting
call ebx
mov dword [0x445ef8], eax
cmp dword [ebp - 0x38], 0
je 0x416c3c
cmp dword [0x445ee8], 0
jne 0x416ce7
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.00401890
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.00401890
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.00401cf0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00416630
add esp, 0x54
mov edi, eax
mov esi, 0x445ed8
mov byte [ebp - 4], 8
call fcn.00403820
cmp dword [ebp - 0x50], 8
jb 0x416ce2
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416cf2
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push esi
push str.DumpTwain
push str.Setting
call ebx
mov dword [0x445efc], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x416d12
lea eax, [ebp - 0x2c]
push eax
push esi
push str.PerformanceCheck
push str.Setting
call ebx
mov dword [0x445f00], eax
cmp eax, esi
je 0x416d35
mov eax, 6
mov dword [0x445e90], eax
jmp 0x416d3f
mov eax, dword [0x445e90]
cmp eax, 6
jne 0x416d51
mov dword [0x445eb0], esi
mov dword [0x445eb4], esi
mov dword [0x445efc], esi
xor edx, edx
cmp eax, 6
setne dl
mov esi, edx
cmp dword [ebp - 0x34], edi
jb 0x416d6d
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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 0x416d93
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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.0042ef46
mov esp, ebp
pop ebp
ret