Function at 0x412450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be083
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x644a10]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x644a10]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebx, ecx
call dword [sym.imp.mfc100u.dll_CDialog::OnInitDialog]
mov eax, dword [ebx + 0xb8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [ebx + 0x20]
push 1
push 0x80
push eax
call esi
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0x20]
push eax
push 0
push 0x80
push ecx
call esi
call dword [sym.imp.mfc100u.dll_AfxGetModuleState]
mov eax, dword [eax + 8]
push 0x104
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x24]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4124fa
xor ecx, ecx
mov word [eax + 2], cx
lea edx, [esp + 0x24]
lea esi, [ebx + 0xe0]
push edx
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [esp + 0x20]
push esi
push eax
mov edi, str.Default.ini
call fcn.00413300
add esp, 8
mov dword [esp + 0x240], 0
mov ecx, dword [0x6489e4]
mov esi, dword [esp + 0x20]
test ecx, ecx
jne 0x412575
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x240], 1
test edi, edi
je 0x412563
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x412565
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x6489e4], ecx
push esi
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_wchar_t_const__]
mov ecx, dword [0x6489e4]
test ecx, ecx
jne 0x4125c2
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x240], 2
test edi, edi
je 0x4125b0
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x4125b2
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x6489e4], ecx
mov esi, dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
call esi
push eax
push 2
push str.LogLevel
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x4125e6
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 [ebx + 0xe0]
add esp, 4
push eax
push 2
call dword [sym.imp.szutils.dll_public:_static_int___cdecl_TCommon::CTinyLog::WriteLog_enum_TCommon::CTinyLog::TLOGLEVEL__wchar_t_const__]
mov ecx, dword [0x6489e4]
add esp, 8
test ecx, ecx
jne 0x41264b
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x240], 3
test edi, edi
je 0x412639
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x41263b
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x6489e4], ecx
call esi
push eax
push 2
push str.LogLevel
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x412669
mov eax, 0x8fff
movzx edx, ax
push edx
push str.LogLevel_d
push 2
call dword [sym.imp.szutils.dll_public:_static_int___cdecl_TCommon::CTinyLog::WriteLog_enum_TCommon::CTinyLog::TLOGLEVEL__wchar_t_const__]
mov ecx, dword [0x6489e4]
add esp, 0xc
test ecx, ecx
jne 0x4126c3
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x240], 4
test edi, edi
je 0x4126b1
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x4126b3
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x6489e4], ecx
call esi
push eax
push 0x64
push str.StateElapse
push 0x62f0a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.GetStateElapse_d
push 2
call dword [sym.imp.szutils.dll_public:_static_int___cdecl_TCommon::CTinyLog::WriteLog_enum_TCommon::CTinyLog::TLOGLEVEL__wchar_t_const__]
add esp, 0xc
lea eax, [ebx + 0xe0]
push eax
lea eax, [esp + 0x18]
push eax
mov edi, str.driver_server.pem
call fcn.00413300
add esp, 8
push eax
lea ecx, [ebx + 0xe4]
mov byte [esp + 0x244], 5
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push str.password
lea ecx, [ebx + 0xe8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
call dword [sym.imp.szca_UKeyEngines.dll_Ordinal_1]
mov ecx, dword [ebx + 0x20]
push 0
push 0x3e8
push 0x7d1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0x70
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x240], 6
test esi, esi
je 0x412829
sub esp, 0x20
mov dword [esp + 0x38], esp
lea edx, [esp + 0x38]
mov eax, 0x412ba0
mov edi, esp
push edx
mov dword [edi], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
call fcn.0043b830
add esp, 4
test al, al
jne 0x4127c4
lea eax, [edi + 8]
test eax, eax
je 0x4127b8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 0x632190
or eax, 1
mov dword [edi], eax
jmp 0x4127ca
mov dword [edi], 0
sub esp, 0x20
mov dword [esp + 0x58], esp
lea ecx, [esp + 0x58]
mov eax, 0x412ad0
mov edi, esp
push ecx
mov dword [edi], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
call fcn.0043b830
add esp, 4
test al, al
jne 0x41281c
lea eax, [edi + 8]
test eax, eax
je 0x41280b
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, 0x632188
or edx, 1
mov dword [edi], edx
call fcn.00413470
jmp 0x41282b
mov dword [edi], 0
call fcn.00413470
jmp 0x41282b
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [ebx + 0xd8], eax
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 [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005b2129
mov esp, ebp
pop ebp
ret