Function at 0x40d530
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41db88
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x610]
cmp eax, 0xffffffff
je 0x40d56a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x610], 0xffffffff
mov eax, dword [esi + 0x39c]
xor ebp, ebp
cmp eax, ebp
je 0x40d651
push 0x429eb4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x3a0]
mov ebx, dword [sym.imp.MSVCRT.dll__strnicmp]
lea edi, [esi + 0x3a0]
push 2
inc eax
push 0x425804
push eax
mov dword [esp + 0x44], ebp
call ebx
add esp, 0xc
test eax, eax
je 0x40d5eb
mov eax, dword [edi]
push 2
push 0x425800
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x40d5eb
push 0x429ef0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x40d5eb
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
push edi
lea ecx, [esp + 0x14]
call fcn.004195b2
mov eax, dword [esi + 0x394]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
push ebp
and eax, 2
push ebp
add eax, 2
push eax
push ebp
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x610], eax
jne 0x40d640
mov edx, dword [esp + 0x10]
mov eax, dword [0x429ec8]
mov ecx, dword [esi + 0x20]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004193cc
mov eax, dword [esi + 0x610]
lea ebx, [esi + 0x618]
cmp eax, 0xffffffff
mov dword [ebx], ebp
je 0x40d7d6
mov ecx, dword [esi + 0x390]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ecx, ebp
je 0x40d6a6
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x3a4]
shr eax, 0xa
cmp eax, ecx
jbe 0x40d6a6
mov edx, dword [esi + 0x610]
push ebp
push ebp
push ebp
push edx
call edi
mov eax, dword [esi + 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x610]
push 2
push ebp
push ebp
push ecx
call edi
lea edx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CTime::GetTickCount
lea eax, [esp + 0x10]
push 0x9346
push eax
call fcn.00410710
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
mov edi, 1
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call fcn.004193cc
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.0040cd00
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push str.SOFTWAREKasperskyLabAVP32
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d752
lea ecx, [esp + 0x20]
mov eax, 4
push ecx
lea edx, [esp + 0x28]
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push edx
push ebp
push str.ReportWithTiming
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx], ebp
je 0x40d7b0
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebp
push edx
mov dword [esp + 0x30], ebp
mov dword [esi + 0x61c], ebp
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x40d792
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push str.High_performance_timing_ttick1__d_of_second_n
push ecx
mov dword [esi + 0x61c], edi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40d7a4
lea edx, [esp + 0x14]
push str.Low_performance_timing_ttick1_millisecond_n
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.0040cd00
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.004193cc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret