Function at 0x407a20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54cfc3
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5ca120]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca120]
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 0x407aca
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]
lea eax, [esp + 0x20]
push esi
push eax
mov edi, 0x5bac40
call fcn.00409cc0
add esp, 8
mov dword [esp + 0x240], 0
mov ecx, dword [0x5ce088]
mov esi, dword [esp + 0x20]
test ecx, ecx
jne 0x407b45
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 0x407b33
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x407b35
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5ce088], ecx
push esi
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_wchar_t_const__]
mov ecx, dword [0x5ce088]
test ecx, ecx
jne 0x407b92
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 0x407b80
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x407b82
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5ce088], 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 0x407bb6
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 [0x5ce088]
add esp, 8
test ecx, ecx
jne 0x407c1b
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 0x407c09
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x407c0b
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5ce088], ecx
call esi
push eax
push 2
push str.LogLevel
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x407c39
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 [0x5ce088]
add esp, 0xc
test ecx, ecx
jne 0x407c93
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 0x407c83
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
mov ecx, edi
jmp 0x407c85
xor ecx, ecx
mov byte [esp + 0x240], 0
mov dword [0x5ce088], ecx
call esi
push eax
push 0x64
push str.StateElapse
push str.Server
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.00409cc0
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_1]
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]
call dword [sym.imp.szca_UKeyEngines.dll_Ordinal_1]
mov ecx, ebx
call fcn.00408210
push 0xc0
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 0x407ded
sub esp, 0x20
mov dword [esp + 0x38], esp
lea ecx, [esp + 0x38]
mov eax, 0x4081e0
mov edi, esp
push ecx
mov dword [edi], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
call fcn.00404ac0
add esp, 4
test al, al
jne 0x407d88
lea eax, [edi + 8]
test eax, eax
je 0x407d7c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, 0x5badd8
or edx, 1
mov dword [edi], edx
jmp 0x407d8e
mov dword [edi], 0
sub esp, 0x20
mov eax, 0x408100
mov dword [esp + 0x58], esp
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov edi, esp
push eax
mov dword [edi], 0
mov dword [esp + 0x60], ebx
call fcn.00404ac0
add esp, 4
test al, al
jne 0x407de0
lea eax, [edi + 8]
test eax, eax
je 0x407dcf
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 0x5badd0
or eax, 1
mov dword [edi], eax
call fcn.00413110
jmp 0x407def
mov dword [edi], 0
call fcn.00413110
jmp 0x407def
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.005448c8
mov esp, ebp
pop ebp
ret