Function at 0x51e2f4
Capabilities:
Check os version

Disassembly:
push 0x130
mov eax, 0x572dce
call fcn.00549e50
mov edi, ecx
mov dword [ebp - 0x138], edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x1c]
push eax
push 0
mov dword [ebp - 0x13c], edi
call fcn.004132a5
and dword [ebp - 4], 0
lea ebx, [edi + 0xc8]
mov dword [edi], vtable.CFileDialog.0
call fcn.00416e7d
push eax
mov ecx, ebx
call fcn.00402080
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x4dc], eax
push 0x114
push eax
mov dword [edi + 0x4e0], eax
lea eax, [ebp - 0x124]
push eax
call fcn.0054ba50
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
jb 0x51e39a
mov eax, dword [ebp + 0x24]
jmp 0x51e39c
xor eax, eax
mov dword [edi + 0xac], eax
and dword [edi + 0xb0], 0
and dword [edi + 0xb4], 0
test esi, esi
jne 0x51e3b7
push 0x58
pop esi
push esi
call fcn.005513e4
mov dword [edi + 0xa8], eax
pop ecx
test eax, eax
je 0x51e5cd
push esi
push 0
push eax
call fcn.0054ba50
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 0x51e476
mov eax, dword [edi + 0xa8]
and dword [eax + 0x34], 0xff7fffff
call fcn.0041adb5
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0xa8]
mov dword [eax + 8], ecx
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x44], 0x50ad1e
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x51e4b7
push 0xffffffffffffffff
push eax
lea eax, [edi + 0x2cc]
push esi
push eax
call fcn.00552392
push eax
call fcn.00403e70
add esp, 0x14
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x51e4fc
push eax
mov ecx, ebx
call fcn.004042f0
xor esi, esi
mov ecx, ebx
push esi
call fcn.004022e0
jmp 0x51e4dd
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x7c
push eax
call fcn.0054ae7e
pop ecx
pop ecx
test eax, eax
jne 0x51e4d5
mov ecx, dword [edi + 0xa8]
mov eax, dword [edi + 0xc8]
mov dword [ecx + 0xc], eax
jmp 0x51e4fe
xor esi, esi
cmp dword [edi + 0xac], 1
jne 0x51e5c3
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x51e5bd
lea eax, [ebp - 0x128]
mov dword [edi + 0x4e0], 0x59a9f4
lea ebx, [edi + 0x4dc]
push eax
push 0x59abd0
push 1
mov dword [ebx], vtable.CFileDialog::XFileDialogEvents.0
push esi
cmp dword [edi + 0xc4], esi
je 0x51e550
push 0x5a474c
jmp 0x51e555
push 0x5a475c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x51e5bd
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x134]
push ecx
push 0x59abe0
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x5769ac]
call dword [esi]
test eax, eax
js 0x51e5d2
mov ecx, dword [ebp - 0x128]
lea eax, [edi + 0xb8]
push eax
push ebx
push ecx
mov esi, dword [ecx]
mov ecx, dword [esi + 0x1c]
call dword [0x5769ac]
call dword [esi + 0x1c]
test eax, eax
js 0x51e5d2
mov eax, dword [ebp - 0x128]
mov dword [edi + 0xbc], eax
mov eax, dword [ebp - 0x134]
mov dword [edi + 0xc0], eax
jmp 0x51e5c3
mov dword [edi + 0xac], esi
mov eax, edi
call fcn.00549dfa
ret 0x20
call fcn.004169bf
call fcn.004169a5
int3