Function at 0x403640
Capabilities:
Extract resource via kernel32 functions
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41cd2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CDialog::CDialog
xor ebx, ebx
mov ebp, 0x4202a8
mov dword [esp + 0x224], ebx
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebx
lea ecx, [esi + 0x74]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x78]
mov byte [esp + 0x224], 2
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x8c]
mov byte [esp + 0x224], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x224], 4
call fcn.0041940e
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xbc], ebx
lea ecx, [esi + 0xc4]
mov byte [esp + 0x224], 6
call sub.MFC42.DLL_CDWordArray::CDWordArray
lea ecx, [esi + 0xd8]
mov byte [esp + 0x224], 7
call fcn.0041940e
push ebx
lea ecx, [esi + 0xec]
mov byte [esp + 0x228], 8
call fcn.0040f660
push ebx
lea ecx, [esi + 0x178]
mov byte [esp + 0x228], 9
call fcn.00413750
push ebx
lea ecx, [esi + 0x28c]
mov byte [esp + 0x228], 0xa
call fcn.00414710
push ebx
lea ecx, [esi + 0x320]
mov byte [esp + 0x228], 0xb
call fcn.004149d0
push ebx
lea ecx, [esi + 0x3b8]
mov byte [esp + 0x228], 0xc
call fcn.00414cf0
push ebx
lea ecx, [esi + 0x470]
mov byte [esp + 0x228], 0xd
call fcn.00414f90
lea ebp, [esi + 0x4f4]
mov byte [esp + 0x224], 0xe
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x224], 0xf
lea ecx, [esi + 0x4f8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4fc]
mov byte [esp + 0x224], 0x10
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi + 0x4fc], 0x4201e8
lea ecx, [esi + 0x53c]
mov byte [esp + 0x224], 0x11
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi + 0x53c], 0x420128
lea ecx, [esi + 0x57c]
mov byte [esp + 0x224], 0x12
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi + 0x57c], 0x420064
lea ecx, [esi + 0x5bc]
mov byte [esp + 0x224], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c4]
mov byte [esp + 0x224], 0x14
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi + 0x5c4], 0x41ffa4
lea ecx, [esi + 0x604]
mov byte [esp + 0x224], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x608]
mov byte [esp + 0x224], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x62c]
mov byte [esp + 0x224], 0x17
call fcn.004128c0
push 0x429eb4
lea ecx, [esi + 0x5bc]
mov byte [esp + 0x228], 0x18
mov dword [esi], 0x41fec8
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 0x5c0], ebx
mov dword [esi + 0x628], ebx
push 0x429f00
mov dword [0x429f00], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [0x429f10]
push ecx
push 1
call fcn.004035a0
add esp, 8
mov ecx, ebp
mov dword [esi + 0x4ec], ebx
mov dword [esi + 0x60], ebx
push 0x429eb4
mov dword [esi + 0x64], ebx
mov dword [esi + 0x610], 0xffffffff
mov dword [esi + 0x618], ebx
mov dword [esi + 0x61c], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x429eb4
lea ecx, [esi + 0x4f8]
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov ebp, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
push 0x200
mov ecx, 0x429ef4
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp + 0x90]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
mov byte [ecx], bl
mov ecx, 0x429ef4
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x429ef4
mov ecx, 0x429ef0
call sub.MFC42.DLL_CString::operator
push str.AVP.INI
mov ecx, 0x429ef4
call fcn.004193de
mov edx, dword [0x429ef4]
mov ecx, 0x42a008
push edx
push 0x200
push 0x200
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x429eb4
push str.DefaultProfile
push 0x4255f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, 0x42a008
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [0x429ef4]
mov ebp, dword [sym.imp.MSVCRT.dll__access]
push ebx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4039db
mov ecx, dword [0x429ef4]
push 2
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4039f8
mov edx, dword [0x429ef4]
mov eax, dword [0x42a008]
push edx
push eax
push str.DefaultProfile
push 0x4255f0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [0x42a008]
cmp dword [eax - 8], ebx
je 0x403a2b
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x500
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x403a2b
lea eax, [esp + 0x1c]
mov ecx, 0x42a008
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [0x42a008]
push 2
push ecx
call ebp
add esp, 8
test eax, eax
je 0x403a4c
push str.AVP32.INI
mov ecx, 0x42a008
call sub.MFC42.DLL_CString::operator_1
push str.Kaspersky_Anti_Virus
lea ecx, [esi + 0x74]
call sub.MFC42.DLL_CString::operator_1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, edi
mov edx, dword [eax + 0x74]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, edi
call sub.MFC42.DLL_CString::MakeLower
push 0x425104
mov ecx, edi
call fcn.004193de
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x4255d4
push 0xa1
push ebx
mov dword [esi + 0x620], ebx
mov dword [esi + 0x624], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x4255d4
push 0xa2
push ebx
mov dword [esi + 0xa8], eax
call edi
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0xa4], eax
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x21c]
mov dword [esi + 0x740], eax
mov dword [esi + 0x738], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret 4