Function at 0x402812
Capabilities:
Check os version
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2018]
mov eax, 0x2018
call fcn.004238d0
push 0xffffffffffffffff
push 0x4274ff
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x43b028]
xor eax, ebp
mov dword [ebp + 0x2014], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.DISKDOC
mov edi, ecx
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CSystweakApp::SetDefaultINISectionName_wchar_t_const__]
push 0x42a22c
push str.IDS_G_APP_DISKDOC_NAME
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x43cbb0
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____CSystweakApp::m_LocalizedProgramName]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call dword [sym.imp.ASOHelper.dll_int___cdecl_STIsCurrentUserLocalAdministrator_void_]
test eax, eax
jne 0x4029f4
call dword [sym.imp.ASOHelper.dll_unsigned_long_int___cdecl__winmajor_void_]
cmp eax, 6
je 0x4028e8
push 0x42a474
lea eax, [ebp - 0x10]
push str.IDS_ADMIN_RIGHTS_REQD
push eax
call dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STLoadStringFromMainINI_wchar_t_const___wchar_t_const__]
xor ecx, ecx
inc ecx
push ecx
push esi
push esi
mov dword [ebp - 4], ecx
push 0x40
push dword [eax]
call dword [sym.imp.ASOHelper.dll_public:_static_int___cdecl_CSystweakApp::AfxMessageBox_wchar_t_const___unsigned_int__class_CDialog___class_CRect___bool_]
add esp, 0x20
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x402bdb
push 0x42a92c
lea ecx, [ebp - 0x10]
call dword [0x429720]
mov edi, eax
mov dword [ebp - 4], 2
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.ASOHelper.dll_wchar_t_const____cdecl_GetAppPath_struct_HINSTANCE_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call dword [0x4299a4]
push str.RequireAdministrator.exe
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.ASOHelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
call sub.mfc90u.dll_AfxGetThread
cmp eax, esi
je 0x402980
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x402982
xor eax, eax
cmp eax, esi
jne 0x40298a
xor eax, eax
jmp 0x40298d
mov eax, dword [eax + 0x20]
mov ecx, dword [sym.imp.MSVCR90.dll___wargv]
mov ecx, dword [ecx]
push 1
push edi
push dword [ecx]
push ebx
push str.runas
push eax
call dword [sym.imp.ASOHelper.dll_public:_static_struct_HINSTANCE______cdecl_CSystweakApp::ShellExecuteW_struct_HWND_____wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___int_]
add esp, 0x18
cmp eax, 0x20
jle 0x4029c0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
jmp 0x4028dd
push 0x42a474
lea eax, [ebp - 0x20]
push str.IDS_ADMIN_RIGHTS_REQD
push eax
call dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STLoadStringFromMainINI_wchar_t_const___wchar_t_const__]
push 1
push esi
push esi
mov byte [ebp - 4], 7
push 0x40
push dword [eax]
call dword [sym.imp.ASOHelper.dll_public:_static_int___cdecl_CSystweakApp::AfxMessageBox_wchar_t_const___unsigned_int__class_CDialog___class_CRect___bool_]
add esp, 0x20
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4029af
mov ecx, edi
call dword [sym.imp.ASOHelper.dll_public_virtual:_int___thiscall_CSystweakApp::InitInstance_void_]
cmp eax, esi
je 0x402bdb
lea eax, [ebp - 0xe4]
push eax
call fcn.0040216e
push edi
lea ebx, [ebp - 0xe4]
mov dword [ebp - 4], 8
call fcn.00402471
push edi
call fcn.00402d83
push 0x2b0
lea eax, [ebp + 0x1c50]
push esi
push eax
mov dword [ebp + 0x1c4c], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x4001
push 0x2b4
lea eax, [ebp + 0x1c4c]
push eax
push esi
push 0x42a4e8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
lea ecx, [edi + 0x3776ec]
call sub.mfc90u.dll_CImageList::Attach
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
lea esi, [edi + 0x3776fc]
mov dword [edi + 0x3776e4], eax
call fcn.0040d744
xor esi, esi
push 0x110
lea eax, [ebp + 0x1f04]
push esi
push eax
mov dword [ebp + 0x1f00], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp + 0x1f00]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp + 0x1f04]
mov dword [edi + 0x128], esi
mov dword [edi + 0x12c], esi
shl eax, 0x10
add eax, dword [ebp + 0x1f08]
lea esi, [edi + 0x140]
lea ebx, [esi + 0x31e508]
mov dword [edi + 0x138], eax
mov dword [edi + 0x3776c0], 0xa
or dword [esi], 0xffffffff
mov ecx, ebx
call fcn.0040d66f
push ebx
lea ecx, [esi + 8]
call fcn.00408202
mov dword [esp], 0x377508
call sub.mfc90u.dll_new
mov dword [edi + 0x3776e8], eax
or ebx, 0xffffffff
pop ecx
mov esi, eax
mov dword [eax], ebx
call fcn.004085ab
push dword [edi + 0x48]
lea esi, [edi + 0x377724]
call fcn.00406081
lea ecx, [ebp - 0x18]
call dword [0x4299ec]
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x3776e8]
push 0x20
add eax, 8
xor ecx, ecx
pop edx
cmp dword [eax], ebx
je 0x402b4b
inc ecx
add eax, 0x18f28
dec edx
jne 0x402b46
cmp dword [edi + 0x377728], ecx
jl 0x402b66
lea eax, [ebp - 0x18]
push eax
call fcn.00406348
jmp 0x402b69
xor eax, eax
inc eax
test eax, eax
jne 0x402b81
push 1
push eax
push eax
push 0x10
push dword [ebp - 0x18]
call dword [sym.imp.ASOHelper.dll_public:_static_int___cdecl_CSystweakApp::AfxMessageBox_wchar_t_const___unsigned_int__class_CDialog___class_CRect___bool_]
add esp, 0x14
jmp 0x402bc3
lea eax, [ebp]
push eax
call fcn.00403228
lea eax, [ebp]
mov byte [ebp - 4], 0xa
mov dword [0x43bb54], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x3776c8], eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp]
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CDlgBaseAppDlg::IntializeMainAppDlg_struct_MAINAPPDLGINIT__]
lea ecx, [ebp]
call sub.mfc90u.dll_CDialog::DoModal
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.004032d8
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 4], ebx
call fcn.00402c00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2014]
xor ecx, ebp
call fcn.00423038
add ebp, 0x2018
leave
ret