Function at 0x4079b3
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x42000c]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.0040c9b0
call fcn.004077cb
test eax, eax
jne 0x4079e9
or eax, 0xffffffff
jmp 0x407dd0
push 0x416f5c
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x407a24
push str.OPENSSL_CONF
lea ecx, [esp + 0x60]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_char_::constructor_char_const__]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public:_char_const____thiscall_Cmm::CStringT_char_::c_str_void_const]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
pop ecx
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_char_::destructor_void_]
push 0x64
xor edi, edi
lea eax, [esp + 0xa4]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x64
push eax
call dword [sym.imp.libcrypto_1_1.dll_RAND_bytes]
push edi
push edi
call dword [sym.imp.Cmmlib.dll_public:_static_void___cdecl_Cmm::CommandLine::Init_int__char_const__const_const__]
add esp, 0x10
call fcn.004056cd
test al, al
jne 0x407a82
call dword [sym.imp.DuiLib.dll_public:_static_int___cdecl_DuiLib::CHighDpi::InitHdpi_void_]
call fcn.0040314e
test eax, eax
jne 0x407a79
push 3
call dword [sym.imp.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CHighDpi::SetAwarenessMode_enum_DuiLib::CDpiAwarenessMode::DPIAwareMode_]
pop ecx
test al, al
jne 0x407a82
push 1
call dword [sym.imp.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CHighDpi::SetAwarenessMode_enum_DuiLib::CDpiAwarenessMode::DPIAwareMode_]
pop ecx
call dword [sym.imp.DuiLib.dll_public:_static_class_DuiLib::CHighContrast____cdecl_DuiLib::CHighContrast::Instance_void_]
mov esi, eax
test esi, esi
je 0x407aa9
call fcn.0040314e
neg eax
mov ecx, esi
sbb al, al
inc al
mov byte [esp + 0x10], al
push dword [esp + 0x10]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CHighContrast::SetSupportHighContrast_bool_]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_void_]
call dword [sym.imp.Cmmlib.dll_public:_static_class_Cmm::CommandLine____cdecl_Cmm::CommandLine::ForCurrentProcess_void_]
mov esi, eax
mov ecx, esi
call fcn.004078e6
test eax, eax
jne 0x407dc4
mov ecx, esi
call fcn.00407850
test eax, eax
je 0x407dc4
test esi, esi
je 0x407b1e
push 0x416b44
lea ecx, [esp + 0x7c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_char_::constructor_wchar_t_const__]
add eax, 4
lea ecx, [esi + 0x34]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00405dbd
lea ecx, [esp + 0x78]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_char_::destructor_void_]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x34]
je 0x407b1e
add eax, 0x28
lea ecx, [esp + 0x5c]
push eax
call dword [0x414168]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public:_int___thiscall_Cmm::CStringT_wchar_t_::IsEmpty_void_const]
test eax, eax
jne 0x407c1a
push str.App_Start_with_Web_join__Url:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [sym.imp.USER32.dll_DefWindowProcW]
xor eax, eax
push 0xa
pop ecx
mov dword [esp + 0x78], edi
mov edx, str.GrabFocusWindow
mov dword [esp + 0x80], edi
xorps xmm0, xmm0
mov dword [esp + 0x84], edi
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x7c], esi
push eax
push edx
push ebx
mov dword [esp + 0x94], ebx
movups xmmword [esp + 0x98], xmm0
mov dword [esp + 0xa8], edx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
je 0x407bb6
cmp esi, dword [esp + 0x38]
je 0x407bc1
push ebx
push dword [esp + 0xa0]
call dword [sym.imp.USER32.dll_UnregisterClassW]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
xor edi, edi
push edi
push ebx
push edi
push edi
push 1
push 1
push edi
push edi
push SysReAllocString
push 0x414cac
push dword [esp + 0xc4]
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x407c0f
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x407c1a
push str.App_Create_Focus_window_failure_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_void_]
call dword [sym.imp.Cmmlib.dll_public:_static_class_Cmm::CommandLine____cdecl_Cmm::CommandLine::ForCurrentProcess_void_]
test eax, eax
je 0x407cea
push 0x415d1c
lea ecx, [esp + 0x7c]
lea esi, [eax + 0x34]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_char_::constructor_char_const__]
add eax, 4
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00405dbd
lea ecx, [esp + 0x78]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_char_::destructor_void_]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x407cea
add eax, 0x28
lea ecx, [esp + 0x5c]
push eax
call dword [0x414168]
push str.resetData
lea ecx, [esp + 0x7c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_char_const__]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.Cmmlib.dll_public:_bool___thiscall_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const__const]
lea ecx, [esp + 0x78]
mov bl, al
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
test bl, bl
je 0x407cac
push 1
jmp 0x407cd7
push str.resetConfig
lea ecx, [esp + 0x7c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_char_const__]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.Cmmlib.dll_public:_bool___thiscall_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const__const]
lea ecx, [esp + 0x78]
mov bl, al
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
test bl, bl
je 0x407cea
push edi
mov eax, dword [sym.imp.Cmmlib.dll_const_Cmm::CmmLogGC::vftable]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call dword [sym.imp.Cmmlib.dll_public_virtual:_int___thiscall_Cmm::CmmLogGC::ResetAppData_int_]
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov dword [esp + 0x28], edi
inc eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
movlpd qword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [0x414664]
call esi
push 3
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_abort_behavior]
push 0x4077c0
push 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
add esp, 0x10
call dword [sym.imp.MSAALIB.dll_ZAccInitModule]
push edi
push edi
push edi
push edi
xor edx, edx
xor ecx, ecx
call fcn.00404b2a
add esp, 0x10
test eax, eax
js 0x407d88
call fcn.00405316
test eax, eax
js 0x407d88
call fcn.0040536d
push dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ecx, esi
call dword [0x414664]
call esi
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CHighDpi::UnInitHdpi_void_]
mov ecx, dword [sym.imp.UIBase.dll_class_UIBase::CZPPictureMgr_UIBase::_ZPUIImgMgr]
call dword [sym.imp.UIBase.dll_public:_void___thiscall_UIBase::CZPPictureMgr::ReleaseAllPictures_void_]
push dword [esp + 0x18]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_CoUninitialize]
call dword [sym.imp.MSAALIB.dll_ZAccTermModule]
jmp 0x407dce
lea ecx, [esp + 0x5c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410e60
mov esp, ebp
pop ebp
ret 0x10