Function at 0x405700
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53fd23
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5bbfb0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x5bbfb0]
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 0x4057aa
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, 0x5ac3d0
call fcn.00406060
add esp, 8
mov dword [esp + 0x240], 0
mov ecx, dword [0x5bfd20]
mov esi, dword [esp + 0x20]
test ecx, ecx
jne 0x405825
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 0x405813
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x405815
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5bfd20], ecx
push esi
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_wchar_t_const__]
mov ecx, dword [0x5bfd20]
test ecx, ecx
jne 0x405872
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 0x405860
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x405862
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5bfd20], 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 0x405896
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 [0x5bfd20]
add esp, 8
test ecx, ecx
jne 0x4058fb
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 0x4058e9
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x4058eb
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5bfd20], ecx
call esi
push eax
push 2
push str.LogLevel
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x405919
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 [0x5bfd20]
add esp, 0xc
test ecx, ecx
jne 0x405973
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 0x405961
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x405963
xor edi, edi
mov ecx, edi
mov byte [esp + 0x240], 0
mov dword [0x5bfd20], ecx
call esi
push eax
push 0x64
push str.StateElapse
push 0x5ac524
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.00406060
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, dword [ebx + 0x20]
push 0
push 0x3e8
push 0x7d1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
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 0x405adc
sub esp, 0x20
mov dword [esp + 0x38], esp
lea edx, [esp + 0x38]
mov eax, 0x405e80
mov edi, esp
push edx
mov dword [edi], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
call fcn.00404450
add esp, 4
test al, al
jne 0x405a77
lea eax, [edi + 8]
test eax, eax
je 0x405a6b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 0x5af180
or eax, 1
mov dword [edi], eax
jmp 0x405a7d
mov dword [edi], 0
sub esp, 0x20
mov dword [esp + 0x58], esp
lea ecx, [esp + 0x58]
mov eax, 0x405db0
mov edi, esp
push ecx
mov dword [edi], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
call fcn.00404450
add esp, 4
test al, al
jne 0x405acf
lea eax, [edi + 8]
test eax, eax
je 0x405abe
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, 0x5af178
or edx, 1
mov dword [edi], edx
call fcn.00410180
jmp 0x405ade
mov dword [edi], 0
call fcn.00410180
jmp 0x405ade
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.00538458
mov esp, ebp
pop ebp
ret