Function at 0x40d540
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Initialize winsock library
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf68
mov eax, dword [0x56b114]
xor eax, esp
mov dword [esp + 0xf64], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____
add esp, 4
lea eax, [esp + 0xb8]
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
add esp, 4
push 4
call sym.R2ClientInstall.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceType_int_
add esp, 4
push 0x516260
push 0xab
call sym.R2ClientInstall.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40d5be
push esi
call sym.R2ClientInstall.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
jne 0x40d5e4
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
lea ecx, [esp + 0xb8]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [esp + 0xf6c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 0x10
call sym.R2ClientInstall.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40d5be
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int__wchar_t_const__
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0xb8]
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
add esp, 4
call sym.R2ClientInstall.exe_public:_static_class_LanguageManager____cdecl_LanguageManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_void___thiscall_LanguageManager::Init_void_
push 0x80
lea eax, [esp + 0x34]
push 0
push eax
call fcn.004c5d00
add esp, 0xc
mov dword [esp + 0xc], 0x40
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d6c8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push str.Version
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
push 0x2e
push eax
call fcn.004c526d
add esp, 8
test eax, eax
je 0x40d6c8
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x30]
push eax
call fcn.004caa6f
add esp, 4
cmp eax, 9
jge 0x40d874
lea ecx, [esp + 0x358]
call sym.R2ClientInstall.exe_public:_void___thiscall_CMessageBoxWindow::constructor_void_
push 0
sub esp, 0x18
lea eax, [esp + 0xb74]
mov esi, esp
push 0
push str.id_install_r2
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
mov ecx, eax
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call fcn.0040dc30
sub esp, 0x18
lea eax, [esp + 0xd94]
mov esi, esp
push 0
push str.id_upgrade_ie
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
mov ecx, eax
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call fcn.0040dc30
sub esp, 0x18
lea eax, [esp + 0x18c]
mov esi, esp
push 0
push str.id_older_internet_explorer_tips
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
mov ecx, eax
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call fcn.0040dc30
sub esp, 0x18
lea eax, [esp + 0x94]
mov esi, esp
push 0
push str.id_note
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
mov ecx, eax
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call fcn.0040dc30
push 1
lea ecx, [esp + 0x3c0]
call sym.R2ClientInstall.exe_public:_enum_MessageBoxResult___thiscall_CMessageBoxWindow::CreateMessageBoxWindow_enum_MessageBoxType__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____struct_HWND____
lea ecx, [esp + 0x30]
mov esi, eax
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [esp + 0x140]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [esp + 0xd60]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [esp + 0xb58]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test esi, esi
jne 0x40d868
push str.http:__windows.microsoft.com_zh_cn_internet_explorer_download_ie
lea ecx, [esp + 0x1c]
call fcn.0040dc30
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push 1
cmovae eax, dword [esp + 0x1c]
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esp + 0x2c]
cmp edx, 8
jb 0x40d840
mov ecx, dword [esp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d836
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da81
push edx
push ecx
call fcn.004c3d01
add esp, 8
xor eax, eax
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x358]
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
call sym.R2ClientInstall.exe_public_virtual:_void___thiscall_CMessageBoxWindow::destructor_void_
jmp 0x40d5be
lea ecx, [esp + 0x358]
call sym.R2ClientInstall.exe_public_virtual:_void___thiscall_CMessageBoxWindow::destructor_void_
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40d5be
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x40d5be
lea eax, [esp + 0x1c8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
jne 0x40d5c0
xor edi, edi
call fcn.0040d1f0
sub eax, edi
je 0x40da3e
sub eax, 1
je 0x40d972
sub eax, 1
jne 0x40da46
push 0x208
push eax
lea eax, [esp + 0xb60]
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [esp + 0xd60]
push 0x208
push edi
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [esp + 0xb58]
lea ecx, [esp + 0x13]
push eax
call sym.R2ClientInstall.exe_public:_int___thiscall_CShellFolder::GetOldHCIInstallDir_wchar_t__
test eax, eax
je 0x40da46
push 0x7d4
call fcn.004c3956
add esp, 4
mov ecx, eax
call fcn.00412370
lea ecx, [esp + 0xd60]
mov edi, eax
call fcn.0040cf60
push esi
sub esp, 0x18
mov ecx, esp
test eax, eax
je 0x40d94a
lea eax, [esp + 0xd7c]
push eax
jmp 0x40d94f
push 0x516388
call fcn.0040dc30
sub esp, 0x18
lea eax, [esp + 0xb8c]
mov ecx, esp
push eax
call fcn.0040dc30
mov ecx, edi
call fcn.00412fe0
jmp 0x40da46
push 0x800
call fcn.004c3956
add esp, 4
mov esi, eax
mov ecx, esi
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::WindowImplBase::constructor_void_
lea ecx, [esi + 0x7a8]
mov dword [esi], vtable.CInstallMainWindow.3.0
mov dword [esi + 0x10], vtable.CInstallMainWindow.4.0
xor eax, eax
mov dword [esi + 0x20], vtable.CInstallMainWindow.1.0
mov dword [esi + 0x24], vtable.CInstallMainWindow.0
mov dword [esi + 0x28], vtable.CInstallMainWindow.2.0
mov dword [esi + 0x2c], vtable.CInstallMainWindow.5.0
push 7
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 7
push 0x516388
mov word [ecx], ax
call fcn.0040e140
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x300
push 0x96c80000
push 0
lea eax, [esp + 0xb78]
push str.id_r2client_install
push eax
call sym.R2ClientInstall.exe_public:_static_class_DuiLib::CResourceManager____cdecl_DuiLib::CResourceManager::GetInstance_void_
mov ecx, eax
call sym.R2ClientInstall.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CResourceManager::GetText_wchar_t_const___wchar_t_const__
mov ecx, eax
call sym.R2ClientInstall.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
push 0
mov ecx, esi
call sym.R2ClientInstall.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
lea ecx, [esp + 0xb58]
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, esi
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 1
push 1
mov ecx, esi
call sym.R2ClientInstall.exe_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_
jmp 0x40da46
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call sym.R2ClientInstall.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_
test esi, esi
je 0x40da58
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x14]
test edi, edi
je 0x40da65
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSACleanup]
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40d5c0
call fcn.004cac9c
int3