Function at 0x1005252
Capabilities:
Get disk information
Get file version info

Disassembly:
mov eax, 0x1007bc5
call fcn.01007328
sub esp, 0x358
mov eax, dword [0x10091ec]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call sub.MFC42.dll_CString::CString
xor ebx, ebx
push 0x66
lea ecx, [ebp - 0x330]
mov dword [ebp - 4], ebx
call sub.MFC42.dll_CString::LoadStringA
push 1
mov ecx, esi
call sub.MFC42.dll_CWnd::UpdateData
lea eax, [esi + 0x200]
lea edi, [esi + 0x230]
push eax
mov ecx, edi
mov dword [ebp - 0x334], eax
call fcn.01006fb2
mov eax, dword [edi]
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x118]
push ecx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__splitpath]
lea eax, [ebp - 0x21c]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10052dd
sub eax, ecx
cmp eax, 2
jbe 0x10052fd
push ebx
push 0x10
push 0x1002284
call sub.MFC42.dll_AfxMessageBox
jmp 0x1005580
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x32c]
call sub.MFC42.dll_CString::CString_1
push 0x5c
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call sub.MFC42.dll_CString::operator_2
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x1005367
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x334]
call fcn.01003ab0
test al, al
je 0x1005354
push ebx
push 0x10
push 0x1002254
call sub.MFC42.dll_AfxMessageBox
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], bl
call fcn.01006c22
jmp 0x1005580
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], bl
call fcn.01006c22
lea ecx, [esi + 0x224]
call sub.MFC42.dll_CString::Empty
lea ecx, [esi + 0x228]
call sub.MFC42.dll_CString::Empty
lea ecx, [esi + 0x22c]
call sub.MFC42.dll_CString::Empty
mov eax, dword [edi]
push ebx
push eax
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 2
call sub.MFC42.dll_CFile::CFile
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x35c]
push eax
push dword [ebp - 0x350]
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100541c
push 0xffffffffffffffff
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x328]
call sub.MFC42.dll_CTime::CTime
push 0x1002250
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x328]
call sub.MFC42.dll_CTime::Format
push eax
lea ecx, [esi + 0x224]
mov byte [ebp - 4], 4
call fcn.01006fb2
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], 3
call fcn.01006c22
lea ecx, [ebp - 0x354]
call sub.MFC42.dll_CFile::GetLength
push ebx
push eax
lea eax, [esi + 0x228]
push 0x1002244
push eax
call sub.MFC42.dll_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 2
call fcn.01007042
mov eax, dword [edi]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x324], eax
je 0x1005511
push eax
mov byte [ebp - 4], 6
call sub.MFC42.dll_operatornew
pop ecx
mov dword [ebp - 0x328], eax
push dword [ebp - 0x328]
mov eax, dword [edi]
push dword [ebp - 0x324]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1005505
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x324]
push eax
push 0x1002240
push dword [ebp - 0x328]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1005505
mov eax, dword [ebp - 0x324]
cmp dword [eax], 0xfeef04bd
jne 0x1005505
mov edx, dword [eax + 0x14]
mov ecx, 0xffff
and edx, ecx
push edx
movzx edx, word [eax + 0x16]
push edx
mov edx, dword [eax + 0x10]
and edx, ecx
push edx
movzx edx, word [eax + 0x12]
push edx
mov edx, dword [eax + 0xc]
and edx, ecx
push edx
movzx edx, word [eax + 0xe]
push edx
mov edx, dword [eax + 8]
movzx eax, word [eax + 0xa]
and edx, ecx
push edx
push eax
lea eax, [esi + 0x22c]
push 0x1002210
push eax
call sub.MFC42.dll_CString::Format
add esp, 0x28
push dword [ebp - 0x328]
call sub.MFC42.dll_operatordelete
pop ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x118]
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll__splitpath]
mov ecx, dword [ebp - 0x334]
add esp, 0x14
push edi
call fcn.01006fb2
lea eax, [ebp - 0x118]
push eax
lea ecx, [esi + 0x21c]
call fcn.01006c3a
lea eax, [ebp - 0x118]
push eax
lea ecx, [esi + 0x218]
call fcn.01006c3a
push ebx
mov ecx, esi
call sub.MFC42.dll_CWnd::UpdateData
xor ebx, ebx
inc ebx
jmp 0x1005580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x330]
call fcn.01006c22
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.010067fd
pop edi
pop esi
pop ebx
leave
ret