Function at 0x1016d693
Capabilities:
Check os version

Disassembly:
push 0x130
mov eax, 0x101d0a01
call fcn.101947d5
mov edi, ecx
mov dword [ebp - 0x138], edi
mov eax, dword [ebp + 0x20]
xor esi, esi
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x1c]
push eax
push esi
mov dword [ebp - 0x13c], edi
call fcn.100c6007
lea ecx, [edi + 0xc8]
mov dword [ebp - 4], esi
mov dword [edi], vtable.CFileDialog.0
call fcn.100035d0
mov dword [edi + 0x4dc], esi
lea eax, [ebp - 0x124]
mov dword [edi + 0x4e0], esi
mov esi, 0x114
push esi
push 0
push eax
mov byte [ebp - 4], 1
call fcn.10197940
add esp, 0xc
mov dword [ebp - 0x124], esi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
jb 0x1016d72d
mov eax, dword [ebp + 0x24]
jmp 0x1016d72f
xor eax, eax
mov dword [edi + 0xac], eax
mov eax, dword [ebp - 0x12c]
and dword [edi + 0xb0], 0
and dword [edi + 0xb4], 0
test eax, eax
push 0x58
pop esi
cmovne esi, eax
push esi
call fcn.101a4cfe
mov dword [edi + 0xa8], eax
pop ecx
test eax, eax
je 0x1016d96b
push esi
push 0
push eax
call fcn.10197940
xor eax, eax
lea ecx, [edi + 0x2cc]
mov word [ecx], ax
lea edx, [edi + 0xcc]
mov word [edx], ax
add esp, 0xc
and dword [edi + 0x4d4], eax
and dword [edi + 0x4d8], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0xc4], eax
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0xa8]
mov dword [eax], esi
mov esi, 0x104
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x1c], ecx
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x20], esi
mov ecx, dword [edi + 0xa8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x3c], eax
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x24], edx
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x28], 0x100
mov ecx, dword [edi + 0xa8]
mov eax, dword [ebp + 0x14]
or eax, 0x80020
or dword [ecx + 0x34], eax
test byte [ebp + 0x14], 0x40
je 0x1016d810
mov eax, dword [edi + 0xa8]
and dword [eax + 0x34], 0xff7fffff
call fcn.1003f6c4
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0xa8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x44], 0x1015f882
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x1016d851
push 0xffffffffffffffff
push eax
lea eax, [edi + 0x2cc]
push esi
push eax
call fcn.101a633a
push eax
call fcn.10002070
add esp, 0x14
test ebx, ebx
je 0x1016d897
push ebx
lea esi, [edi + 0xc8]
call fcn.101a4e8f
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.10003ab0
push 0
mov ecx, esi
call fcn.100038b0
jmp 0x1016d87e
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x7c
push eax
call fcn.10197f1b
pop ecx
pop ecx
test eax, eax
jne 0x1016d876
mov ecx, dword [edi + 0xa8]
mov eax, dword [esi]
mov dword [ecx + 0xc], eax
cmp dword [edi + 0xac], 1
jne 0x1016d961
push 2
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1016d95b
lea eax, [ebp - 0x128]
mov dword [edi + 0x4e0], 0x101fdba8
lea ebx, [edi + 0x4dc]
push eax
push 0x101fdd84
push 1
mov dword [ebx], vtable.CFileDialog::XFileDialogEvents.0
push esi
cmp dword [edi + 0xc4], esi
je 0x1016d8eb
push 0x10206c98
jmp 0x1016d8f0
push 0x10206ca8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1016d95b
mov ecx, dword [ebp - 0x128]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [ebp - 0x134]
push eax
push 0x101fdd94
push ecx
mov ecx, esi
call dword [0x101d4b00]
call esi
test eax, eax
js 0x1016d970
mov ecx, dword [ebp - 0x128]
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
lea eax, [edi + 0xb8]
push eax
push ebx
push ecx
mov ecx, esi
call dword [0x101d4b00]
call esi
test eax, eax
js 0x1016d970
mov eax, dword [ebp - 0x128]
mov dword [edi + 0xbc], eax
mov eax, dword [ebp - 0x134]
mov dword [edi + 0xc0], eax
jmp 0x1016d961
mov dword [edi + 0xac], esi
mov eax, edi
call fcn.10194784
ret 0x20
call fcn.1003dee7
call fcn.1003decd
int3