Function at 0x412010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1a78
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x65db30]
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 esi, ecx
call dword [sym.imp.mfc100u.dll_CDialog::OnInitDialog]
mov eax, dword [esi + 0xb8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
call dword [sym.imp.mfc100u.dll_AfxGetModuleState]
mov eax, dword [eax + 8]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4120ac
xor ecx, ecx
mov word [eax + 2], cx
lea edx, [ebp - 0x218]
lea edi, [esi + 0xe0]
push edx
mov ecx, edi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea eax, [ebp - 0x220]
push eax
call fcn.004127a0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [0x661b4c]
mov ebx, dword [ebp - 0x220]
test ecx, ecx
jne 0x41211d
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x412111
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
mov ecx, esi
jmp 0x412113
xor ecx, ecx
mov byte [ebp - 4], 0
mov dword [0x661b4c], ecx
push ebx
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_wchar_t_const__]
mov ecx, dword [0x661b4c]
test ecx, ecx
jne 0x412164
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x412158
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
mov ecx, esi
jmp 0x41215a
xor ecx, ecx
mov byte [ebp - 4], 0
mov dword [0x661b4c], ecx
mov ebx, dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
call ebx
push eax
push 2
push str.LogLevel
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x412188
mov eax, 0x8fff
movzx ecx, ax
push ecx
call dword [sym.imp.szutils.dll_public:_static_void___cdecl_TCommon::CTinyLog::SetLogLevel_enum_TCommon::CTinyLog::TLOGLEVEL_]
mov eax, dword [edi]
mov edi, dword [sym.imp.szutils.dll_public:_static_int___cdecl_TCommon::CTinyLog::WriteLog_enum_TCommon::CTinyLog::TLOGLEVEL__wchar_t_const__]
push eax
push 2
call edi
mov ecx, dword [0x661b4c]
add esp, 0xc
test ecx, ecx
jne 0x4121e2
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4121d6
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
mov ecx, esi
jmp 0x4121d8
xor ecx, ecx
mov byte [ebp - 4], 0
mov dword [0x661b4c], ecx
call ebx
push eax
push 2
push str.LogLevel
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x412200
mov eax, 0x8fff
movzx edx, ax
push edx
push str.LogLevel_d
push 2
call edi
mov ecx, dword [0x661b4c]
add esp, 0xc
test ecx, ecx
jne 0x412250
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x412244
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
mov ecx, esi
jmp 0x412246
xor ecx, ecx
mov byte [ebp - 4], 0
mov dword [0x661b4c], ecx
call ebx
push eax
push 0x64
push str.StateElapse
push 0x646264
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.GetStateElapse_d
push 2
call edi
add esp, 0xc
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
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.005c5718
mov esp, ebp
pop ebp
ret